Regenerate.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 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, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_config_libobj_dir=src
603 ac_header_list=
604 ac_func_list=
605 ac_subst_vars='gltests_LTLIBOBJS
606 gltests_LIBOBJS
607 gl_LTLIBOBJS
608 gl_LIBOBJS
609 am__EXEEXT_FALSE
610 am__EXEEXT_TRUE
611 LTLIBOBJS
612 WINDOW_SUPPORT
613 TOOLTIP_SUPPORT
614 MOUSE_SUPPORT
615 LIB_GCC
616 LD_FIRSTFLAG
617 LD_SWITCH_SYSTEM_TEMACS
618 POST_ALLOC_OBJ
619 PRE_ALLOC_OBJ
620 CYGWIN_OBJ
621 RALLOC_OBJ
622 OLDXMENU_DEPS
623 LIBX_OTHER
624 LIBXMENU
625 OLDXMENU
626 OLDXMENU_TARGET
627 LIBXT_OTHER
628 TOOLKIT_LIBW
629 WIDGET_OBJ
630 XOBJ
631 XMENU_OBJ
632 FONT_OBJ
633 OTHER_FILES
634 GNU_OBJC_CFLAGS
635 ns_appsrc
636 ns_appresdir
637 ns_appbindir
638 ns_appdir
639 S_FILE
640 M_FILE
641 X_TOOLKIT_TYPE
642 C_SWITCH_X_SYSTEM
643 C_SWITCH_X_SITE
644 LD_SWITCH_X_SITE
645 gameuser
646 gamedir
647 bitmapdir
648 archlibdir
649 etcdir
650 x_default_search_path
651 lisppath
652 locallisppath
653 lispdir
654 srcdir
655 canonical
656 configuration
657 version
658 KRB4LIB
659 DESLIB
660 KRB5LIB
661 CRYPTOLIB
662 COM_ERRLIB
663 LIBRESOLV
664 LIBHESIOD
665 TERMCAP_OBJ
666 LIBS_TERMCAP
667 LIBGNU_LTLIBDEPS
668 LIBGNU_LIBDEPS
669 gltests_WITNESS
670 GL_COND_LIBTOOL_FALSE
671 GL_COND_LIBTOOL_TRUE
672 GETOPTOBJS
673 GETOPT_H
674 GETLOADAVG_LIBS
675 KMEM_GROUP
676 NEED_SETGID
677 LIBOBJS
678 BLESSMAIL_TARGET
679 LIBS_MAIL
680 liblockfile
681 ALLOCA
682 LIBXML2_LIBS
683 LIBXML2_CFLAGS
684 LIBXSM
685 LIBGPM
686 LIBGIF
687 LIBTIFF
688 LIBPNG
689 LIBJPEG
690 LIBXPM
691 FREETYPE_LIBS
692 FREETYPE_CFLAGS
693 M17N_FLT_LIBS
694 M17N_FLT_CFLAGS
695 LIBOTF_LIBS
696 LIBOTF_CFLAGS
697 XFT_LIBS
698 XFT_CFLAGS
699 FONTCONFIG_LIBS
700 FONTCONFIG_CFLAGS
701 LIBXMU
702 LIBXTR6
703 LIBGNUTLS_LIBS
704 LIBGNUTLS_CFLAGS
705 LIBSELINUX_LIBS
706 GCONF_LIBS
707 GCONF_CFLAGS
708 DBUS_OBJ
709 DBUS_LIBS
710 DBUS_CFLAGS
711 GTK_OBJ
712 GTK_LIBS
713 GTK_CFLAGS
714 IMAGEMAGICK_LIBS
715 IMAGEMAGICK_CFLAGS
716 RSVG_LIBS
717 RSVG_CFLAGS
718 VMLIMIT_OBJ
719 GMALLOC_OBJ
720 HAVE_XSERVER
721 LIB_STANDARD
722 NS_SUPPORT
723 NS_OBJ
724 TEMACS_LDFLAGS2
725 LD_SWITCH_X_SITE_AUX_RPATH
726 LD_SWITCH_X_SITE_AUX
727 XMKMF
728 DEPFLAGS
729 MKDEPDIR
730 CFLAGS_SOUND
731 ALSA_LIBS
732 ALSA_CFLAGS
733 PKG_CONFIG
734 LIBSOUND
735 START_FILES
736 LIB_MATH
737 CRT_DIR
738 LIBS_SYSTEM
739 C_SWITCH_SYSTEM
740 UNEXEC_OBJ
741 C_SWITCH_MACHINE
742 LD_SWITCH_SYSTEM
743 CANNOT_DUMP
744 HAVE_MAKEINFO
745 GZIP_PROG
746 INSTALL_INFO
747 C_WARNINGS_SWITCH
748 EGREP
749 GREP
750 CPP
751 RANLIB
752 am__fastdepCC_FALSE
753 am__fastdepCC_TRUE
754 CCDEPMODE
755 AMDEPBACKSLASH
756 AMDEP_FALSE
757 AMDEP_TRUE
758 am__quote
759 am__include
760 DEPDIR
761 OBJEXT
762 EXEEXT
763 ac_ct_CC
764 CPPFLAGS
765 LDFLAGS
766 CFLAGS
767 CC
768 host_os
769 host_vendor
770 host_cpu
771 host
772 build_os
773 build_vendor
774 build_cpu
775 build
776 PROFILING_CFLAGS
777 MAINT
778 GZIP_INFO
779 am__untar
780 am__tar
781 AMTAR
782 am__leading_dot
783 SET_MAKE
784 AWK
785 mkdir_p
786 MKDIR_P
787 INSTALL_STRIP_PROGRAM
788 STRIP
789 install_sh
790 MAKEINFO
791 AUTOHEADER
792 AUTOMAKE
793 AUTOCONF
794 ACLOCAL
795 VERSION
796 PACKAGE
797 CYGPATH_W
798 am__isrc
799 INSTALL_DATA
800 INSTALL_SCRIPT
801 INSTALL_PROGRAM
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files='deps_frag
841 ns_frag'
842 ac_user_opts='
843 enable_option_checking
844 with_pop
845 with_kerberos
846 with_kerberos5
847 with_hesiod
848 with_mmdf
849 with_mail_unlink
850 with_mailhost
851 with_sound
852 with_sync_input
853 with_x_toolkit
854 with_xpm
855 with_jpeg
856 with_tiff
857 with_gif
858 with_png
859 with_rsvg
860 with_xml2
861 with_imagemagick
862 with_xft
863 with_libotf
864 with_m17n_flt
865 with_toolkit_scroll_bars
866 with_xaw3d
867 with_xim
868 with_ns
869 with_gpm
870 with_dbus
871 with_gconf
872 with_selinux
873 with_gnutls
874 with_makeinfo
875 with_compress_info
876 with_pkg_config_prog
877 with_crt_dir
878 with_gameuser
879 with_gnustep_conf
880 enable_ns_self_contained
881 enable_asserts
882 enable_maintainer_mode
883 enable_locallisppath
884 enable_checking
885 enable_use_lisp_union_type
886 enable_profiling
887 enable_autodepend
888 enable_dependency_tracking
889 enable_largefile
890 with_x
891 '
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 CPP
901 CPPFLAGS
902 CPP
903 CPPFLAGS
904 XMKMF'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 ac_unrecognized_opts=
911 ac_unrecognized_sep=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 bindir=$ac_optarg ;;
982
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
997
998 -datadir | --datadir | --datadi | --datad)
999 ac_prev=datadir ;;
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1002
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
1010 -disable-* | --disable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=no ;;
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1035
1036 -enable-* | --enable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1239
1240 -with-* | --with-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=\$ac_optarg ;;
1255
1256 -without-* | --without-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid package name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265 "with_$ac_useropt"
1266 "*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=no ;;
1271
1272 --x)
1273 # Obsolete; use --with-x.
1274 with_x=yes ;;
1275
1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277 | --x-incl | --x-inc | --x-in | --x-i)
1278 ac_prev=x_includes ;;
1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1281 x_includes=$ac_optarg ;;
1282
1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285 ac_prev=x_libraries ;;
1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1288 x_libraries=$ac_optarg ;;
1289
1290 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1292 ;;
1293
1294 *=*)
1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' | [0-9]* | *[!_$as_cr_alnum]* )
1299 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1300 esac
1301 eval $ac_envvar=\$ac_optarg
1302 export $ac_envvar ;;
1303
1304 *)
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 ;;
1311
1312 esac
1313 done
1314
1315 if test -n "$ac_prev"; then
1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $? "missing argument to $ac_option"
1318 fi
1319
1320 if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1322 no) ;;
1323 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 esac
1326 fi
1327
1328 # Check all directory arguments for consistency.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1333 do
1334 eval ac_val=\$$ac_var
1335 # Remove trailing slashes.
1336 case $ac_val in
1337 */ )
1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\$ac_val;;
1340 esac
1341 # Be sure to have absolute directory names.
1342 case $ac_val in
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 esac
1346 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1361 If a cross compiler is detected then cross compile mode will be used" >&2
1362 elif test "x$build_alias" != "x$host_alias"; then
1363 cross_compiling=yes
1364 fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $? "working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $? "pwd does not report name of working directory"
1379
1380
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)[^/].*/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\).*/{
1404 s//\1/
1405 q
1406 }
1407 s/.*/./; q'`
1408 srcdir=$ac_confdir
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 srcdir=..
1411 fi
1412 else
1413 ac_srcdir_defaulted=no
1414 fi
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 pwd)`
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426 fi
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1430 case $srcdir in
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 esac
1433 for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438 done
1439
1440 #
1441 # Report the --help message.
1442 #
1443 if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1446 cat <<_ACEOF
1447 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1448
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE. See below for descriptions of some of the useful variables.
1453
1454 Defaults for the options are specified in brackets.
1455
1456 Configuration:
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking ...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466
1467 Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1471 [PREFIX]
1472
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1477
1478 For better control, use the options below.
1479
1480 Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1500 _ACEOF
1501
1502 cat <<\_ACEOF
1503
1504 Program names:
1505 --program-prefix=PREFIX prepend PREFIX to installed program names
1506 --program-suffix=SUFFIX append SUFFIX to installed program names
1507 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508
1509 X features:
1510 --x-includes=DIR X include files are in DIR
1511 --x-libraries=DIR X library files are in DIR
1512
1513 System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1522 esac
1523 cat <<\_ACEOF
1524
1525 Optional Features:
1526 --disable-option-checking ignore unrecognized --enable/--with options
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --disable-ns-self-contained
1530 disable self contained build under NeXTstep
1531 --enable-asserts compile code with asserts enabled
1532 --enable-maintainer-mode
1533 enable make rules and dependencies not useful (and
1534 sometimes confusing) to the casual installer
1535 --enable-locallisppath=PATH
1536 directories Emacs should search for lisp files
1537 specific to this site
1538 --enable-checking[=LIST]
1539 enable expensive run-time checks. With LIST, enable
1540 only specific categories of checks. Categories are:
1541 all,yes,no. Flags are: stringbytes, stringoverrun,
1542 stringfreelist, xmallocoverrun, conslist
1543 --enable-use-lisp-union-type
1544 use a union for the Lisp_Object data type. This is
1545 only useful for development for catching certain
1546 types of bugs.
1547 --enable-profiling build emacs with profiling support. This might not
1548 work on all platforms
1549 --enable-autodepend automatically generate dependencies to .h-files.
1550 Requires GNU Make and Gcc. Enabled if GNU Make and
1551 Gcc is found
1552 --disable-dependency-tracking speeds up one-time build
1553 --enable-dependency-tracking do not reject slow dependency extractors
1554 --disable-largefile omit support for large files
1555
1556 Optional Packages:
1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1559 --without-pop don't support POP mail retrieval with movemail
1560 --with-kerberos support Kerberos-authenticated POP
1561 --with-kerberos5 support Kerberos version 5 authenticated POP
1562 --with-hesiod support Hesiod to get the POP server host
1563 --with-mmdf support MMDF mailboxes
1564 --with-mail-unlink unlink, rather than empty, mail spool after reading
1565 --with-mailhost=HOSTNAME
1566 string giving default POP mail host
1567 --without-sound don't compile with sound support
1568 --without-sync-input process async input synchronously
1569 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1570 lucid or athena, motif, no)
1571 --without-xpm don't compile with XPM image support
1572 --without-jpeg don't compile with JPEG image support
1573 --without-tiff don't compile with TIFF image support
1574 --without-gif don't compile with GIF image support
1575 --without-png don't compile with PNG image support
1576 --without-rsvg don't compile with SVG image support
1577 --without-xml2 don't compile with XML parsing support
1578 --without-imagemagick don't compile with ImageMagick image support
1579 --without-xft don't use XFT for anti aliased fonts
1580 --without-libotf don't use libotf for OpenType font support
1581 --without-m17n-flt don't use m17n-flt for text shaping
1582 --without-toolkit-scroll-bars
1583 don't use Motif or Xaw3d scroll bars
1584 --without-xaw3d don't use Xaw3d
1585 --without-xim don't use X11 XIM
1586 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1587 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1588 console
1589 --without-dbus don't compile with D-Bus support
1590 --without-gconf don't compile with GConf support
1591 --without-selinux don't compile with SELinux support
1592 --without-gnutls don't use -lgnutls for SSL/TLS support
1593 --without-makeinfo don't require makeinfo for building manuals
1594 --without-compress-info don't compress the installed Info pages
1595 --with-pkg-config-prog=PATH
1596 path to pkg-config for finding GTK and librsvg
1597 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1598 /usr/lib, or /usr/lib64 on some platforms.
1599 --with-gameuser=USER user for shared game score files
1600 --with-gnustep-conf=PATH
1601 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1602 or /etc/GNUstep/GNUstep.conf
1603 --with-x use the X Window System
1604
1605 Some influential environment variables:
1606 CC C compiler command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
1610 LIBS libraries to pass to the linker, e.g. -l<library>
1611 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1613 CPP C preprocessor
1614 XMKMF Path to xmkmf, Makefile generator for X Window System
1615
1616 Use these variables to override the choices made by `configure' or to help
1617 it to find libraries and programs with nonstandard names/locations.
1618
1619 Report bugs to the package provider.
1620 _ACEOF
1621 ac_status=$?
1622 fi
1623
1624 if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
1626 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1629 continue
1630 ac_builddir=.
1631
1632 case "$ac_dir" in
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *)
1635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642 esac
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1647
1648 case $srcdir in
1649 .) # We are building in place.
1650 ac_srcdir=.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 esac
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1672 else
1673 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 fi || ac_status=$?
1675 cd "$ac_pwd" || { ac_status=$?; break; }
1676 done
1677 fi
1678
1679 test -n "$ac_init_help" && exit $ac_status
1680 if $ac_init_version; then
1681 cat <<\_ACEOF
1682 emacs configure 24.0.50
1683 generated by GNU Autoconf 2.68
1684
1685 Copyright (C) 2010 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1688 _ACEOF
1689 exit
1690 fi
1691
1692 ## ------------------------ ##
1693 ## Autoconf initialization. ##
1694 ## ------------------------ ##
1695
1696 # ac_fn_c_try_compile LINENO
1697 # --------------------------
1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_compile ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext
1703 if { { ac_try="$ac_compile"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_compile") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1716 fi
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest.$ac_objext; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1
1728 fi
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_compile
1733
1734 # ac_fn_c_try_link LINENO
1735 # -----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_link ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext conftest$ac_exeext
1741 if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest$ac_exeext && {
1760 test "$cross_compiling" = yes ||
1761 $as_test_x conftest$ac_exeext
1762 }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1772 # interfere with the next link command; also delete a directory that is
1773 # left behind by Apple's compiler. We do this before executing the actions.
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_link
1779
1780 # ac_fn_c_try_cpp LINENO
1781 # ----------------------
1782 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_cpp ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_cpp conftest.$ac_ext"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } > conftest.i && {
1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811 fi
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_cpp
1816
1817 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820 # the include files in INCLUDES and setting the cache variable VAR
1821 # accordingly.
1822 ac_fn_c_check_header_mongrel ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if eval \${$3+:} false; then :
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1830 fi
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 else
1835 # Is the header compilable?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837 $as_echo_n "checking $2 usability... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 $4
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_header_compiler=yes
1845 else
1846 ac_header_compiler=no
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850 $as_echo "$ac_header_compiler" >&6; }
1851
1852 # Is the header present?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854 $as_echo_n "checking $2 presence... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_cpp "$LINENO"; then :
1860 ac_header_preproc=yes
1861 else
1862 ac_header_preproc=no
1863 fi
1864 rm -f conftest.err conftest.i conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866 $as_echo "$ac_header_preproc" >&6; }
1867
1868 # So? What about this header?
1869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870 yes:no: )
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 ;;
1876 no:yes:* )
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1880 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1884 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 ;;
1888 esac
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 eval "$3=\$ac_header_compiler"
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 fi
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_header_mongrel
1903
1904 # ac_fn_c_try_run LINENO
1905 # ----------------------
1906 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1907 # that executables *can* be run.
1908 ac_fn_c_try_run ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_link"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_link") 2>&5
1919 ac_status=$?
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1922 { { case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_try") 2>&5
1929 ac_status=$?
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; }; }; then :
1932 ac_retval=0
1933 else
1934 $as_echo "$as_me: program exited with status $ac_status" >&5
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_retval=$ac_status
1939 fi
1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1943
1944 } # ac_fn_c_try_run
1945
1946 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists and can be compiled using the include files in
1949 # INCLUDES, setting the cache variable VAR accordingly.
1950 ac_fn_c_check_header_compile ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $4
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 eval "$3=yes"
1965 else
1966 eval "$3=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_header_compile
1976
1977 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1978 # ---------------------------------------------
1979 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1980 # accordingly.
1981 ac_fn_c_check_decl ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 as_decl_name=`echo $2|sed 's/ *(.*//'`
1985 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1987 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1990 else
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 $4
1994 int
1995 main ()
1996 {
1997 #ifndef $as_decl_name
1998 #ifdef __cplusplus
1999 (void) $as_decl_use;
2000 #else
2001 (void) $as_decl_name;
2002 #endif
2003 #endif
2004
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 eval "$3=yes"
2011 else
2012 eval "$3=no"
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_decl
2022
2023 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2024 # ----------------------------------------------
2025 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2026 ac_fn_c_check_header_preproc ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 #include <$2>
2037 _ACEOF
2038 if ac_fn_c_try_cpp "$LINENO"; then :
2039 eval "$3=yes"
2040 else
2041 eval "$3=no"
2042 fi
2043 rm -f conftest.err conftest.i conftest.$ac_ext
2044 fi
2045 eval ac_res=\$$3
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050 } # ac_fn_c_check_header_preproc
2051
2052 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2053 # ----------------------------------------------------
2054 # Tries to find if the field MEMBER exists in type AGGR, after including
2055 # INCLUDES, setting cache variable VAR accordingly.
2056 ac_fn_c_check_member ()
2057 {
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2060 $as_echo_n "checking for $2.$3... " >&6; }
2061 if eval \${$4+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 $5
2067 int
2068 main ()
2069 {
2070 static $2 ac_aggr;
2071 if (ac_aggr.$3)
2072 return 0;
2073 ;
2074 return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 eval "$4=yes"
2079 else
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $5
2083 int
2084 main ()
2085 {
2086 static $2 ac_aggr;
2087 if (sizeof ac_aggr.$3)
2088 return 0;
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 eval "$4=yes"
2095 else
2096 eval "$4=no"
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$4
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107 } # ac_fn_c_check_member
2108
2109 # ac_fn_c_check_func LINENO FUNC VAR
2110 # ----------------------------------
2111 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2112 ac_fn_c_check_func ()
2113 {
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if eval \${$3+:} false; then :
2118 $as_echo_n "(cached) " >&6
2119 else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2124 #define $2 innocuous_$2
2125
2126 /* System header to define __stub macros and hopefully few prototypes,
2127 which can conflict with char $2 (); below.
2128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2129 <limits.h> exists even on freestanding compilers. */
2130
2131 #ifdef __STDC__
2132 # include <limits.h>
2133 #else
2134 # include <assert.h>
2135 #endif
2136
2137 #undef $2
2138
2139 /* Override any GCC internal prototype to avoid an error.
2140 Use char because int might match the return type of a GCC
2141 builtin and then its argument prototype would still apply. */
2142 #ifdef __cplusplus
2143 extern "C"
2144 #endif
2145 char $2 ();
2146 /* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149 #if defined __stub_$2 || defined __stub___$2
2150 choke me
2151 #endif
2152
2153 int
2154 main ()
2155 {
2156 return $2 ();
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_link "$LINENO"; then :
2162 eval "$3=yes"
2163 else
2164 eval "$3=no"
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext \
2167 conftest$ac_exeext conftest.$ac_ext
2168 fi
2169 eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173
2174 } # ac_fn_c_check_func
2175
2176 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2177 # -------------------------------------------
2178 # Tests whether TYPE exists after having included INCLUDES, setting cache
2179 # variable VAR accordingly.
2180 ac_fn_c_check_type ()
2181 {
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if eval \${$3+:} false; then :
2186 $as_echo_n "(cached) " >&6
2187 else
2188 eval "$3=no"
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 $4
2192 int
2193 main ()
2194 {
2195 if (sizeof ($2))
2196 return 0;
2197 ;
2198 return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 int
2206 main ()
2207 {
2208 if (sizeof (($2)))
2209 return 0;
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215
2216 else
2217 eval "$3=yes"
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 fi
2223 eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227
2228 } # ac_fn_c_check_type
2229 cat >config.log <<_ACEOF
2230 This file contains any messages produced by compilers while
2231 running configure, to aid debugging if configure makes a mistake.
2232
2233 It was created by emacs $as_me 24.0.50, which was
2234 generated by GNU Autoconf 2.68. Invocation command line was
2235
2236 $ $0 $@
2237
2238 _ACEOF
2239 exec 5>>config.log
2240 {
2241 cat <<_ASUNAME
2242 ## --------- ##
2243 ## Platform. ##
2244 ## --------- ##
2245
2246 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2247 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2248 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2249 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2250 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2251
2252 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2253 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2254
2255 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2256 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2257 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2258 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2259 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2260 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2261 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2262
2263 _ASUNAME
2264
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 $as_echo "PATH: $as_dir"
2271 done
2272 IFS=$as_save_IFS
2273
2274 } >&5
2275
2276 cat >&5 <<_ACEOF
2277
2278
2279 ## ----------- ##
2280 ## Core tests. ##
2281 ## ----------- ##
2282
2283 _ACEOF
2284
2285
2286 # Keep a trace of the command line.
2287 # Strip out --no-create and --no-recursion so they do not pile up.
2288 # Strip out --silent because we don't want to record it for future runs.
2289 # Also quote any args containing shell meta-characters.
2290 # Make two passes to allow for proper duplicate-argument suppression.
2291 ac_configure_args=
2292 ac_configure_args0=
2293 ac_configure_args1=
2294 ac_must_keep_next=false
2295 for ac_pass in 1 2
2296 do
2297 for ac_arg
2298 do
2299 case $ac_arg in
2300 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2302 | -silent | --silent | --silen | --sile | --sil)
2303 continue ;;
2304 *\'*)
2305 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 esac
2307 case $ac_pass in
2308 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2309 2)
2310 as_fn_append ac_configure_args1 " '$ac_arg'"
2311 if test $ac_must_keep_next = true; then
2312 ac_must_keep_next=false # Got value, back to normal.
2313 else
2314 case $ac_arg in
2315 *=* | --config-cache | -C | -disable-* | --disable-* \
2316 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2317 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2318 | -with-* | --with-* | -without-* | --without-* | --x)
2319 case "$ac_configure_args0 " in
2320 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2321 esac
2322 ;;
2323 -* ) ac_must_keep_next=true ;;
2324 esac
2325 fi
2326 as_fn_append ac_configure_args " '$ac_arg'"
2327 ;;
2328 esac
2329 done
2330 done
2331 { ac_configure_args0=; unset ac_configure_args0;}
2332 { ac_configure_args1=; unset ac_configure_args1;}
2333
2334 # When interrupted or exit'd, cleanup temporary files, and complete
2335 # config.log. We remove comments because anyway the quotes in there
2336 # would cause problems or look ugly.
2337 # WARNING: Use '\'' to represent an apostrophe within the trap.
2338 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2339 trap 'exit_status=$?
2340 # Save into config.log some information that might help in debugging.
2341 {
2342 echo
2343
2344 $as_echo "## ---------------- ##
2345 ## Cache variables. ##
2346 ## ---------------- ##"
2347 echo
2348 # The following way of writing the cache mishandles newlines in values,
2349 (
2350 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in #(
2353 *${as_nl}*)
2354 case $ac_var in #(
2355 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2356 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2357 esac
2358 case $ac_var in #(
2359 _ | IFS | as_nl) ;; #(
2360 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2361 *) { eval $ac_var=; unset $ac_var;} ;;
2362 esac ;;
2363 esac
2364 done
2365 (set) 2>&1 |
2366 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2367 *${as_nl}ac_space=\ *)
2368 sed -n \
2369 "s/'\''/'\''\\\\'\'''\''/g;
2370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2371 ;; #(
2372 *)
2373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2374 ;;
2375 esac |
2376 sort
2377 )
2378 echo
2379
2380 $as_echo "## ----------------- ##
2381 ## Output variables. ##
2382 ## ----------------- ##"
2383 echo
2384 for ac_var in $ac_subst_vars
2385 do
2386 eval ac_val=\$$ac_var
2387 case $ac_val in
2388 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389 esac
2390 $as_echo "$ac_var='\''$ac_val'\''"
2391 done | sort
2392 echo
2393
2394 if test -n "$ac_subst_files"; then
2395 $as_echo "## ------------------- ##
2396 ## File substitutions. ##
2397 ## ------------------- ##"
2398 echo
2399 for ac_var in $ac_subst_files
2400 do
2401 eval ac_val=\$$ac_var
2402 case $ac_val in
2403 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2404 esac
2405 $as_echo "$ac_var='\''$ac_val'\''"
2406 done | sort
2407 echo
2408 fi
2409
2410 if test -s confdefs.h; then
2411 $as_echo "## ----------- ##
2412 ## confdefs.h. ##
2413 ## ----------- ##"
2414 echo
2415 cat confdefs.h
2416 echo
2417 fi
2418 test "$ac_signal" != 0 &&
2419 $as_echo "$as_me: caught signal $ac_signal"
2420 $as_echo "$as_me: exit $exit_status"
2421 } >&5
2422 rm -f core *.core core.conftest.* &&
2423 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2424 exit $exit_status
2425 ' 0
2426 for ac_signal in 1 2 13 15; do
2427 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2428 done
2429 ac_signal=0
2430
2431 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2432 rm -f -r conftest* confdefs.h
2433
2434 $as_echo "/* confdefs.h */" > confdefs.h
2435
2436 # Predefined preprocessor variables.
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_NAME "$PACKAGE_NAME"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2444 _ACEOF
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2448 _ACEOF
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_STRING "$PACKAGE_STRING"
2452 _ACEOF
2453
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2456 _ACEOF
2457
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_URL "$PACKAGE_URL"
2460 _ACEOF
2461
2462
2463 # Let the site file select an alternate cache file if it wants to.
2464 # Prefer an explicitly selected file to automatically selected ones.
2465 ac_site_file1=NONE
2466 ac_site_file2=NONE
2467 if test -n "$CONFIG_SITE"; then
2468 # We do not want a PATH search for config.site.
2469 case $CONFIG_SITE in #((
2470 -*) ac_site_file1=./$CONFIG_SITE;;
2471 */*) ac_site_file1=$CONFIG_SITE;;
2472 *) ac_site_file1=./$CONFIG_SITE;;
2473 esac
2474 elif test "x$prefix" != xNONE; then
2475 ac_site_file1=$prefix/share/config.site
2476 ac_site_file2=$prefix/etc/config.site
2477 else
2478 ac_site_file1=$ac_default_prefix/share/config.site
2479 ac_site_file2=$ac_default_prefix/etc/config.site
2480 fi
2481 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2482 do
2483 test "x$ac_site_file" = xNONE && continue
2484 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2486 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2487 sed 's/^/| /' "$ac_site_file" >&5
2488 . "$ac_site_file" \
2489 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491 as_fn_error $? "failed to load site script $ac_site_file
2492 See \`config.log' for more details" "$LINENO" 5; }
2493 fi
2494 done
2495
2496 if test -r "$cache_file"; then
2497 # Some versions of bash will fail to source /dev/null (special files
2498 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2499 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2501 $as_echo "$as_me: loading cache $cache_file" >&6;}
2502 case $cache_file in
2503 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2504 *) . "./$cache_file";;
2505 esac
2506 fi
2507 else
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2509 $as_echo "$as_me: creating cache $cache_file" >&6;}
2510 >$cache_file
2511 fi
2512
2513 as_fn_append ac_header_list " stdlib.h"
2514 as_fn_append ac_header_list " unistd.h"
2515 as_fn_append ac_header_list " sys/param.h"
2516 as_fn_append ac_header_list " sys/time.h"
2517 as_fn_append ac_func_list " alarm"
2518 # Check that the precious variables saved in the cache have kept the same
2519 # value.
2520 ac_cache_corrupted=false
2521 for ac_var in $ac_precious_vars; do
2522 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523 eval ac_new_set=\$ac_env_${ac_var}_set
2524 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525 eval ac_new_val=\$ac_env_${ac_var}_value
2526 case $ac_old_set,$ac_new_set in
2527 set,)
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2531 ,set)
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2533 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2534 ac_cache_corrupted=: ;;
2535 ,);;
2536 *)
2537 if test "x$ac_old_val" != "x$ac_new_val"; then
2538 # differences in whitespace do not lead to failure.
2539 ac_old_val_w=`echo x $ac_old_val`
2540 ac_new_val_w=`echo x $ac_new_val`
2541 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544 ac_cache_corrupted=:
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2547 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548 eval $ac_var=\$ac_old_val
2549 fi
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2551 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2553 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2554 fi;;
2555 esac
2556 # Pass precious variables to config.status.
2557 if test "$ac_new_set" = set; then
2558 case $ac_new_val in
2559 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2560 *) ac_arg=$ac_var=$ac_new_val ;;
2561 esac
2562 case " $ac_configure_args " in
2563 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2564 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2565 esac
2566 fi
2567 done
2568 if $ac_cache_corrupted; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2574 fi
2575 ## -------------------- ##
2576 ## Main body of script. ##
2577 ## -------------------- ##
2578
2579 ac_ext=c
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584
2585
2586 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2587
2588
2589 am__api_version='1.11'
2590
2591 ac_aux_dir=
2592 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2593 if test -f "$ac_dir/install-sh"; then
2594 ac_aux_dir=$ac_dir
2595 ac_install_sh="$ac_aux_dir/install-sh -c"
2596 break
2597 elif test -f "$ac_dir/install.sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install.sh -c"
2600 break
2601 elif test -f "$ac_dir/shtool"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/shtool install -c"
2604 break
2605 fi
2606 done
2607 if test -z "$ac_aux_dir"; then
2608 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2609 fi
2610
2611 # These three variables are undocumented and unsupported,
2612 # and are intended to be withdrawn in a future Autoconf release.
2613 # They can cause serious problems if a builder's source tree is in a directory
2614 # whose full name contains unusual characters.
2615 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2616 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2617 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2618
2619
2620 # Find a good install program. We prefer a C program (faster),
2621 # so one script is as good as another. But avoid the broken or
2622 # incompatible versions:
2623 # SysV /etc/install, /usr/sbin/install
2624 # SunOS /usr/etc/install
2625 # IRIX /sbin/install
2626 # AIX /bin/install
2627 # AmigaOS /C/install, which installs bootblocks on floppy discs
2628 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2631 # OS/2's system install, which has a completely different semantic
2632 # ./install, which can be erroneously created by make from ./install.sh.
2633 # Reject install programs that cannot install multiple files.
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2635 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2636 if test -z "$INSTALL"; then
2637 if ${ac_cv_path_install+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 # Account for people who put trailing slashes in PATH elements.
2646 case $as_dir/ in #((
2647 ./ | .// | /[cC]/* | \
2648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2649 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2650 /usr/ucb/* ) ;;
2651 *)
2652 # OSF1 and SCO ODT 3.0 have their own names for install.
2653 # Don't use installbsd from OSF since it installs stuff as root
2654 # by default.
2655 for ac_prog in ginstall scoinst install; do
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2658 if test $ac_prog = install &&
2659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2660 # AIX install. It has an incompatible calling convention.
2661 :
2662 elif test $ac_prog = install &&
2663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664 # program-specific install script used by HP pwplus--don't use.
2665 :
2666 else
2667 rm -rf conftest.one conftest.two conftest.dir
2668 echo one > conftest.one
2669 echo two > conftest.two
2670 mkdir conftest.dir
2671 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2672 test -s conftest.one && test -s conftest.two &&
2673 test -s conftest.dir/conftest.one &&
2674 test -s conftest.dir/conftest.two
2675 then
2676 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2677 break 3
2678 fi
2679 fi
2680 fi
2681 done
2682 done
2683 ;;
2684 esac
2685
2686 done
2687 IFS=$as_save_IFS
2688
2689 rm -rf conftest.one conftest.two conftest.dir
2690
2691 fi
2692 if test "${ac_cv_path_install+set}" = set; then
2693 INSTALL=$ac_cv_path_install
2694 else
2695 # As a last resort, use the slow shell script. Don't cache a
2696 # value for INSTALL within a source directory, because that will
2697 # break other packages using the cache if that directory is
2698 # removed, or if the value is a relative name.
2699 INSTALL=$ac_install_sh
2700 fi
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2703 $as_echo "$INSTALL" >&6; }
2704
2705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2706 # It thinks the first close brace ends the variable substitution.
2707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2708
2709 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2710
2711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2712
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2714 $as_echo_n "checking whether build environment is sane... " >&6; }
2715 # Just in case
2716 sleep 1
2717 echo timestamp > conftest.file
2718 # Reject unsafe characters in $srcdir or the absolute working directory
2719 # name. Accept space and tab only in the latter.
2720 am_lf='
2721 '
2722 case `pwd` in
2723 *[\\\"\#\$\&\'\`$am_lf]*)
2724 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2725 esac
2726 case $srcdir in
2727 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2728 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2729 esac
2730
2731 # Do `set' in a subshell so we don't clobber the current shell's
2732 # arguments. Must try -L first in case configure is actually a
2733 # symlink; some systems play weird games with the mod time of symlinks
2734 # (eg FreeBSD returns the mod time of the symlink's containing
2735 # directory).
2736 if (
2737 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2738 if test "$*" = "X"; then
2739 # -L didn't work.
2740 set X `ls -t "$srcdir/configure" conftest.file`
2741 fi
2742 rm -f conftest.file
2743 if test "$*" != "X $srcdir/configure conftest.file" \
2744 && test "$*" != "X conftest.file $srcdir/configure"; then
2745
2746 # If neither matched, then we have a broken ls. This can happen
2747 # if, for instance, CONFIG_SHELL is bash and it inherits a
2748 # broken ls alias from the environment. This has actually
2749 # happened. Such a system could not be considered "sane".
2750 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2751 alias in your environment" "$LINENO" 5
2752 fi
2753
2754 test "$2" = conftest.file
2755 )
2756 then
2757 # Ok.
2758 :
2759 else
2760 as_fn_error $? "newly created file is older than distributed files!
2761 Check your system clock" "$LINENO" 5
2762 fi
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764 $as_echo "yes" >&6; }
2765 test "$program_prefix" != NONE &&
2766 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2767 # Use a double $ so make ignores it.
2768 test "$program_suffix" != NONE &&
2769 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2770 # Double any \ or $.
2771 # By default was `s,x,x', remove it if useless.
2772 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2773 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2774
2775 # expand $ac_aux_dir to an absolute path
2776 am_aux_dir=`cd $ac_aux_dir && pwd`
2777
2778 if test x"${MISSING+set}" != xset; then
2779 case $am_aux_dir in
2780 *\ * | *\ *)
2781 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2782 *)
2783 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2784 esac
2785 fi
2786 # Use eval to expand $SHELL
2787 if eval "$MISSING --run true"; then
2788 am_missing_run="$MISSING --run "
2789 else
2790 am_missing_run=
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2792 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2793 fi
2794
2795 if test x"${install_sh}" != xset; then
2796 case $am_aux_dir in
2797 *\ * | *\ *)
2798 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2799 *)
2800 install_sh="\${SHELL} $am_aux_dir/install-sh"
2801 esac
2802 fi
2803
2804 # Installed binaries are usually stripped using `strip' when the user
2805 # run `make install-strip'. However `strip' might not be the right
2806 # tool to use in cross-compilation environments, therefore Automake
2807 # will honor the `STRIP' environment variable to overrule this program.
2808 if test "$cross_compiling" != no; then
2809 if test -n "$ac_tool_prefix"; then
2810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}strip; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_STRIP+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$STRIP"; then
2818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 STRIP=$ac_cv_prog_STRIP
2838 if test -n "$STRIP"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2840 $as_echo "$STRIP" >&6; }
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846
2847 fi
2848 if test -z "$ac_cv_prog_STRIP"; then
2849 ac_ct_STRIP=$STRIP
2850 # Extract the first word of "strip", so it can be a program name with args.
2851 set dummy strip; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 if test -n "$ac_ct_STRIP"; then
2858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_ac_ct_STRIP="strip"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2878 if test -n "$ac_ct_STRIP"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2880 $as_echo "$ac_ct_STRIP" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886 if test "x$ac_ct_STRIP" = x; then
2887 STRIP=":"
2888 else
2889 case $cross_compiling:$ac_tool_warned in
2890 yes:)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893 ac_tool_warned=yes ;;
2894 esac
2895 STRIP=$ac_ct_STRIP
2896 fi
2897 else
2898 STRIP="$ac_cv_prog_STRIP"
2899 fi
2900
2901 fi
2902 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2903
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2905 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2906 if test -z "$MKDIR_P"; then
2907 if ${ac_cv_path_mkdir+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_prog in mkdir gmkdir; do
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2918 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2919 'mkdir (GNU coreutils) '* | \
2920 'mkdir (coreutils) '* | \
2921 'mkdir (fileutils) '4.1*)
2922 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2923 break 3;;
2924 esac
2925 done
2926 done
2927 done
2928 IFS=$as_save_IFS
2929
2930 fi
2931
2932 test -d ./--version && rmdir ./--version
2933 if test "${ac_cv_path_mkdir+set}" = set; then
2934 MKDIR_P="$ac_cv_path_mkdir -p"
2935 else
2936 # As a last resort, use the slow shell script. Don't cache a
2937 # value for MKDIR_P within a source directory, because that will
2938 # break other packages using the cache if that directory is
2939 # removed, or if the value is a relative name.
2940 MKDIR_P="$ac_install_sh -d"
2941 fi
2942 fi
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2944 $as_echo "$MKDIR_P" >&6; }
2945
2946
2947 mkdir_p="$MKDIR_P"
2948 case $mkdir_p in
2949 [\\/$]* | ?:[\\/]*) ;;
2950 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2951 esac
2952
2953 for ac_prog in gawk mawk nawk awk
2954 do
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_AWK+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$AWK"; then
2963 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_AWK="$ac_prog"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 AWK=$ac_cv_prog_AWK
2983 if test -n "$AWK"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2985 $as_echo "$AWK" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992 test -n "$AWK" && break
2993 done
2994
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2996 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2997 set x ${MAKE-make}
2998 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2999 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 cat >conftest.make <<\_ACEOF
3003 SHELL = /bin/sh
3004 all:
3005 @echo '@@@%%%=$(MAKE)=@@@%%%'
3006 _ACEOF
3007 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3008 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3009 *@@@%%%=?*=@@@%%%*)
3010 eval ac_cv_prog_make_${ac_make}_set=yes;;
3011 *)
3012 eval ac_cv_prog_make_${ac_make}_set=no;;
3013 esac
3014 rm -f conftest.make
3015 fi
3016 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3018 $as_echo "yes" >&6; }
3019 SET_MAKE=
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 SET_MAKE="MAKE=${MAKE-make}"
3024 fi
3025
3026 rm -rf .tst 2>/dev/null
3027 mkdir .tst 2>/dev/null
3028 if test -d .tst; then
3029 am__leading_dot=.
3030 else
3031 am__leading_dot=_
3032 fi
3033 rmdir .tst 2>/dev/null
3034
3035 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3036 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3037 # is not polluted with repeated "-I."
3038 am__isrc=' -I$(srcdir)'
3039 # test to see if srcdir already configured
3040 if test -f $srcdir/config.status; then
3041 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3042 fi
3043 fi
3044
3045 # test whether we have cygpath
3046 if test -z "$CYGPATH_W"; then
3047 if (cygpath --version) >/dev/null 2>/dev/null; then
3048 CYGPATH_W='cygpath -w'
3049 else
3050 CYGPATH_W=echo
3051 fi
3052 fi
3053
3054
3055 # Define the identity of the package.
3056 PACKAGE='emacs'
3057 VERSION='24.0.50'
3058
3059
3060 cat >>confdefs.h <<_ACEOF
3061 #define PACKAGE "$PACKAGE"
3062 _ACEOF
3063
3064
3065 cat >>confdefs.h <<_ACEOF
3066 #define VERSION "$VERSION"
3067 _ACEOF
3068
3069 # Some tools Automake needs.
3070
3071 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3072
3073
3074 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3075
3076
3077 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3078
3079
3080 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3081
3082
3083 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3084
3085 # We need awk for the "check" target. The system "awk" is bad on
3086 # some platforms.
3087 # Always define AMTAR for backward compatibility.
3088
3089 AMTAR=${AMTAR-"${am_missing_run}tar"}
3090
3091 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3092
3093
3094
3095
3096
3097
3098
3099
3100 lispdir='${datadir}/emacs/${version}/lisp'
3101 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3102 '${datadir}/emacs/site-lisp'
3103 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3104 etcdir='${datadir}/emacs/${version}/etc'
3105 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3106 docdir='${datadir}/emacs/${version}/etc'
3107 gamedir='${localstatedir}/games/emacs'
3108
3109
3110
3111
3112 # Check whether --with-pop was given.
3113 if test "${with_pop+set}" = set; then :
3114 withval=$with_pop;
3115 else
3116 with_pop=yes
3117 fi
3118
3119 if test "$with_pop" = yes; then
3120 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3121
3122 fi
3123
3124
3125 # Check whether --with-kerberos was given.
3126 if test "${with_kerberos+set}" = set; then :
3127 withval=$with_kerberos;
3128 else
3129 with_kerberos=no
3130 fi
3131
3132 if test "$with_kerberos" != no; then
3133 $as_echo "#define KERBEROS 1" >>confdefs.h
3134
3135 fi
3136
3137
3138 # Check whether --with-kerberos5 was given.
3139 if test "${with_kerberos5+set}" = set; then :
3140 withval=$with_kerberos5;
3141 else
3142 with_kerberos5=no
3143 fi
3144
3145 if test "${with_kerberos5}" != no; then
3146 if test "${with_kerberos}" = no; then
3147 with_kerberos=yes
3148 $as_echo "#define KERBEROS 1" >>confdefs.h
3149
3150 fi
3151
3152 $as_echo "#define KERBEROS5 1" >>confdefs.h
3153
3154 fi
3155
3156
3157 # Check whether --with-hesiod was given.
3158 if test "${with_hesiod+set}" = set; then :
3159 withval=$with_hesiod;
3160 else
3161 with_hesiod=no
3162 fi
3163
3164 if test "$with_hesiod" != no; then
3165
3166 $as_echo "#define HESIOD 1" >>confdefs.h
3167
3168 fi
3169
3170
3171 # Check whether --with-mmdf was given.
3172 if test "${with_mmdf+set}" = set; then :
3173 withval=$with_mmdf;
3174 else
3175 with_mmdf=no
3176 fi
3177
3178 if test "$with_mmdf" != no; then
3179
3180 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3181
3182 fi
3183
3184
3185 # Check whether --with-mail-unlink was given.
3186 if test "${with_mail_unlink+set}" = set; then :
3187 withval=$with_mail_unlink;
3188 else
3189 with_mail_unlink=no
3190 fi
3191
3192 if test "$with_mail_unlink" != no; then
3193
3194 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3195
3196 fi
3197
3198
3199 # Check whether --with-mailhost was given.
3200 if test "${with_mailhost+set}" = set; then :
3201 withval=$with_mailhost;
3202 cat >>confdefs.h <<_ACEOF
3203 #define MAILHOST "$withval"
3204 _ACEOF
3205
3206 fi
3207
3208
3209
3210 # Check whether --with-sound was given.
3211 if test "${with_sound+set}" = set; then :
3212 withval=$with_sound;
3213 else
3214 with_sound=yes
3215 fi
3216
3217
3218
3219 # Check whether --with-sync-input was given.
3220 if test "${with_sync_input+set}" = set; then :
3221 withval=$with_sync_input;
3222 else
3223 with_sync_input=yes
3224 fi
3225
3226 if test "$with_sync_input" = yes; then
3227
3228 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3229
3230 fi
3231
3232
3233 # Check whether --with-x-toolkit was given.
3234 if test "${with_x_toolkit+set}" = set; then :
3235 withval=$with_x_toolkit; case "${withval}" in
3236 y | ye | yes ) val=gtk ;;
3237 n | no ) val=no ;;
3238 l | lu | luc | luci | lucid ) val=lucid ;;
3239 a | at | ath | athe | athen | athena ) val=athena ;;
3240 m | mo | mot | moti | motif ) val=motif ;;
3241 g | gt | gtk ) val=gtk ;;
3242 gtk3 ) val=gtk3 ;;
3243 * )
3244 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3245 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3246 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3247 ;;
3248 esac
3249 with_x_toolkit=$val
3250
3251 fi
3252
3253
3254
3255 # Check whether --with-xpm was given.
3256 if test "${with_xpm+set}" = set; then :
3257 withval=$with_xpm;
3258 else
3259 with_xpm=yes
3260 fi
3261
3262
3263 # Check whether --with-jpeg was given.
3264 if test "${with_jpeg+set}" = set; then :
3265 withval=$with_jpeg;
3266 else
3267 with_jpeg=yes
3268 fi
3269
3270
3271 # Check whether --with-tiff was given.
3272 if test "${with_tiff+set}" = set; then :
3273 withval=$with_tiff;
3274 else
3275 with_tiff=yes
3276 fi
3277
3278
3279 # Check whether --with-gif was given.
3280 if test "${with_gif+set}" = set; then :
3281 withval=$with_gif;
3282 else
3283 with_gif=yes
3284 fi
3285
3286
3287 # Check whether --with-png was given.
3288 if test "${with_png+set}" = set; then :
3289 withval=$with_png;
3290 else
3291 with_png=yes
3292 fi
3293
3294
3295 # Check whether --with-rsvg was given.
3296 if test "${with_rsvg+set}" = set; then :
3297 withval=$with_rsvg;
3298 else
3299 with_rsvg=yes
3300 fi
3301
3302
3303 # Check whether --with-xml2 was given.
3304 if test "${with_xml2+set}" = set; then :
3305 withval=$with_xml2;
3306 else
3307 with_xml2=yes
3308 fi
3309
3310
3311 # Check whether --with-imagemagick was given.
3312 if test "${with_imagemagick+set}" = set; then :
3313 withval=$with_imagemagick;
3314 else
3315 with_imagemagick=yes
3316 fi
3317
3318
3319
3320 # Check whether --with-xft was given.
3321 if test "${with_xft+set}" = set; then :
3322 withval=$with_xft;
3323 else
3324 with_xft=yes
3325 fi
3326
3327
3328 # Check whether --with-libotf was given.
3329 if test "${with_libotf+set}" = set; then :
3330 withval=$with_libotf;
3331 else
3332 with_libotf=yes
3333 fi
3334
3335
3336 # Check whether --with-m17n-flt was given.
3337 if test "${with_m17n_flt+set}" = set; then :
3338 withval=$with_m17n_flt;
3339 else
3340 with_m17n_flt=yes
3341 fi
3342
3343
3344
3345 # Check whether --with-toolkit-scroll-bars was given.
3346 if test "${with_toolkit_scroll_bars+set}" = set; then :
3347 withval=$with_toolkit_scroll_bars;
3348 else
3349 with_toolkit_scroll_bars=yes
3350 fi
3351
3352
3353 # Check whether --with-xaw3d was given.
3354 if test "${with_xaw3d+set}" = set; then :
3355 withval=$with_xaw3d;
3356 else
3357 with_xaw3d=yes
3358 fi
3359
3360
3361 # Check whether --with-xim was given.
3362 if test "${with_xim+set}" = set; then :
3363 withval=$with_xim;
3364 else
3365 with_xim=yes
3366 fi
3367
3368
3369 # Check whether --with-ns was given.
3370 if test "${with_ns+set}" = set; then :
3371 withval=$with_ns;
3372 else
3373 with_ns=no
3374 fi
3375
3376
3377
3378 # Check whether --with-gpm was given.
3379 if test "${with_gpm+set}" = set; then :
3380 withval=$with_gpm;
3381 else
3382 with_gpm=yes
3383 fi
3384
3385
3386 # Check whether --with-dbus was given.
3387 if test "${with_dbus+set}" = set; then :
3388 withval=$with_dbus;
3389 else
3390 with_dbus=yes
3391 fi
3392
3393
3394 # Check whether --with-gconf was given.
3395 if test "${with_gconf+set}" = set; then :
3396 withval=$with_gconf;
3397 else
3398 with_gconf=yes
3399 fi
3400
3401
3402 # Check whether --with-selinux was given.
3403 if test "${with_selinux+set}" = set; then :
3404 withval=$with_selinux;
3405 else
3406 with_selinux=yes
3407 fi
3408
3409
3410 # Check whether --with-gnutls was given.
3411 if test "${with_gnutls+set}" = set; then :
3412 withval=$with_gnutls;
3413 else
3414 with_gnutls=yes
3415 fi
3416
3417
3418 ## For the times when you want to build Emacs but don't have
3419 ## a suitable makeinfo, and can live without the manuals.
3420
3421 # Check whether --with-makeinfo was given.
3422 if test "${with_makeinfo+set}" = set; then :
3423 withval=$with_makeinfo;
3424 else
3425 with_makeinfo=yes
3426 fi
3427
3428
3429 ## This is an option because I do not know if all info/man support
3430 ## compressed files, nor how to test if they do so.
3431
3432 # Check whether --with-compress-info was given.
3433 if test "${with_compress_info+set}" = set; then :
3434 withval=$with_compress_info;
3435 else
3436 with_compress_info=yes
3437 fi
3438
3439 if test $with_compress_info = yes; then
3440 GZIP_INFO=yes
3441 else
3442 GZIP_INFO=
3443 fi
3444
3445
3446
3447 # Check whether --with-pkg-config-prog was given.
3448 if test "${with_pkg_config_prog+set}" = set; then :
3449 withval=$with_pkg_config_prog;
3450 fi
3451
3452 if test "X${with_pkg_config_prog}" != X; then
3453 if test "${with_pkg_config_prog}" != yes; then
3454 PKG_CONFIG="${with_pkg_config_prog}"
3455 fi
3456 fi
3457
3458 CRT_DIR=
3459
3460 # Check whether --with-crt-dir was given.
3461 if test "${with_crt_dir+set}" = set; then :
3462 withval=$with_crt_dir;
3463 fi
3464
3465 CRT_DIR="${with_crt_dir}"
3466
3467
3468 # Check whether --with-gameuser was given.
3469 if test "${with_gameuser+set}" = set; then :
3470 withval=$with_gameuser;
3471 fi
3472
3473 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3474 && gameuser="${with_gameuser}"
3475 test "X$gameuser" = X && gameuser=games
3476
3477
3478 # Check whether --with-gnustep-conf was given.
3479 if test "${with_gnustep_conf+set}" = set; then :
3480 withval=$with_gnustep_conf;
3481 fi
3482
3483 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3484 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3485 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3486 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3487
3488 # Check whether --enable-ns-self-contained was given.
3489 if test "${enable_ns_self_contained+set}" = set; then :
3490 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3491 else
3492 EN_NS_SELF_CONTAINED=yes
3493 fi
3494
3495
3496 # Check whether --enable-asserts was given.
3497 if test "${enable_asserts+set}" = set; then :
3498 enableval=$enable_asserts; USE_XASSERTS=$enableval
3499 else
3500 USE_XASSERTS=no
3501 fi
3502
3503
3504 # Check whether --enable-maintainer-mode was given.
3505 if test "${enable_maintainer_mode+set}" = set; then :
3506 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3507 else
3508 USE_MAINTAINER_MODE=no
3509 fi
3510
3511 if test $USE_MAINTAINER_MODE = yes; then
3512 MAINT=
3513 else
3514 MAINT=#
3515 fi
3516
3517
3518 # Check whether --enable-locallisppath was given.
3519 if test "${enable_locallisppath+set}" = set; then :
3520 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3521 locallisppath=
3522 elif test "${enableval}" != "yes"; then
3523 locallisppath=${enableval}
3524 fi
3525 fi
3526
3527
3528 # Check whether --enable-checking was given.
3529 if test "${enable_checking+set}" = set; then :
3530 enableval=$enable_checking; ac_checking_flags="${enableval}"
3531 fi
3532
3533 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3534 for check in $ac_checking_flags
3535 do
3536 case $check in
3537 # these set all the flags to specific states
3538 yes) ac_enable_checking=1 ;;
3539 no) ac_enable_checking= ;
3540 ac_gc_check_stringbytes= ;
3541 ac_gc_check_string_overrun= ;
3542 ac_gc_check_string_free_list= ;
3543 ac_xmalloc_overrun= ;
3544 ac_gc_check_cons_list= ;;
3545 all) ac_enable_checking=1 ;
3546 ac_gc_check_stringbytes=1 ;
3547 ac_gc_check_string_overrun=1 ;
3548 ac_gc_check_string_free_list=1 ;
3549 ac_xmalloc_overrun=1 ;
3550 ac_gc_check_cons_list=1 ;;
3551 # these enable particular checks
3552 stringbytes) ac_gc_check_stringbytes=1 ;;
3553 stringoverrun) ac_gc_check_string_overrun=1 ;;
3554 stringfreelist) ac_gc_check_string_free_list=1 ;;
3555 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3556 conslist) ac_gc_check_cons_list=1 ;;
3557 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3558 esac
3559 done
3560 IFS="$ac_save_IFS"
3561
3562 if test x$ac_enable_checking != x ; then
3563
3564 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3565
3566 fi
3567 if test x$ac_gc_check_stringbytes != x ; then
3568
3569 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3570
3571 fi
3572 if test x$ac_gc_check_stringoverrun != x ; then
3573
3574 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3575
3576 fi
3577 if test x$ac_gc_check_string_free_list != x ; then
3578
3579 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3580
3581 fi
3582 if test x$ac_xmalloc_overrun != x ; then
3583
3584 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3585
3586 fi
3587 if test x$ac_gc_check_cons_list != x ; then
3588
3589 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3590
3591 fi
3592
3593 # Check whether --enable-use-lisp-union-type was given.
3594 if test "${enable_use_lisp_union_type+set}" = set; then :
3595 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3596
3597 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3598
3599 fi
3600 fi
3601
3602
3603
3604 # Check whether --enable-profiling was given.
3605 if test "${enable_profiling+set}" = set; then :
3606 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3607 fi
3608
3609 if test x$ac_enable_profiling != x ; then
3610 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3611 else
3612 PROFILING_CFLAGS=
3613 fi
3614
3615
3616 # Check whether --enable-autodepend was given.
3617 if test "${enable_autodepend+set}" = set; then :
3618 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3619 else
3620 ac_enable_autodepend=yes
3621 fi
3622
3623
3624 #### Make srcdir absolute, if it isn't already. It's important to
3625 #### avoid running the path through pwd unnecessarily, since pwd can
3626 #### give you automounter prefixes, which can go away. We do all this
3627 #### so Emacs can find its files when run uninstalled.
3628 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3629 unset CDPATH
3630 case "${srcdir}" in
3631 /* ) ;;
3632 . )
3633 ## We may be able to use the $PWD environment variable to make this
3634 ## absolute. But sometimes PWD is inaccurate.
3635 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3636 ## but that tested only for a well-formed and valid PWD,
3637 ## it did not object when PWD was well-formed and valid but just wrong.
3638 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3639 then
3640 srcdir="$PWD"
3641 else
3642 srcdir="`(cd ${srcdir}; pwd)`"
3643 fi
3644 ;;
3645 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3646 esac
3647
3648 #### Check if the source directory already has a configured system in it.
3649 if test `pwd` != `(cd ${srcdir} && pwd)` \
3650 && test -f "${srcdir}/src/config.h" ; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3652 as a build directory right now; it has been configured in its own
3653 right. To configure in another directory as well, you MUST
3654 use GNU make. If you do not have GNU make, then you must
3655 now do \`make distclean' in ${srcdir},
3656 and then run $0 again." >&5
3657 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3658 as a build directory right now; it has been configured in its own
3659 right. To configure in another directory as well, you MUST
3660 use GNU make. If you do not have GNU make, then you must
3661 now do \`make distclean' in ${srcdir},
3662 and then run $0 again." >&2;}
3663 fi
3664
3665 #### Given the configuration name, set machfile and opsysfile to the
3666 #### names of the m/*.h and s/*.h files we should use.
3667
3668 ### Canonicalize the configuration name.
3669
3670 # Make sure we can run config.sub.
3671 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3672 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3673
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3675 $as_echo_n "checking build system type... " >&6; }
3676 if ${ac_cv_build+:} false; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 ac_build_alias=$build_alias
3680 test "x$ac_build_alias" = x &&
3681 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3682 test "x$ac_build_alias" = x &&
3683 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3684 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3685 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3686
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3689 $as_echo "$ac_cv_build" >&6; }
3690 case $ac_cv_build in
3691 *-*-*) ;;
3692 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3693 esac
3694 build=$ac_cv_build
3695 ac_save_IFS=$IFS; IFS='-'
3696 set x $ac_cv_build
3697 shift
3698 build_cpu=$1
3699 build_vendor=$2
3700 shift; shift
3701 # Remember, the first character of IFS is used to create $*,
3702 # except with old shells:
3703 build_os=$*
3704 IFS=$ac_save_IFS
3705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3706
3707
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3709 $as_echo_n "checking host system type... " >&6; }
3710 if ${ac_cv_host+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test "x$host_alias" = x; then
3714 ac_cv_host=$ac_cv_build
3715 else
3716 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3717 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3718 fi
3719
3720 fi
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3722 $as_echo "$ac_cv_host" >&6; }
3723 case $ac_cv_host in
3724 *-*-*) ;;
3725 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3726 esac
3727 host=$ac_cv_host
3728 ac_save_IFS=$IFS; IFS='-'
3729 set x $ac_cv_host
3730 shift
3731 host_cpu=$1
3732 host_vendor=$2
3733 shift; shift
3734 # Remember, the first character of IFS is used to create $*,
3735 # except with old shells:
3736 host_os=$*
3737 IFS=$ac_save_IFS
3738 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3739
3740
3741 canonical=$host
3742 configuration=${host_alias-${build_alias-$host}}
3743
3744
3745
3746 ### If you add support for a new configuration, add code to this
3747 ### switch statement to recognize your configuration name and select
3748 ### the appropriate operating system and machine description files.
3749
3750 ### You would hope that you could choose an m/*.h file pretty much
3751 ### based on the machine portion of the configuration name, and an s/*.h
3752 ### file based on the operating system portion. However, it turns out
3753 ### that each m/*.h file is pretty manufacturer-specific - for
3754 ### example mips.h is MIPS
3755 ### So we basically have to have a special case for each
3756 ### configuration name.
3757 ###
3758 ### As far as handling version numbers on operating systems is
3759 ### concerned, make sure things will fail in a fixable way. If
3760 ### /etc/MACHINES doesn't say anything about version numbers, be
3761 ### prepared to handle anything reasonably. If version numbers
3762 ### matter, be sure /etc/MACHINES says something about it.
3763
3764 machine='' opsys='' unported=no
3765 case "${canonical}" in
3766
3767 ## GNU/Linux ports
3768 *-*-linux-gnu*)
3769 opsys=gnu-linux
3770 case ${canonical} in
3771 alpha*) machine=alpha ;;
3772 s390-*) machine=ibms390 ;;
3773 s390x-*) machine=ibms390x ;;
3774 powerpc*) machine=macppc ;;
3775 sparc*) machine=sparc ;;
3776 ia64*) machine=ia64 ;;
3777 m68k*) machine=m68k ;;
3778 x86_64*) machine=amdx86-64 ;;
3779 esac
3780 ;;
3781
3782 ## FreeBSD ports
3783 *-*-freebsd* )
3784 opsys=freebsd
3785 case "${canonical}" in
3786 alpha*) machine=alpha ;;
3787 amd64-*|x86_64-*) machine=amdx86-64 ;;
3788 ia64-*) machine=ia64 ;;
3789 i[3456]86-*) machine=intel386 ;;
3790 powerpc-*) machine=macppc ;;
3791 sparc-*) machine=sparc ;;
3792 sparc64-*) machine=sparc ;;
3793 esac
3794 ;;
3795
3796 ## FreeBSD kernel + glibc based userland
3797 *-*-kfreebsd*gnu* )
3798 opsys=gnu-kfreebsd
3799 case "${canonical}" in
3800 alpha*) machine=alpha ;;
3801 amd64-*|x86_64-*) machine=amdx86-64 ;;
3802 ia64-*) machine=ia64 ;;
3803 i[3456]86-*) machine=intel386 ;;
3804 powerpc-*) machine=macppc ;;
3805 sparc-*) machine=sparc ;;
3806 sparc64-*) machine=sparc ;;
3807 esac
3808 ;;
3809
3810 ## NetBSD ports
3811 *-*-netbsd* )
3812 opsys=netbsd
3813 case "${canonical}" in
3814 alpha*) machine=alpha ;;
3815 x86_64-*) machine=amdx86-64 ;;
3816 i[3456]86-*) machine=intel386 ;;
3817 m68k-*) machine=m68k ;;
3818 powerpc-*) machine=macppc ;;
3819 sparc*-) machine=sparc ;;
3820 vax-*) machine=vax ;;
3821 esac
3822 ;;
3823
3824 ## OpenBSD ports
3825 *-*-openbsd* )
3826 opsys=openbsd
3827 case "${canonical}" in
3828 alpha*) machine=alpha ;;
3829 x86_64-*) machine=amdx86-64 ;;
3830 i386-*) machine=intel386 ;;
3831 powerpc-*) machine=macppc ;;
3832 sparc*) machine=sparc ;;
3833 vax-*) machine=vax ;;
3834 esac
3835 ;;
3836
3837 ## Apple Darwin / Mac OS X
3838 *-apple-darwin* )
3839 case "${canonical}" in
3840 i[3456]86-* ) machine=intel386 ;;
3841 powerpc-* ) machine=macppc ;;
3842 x86_64-* ) machine=amdx86-64 ;;
3843 * ) unported=yes ;;
3844 esac
3845 opsys=darwin
3846 # Define CPP as follows to make autoconf work correctly.
3847 CPP="${CC-cc} -E -no-cpp-precomp"
3848 # Use fink packages if available.
3849 if test -d /sw/include && test -d /sw/lib; then
3850 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3851 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3852 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3853 fi
3854 ;;
3855
3856 ## HP 9000 series 700 and 800, running HP/UX
3857 hppa*-hp-hpux10.2* )
3858 opsys=hpux10-20
3859 ;;
3860 hppa*-hp-hpux1[1-9]* )
3861 opsys=hpux11
3862 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3863 ;;
3864
3865 ## IBM machines
3866 rs6000-ibm-aix4.[23]* )
3867 machine=ibmrs6000 opsys=aix4-2
3868 ;;
3869 powerpc-ibm-aix4.[23]* )
3870 machine=ibmrs6000 opsys=aix4-2
3871 ;;
3872 rs6000-ibm-aix[56]* )
3873 machine=ibmrs6000 opsys=aix4-2
3874 ;;
3875 powerpc-ibm-aix[56]* )
3876 machine=ibmrs6000 opsys=aix4-2
3877 ;;
3878
3879 ## Silicon Graphics machines
3880 ## Iris 4D
3881 mips-sgi-irix6.5 )
3882 machine=iris4d opsys=irix6-5
3883 # Without defining _LANGUAGE_C, things get masked out in the headers
3884 # so that, for instance, grepping for `free' in stdlib.h fails and
3885 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3886 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3887 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3888 ;;
3889
3890 ## Suns
3891 *-sun-solaris* \
3892 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3893 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3894 case "${canonical}" in
3895 i[3456]86-*-* ) machine=intel386 ;;
3896 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3897 sparc* ) machine=sparc ;;
3898 * ) unported=yes ;;
3899 esac
3900 case "${canonical}" in
3901 *-sunos5.6* | *-solaris2.6* )
3902 opsys=sol2-6
3903 NON_GNU_CPP=/usr/ccs/lib/cpp
3904 RANLIB="ar -ts"
3905 ;;
3906 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3907 opsys=sol2-6
3908 emacs_check_sunpro_c=yes
3909 NON_GNU_CPP=/usr/ccs/lib/cpp
3910 ;;
3911 *-sunos5* | *-solaris* )
3912 opsys=sol2-10
3913 emacs_check_sunpro_c=yes
3914 NON_GNU_CPP=/usr/ccs/lib/cpp
3915 ;;
3916 esac
3917 ## Watch out for a compiler that we know will not work.
3918 case "${canonical}" in
3919 *-solaris* | *-sunos5* )
3920 if [ "x$CC" = x/usr/ucb/cc ]; then
3921 ## /usr/ucb/cc doesn't work;
3922 ## we should find some other compiler that does work.
3923 unset CC
3924 fi
3925 ;;
3926 *) ;;
3927 esac
3928 ;;
3929
3930 ## Intel 386 machines where we don't care about the manufacturer.
3931 i[3456]86-*-* )
3932 machine=intel386
3933 case "${canonical}" in
3934 *-cygwin ) opsys=cygwin ;;
3935 *-darwin* ) opsys=darwin
3936 CPP="${CC-cc} -E -no-cpp-precomp"
3937 ;;
3938 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3939 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3940 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3941 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3942 esac
3943 ;;
3944
3945 * )
3946 unported=yes
3947 ;;
3948 esac
3949
3950 ### If the code above didn't choose an operating system, just choose
3951 ### an operating system based on the configuration name. You really
3952 ### only want to use this when you have no idea what the right
3953 ### operating system is; if you know what operating systems a machine
3954 ### runs, it's cleaner to make it explicit in the case statement
3955 ### above.
3956 if test x"${opsys}" = x; then
3957 case "${canonical}" in
3958 *-gnu* ) opsys=gnu ;;
3959 * )
3960 unported=yes
3961 ;;
3962 esac
3963 fi
3964
3965
3966
3967 if test $unported = yes; then
3968 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3969 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3970 fi
3971
3972 if test -n "$machine"; then
3973 machfile="m/${machine}.h"
3974 else
3975 machfile=
3976 fi
3977 opsysfile="s/${opsys}.h"
3978
3979
3980 #### Choose a compiler.
3981 test -n "$CC" && cc_specified=yes
3982
3983 # Save the value of CFLAGS that the user specified.
3984 SPECIFIED_CFLAGS="$CFLAGS"
3985
3986 ac_ext=c
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if ${ac_cv_prog_CC+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 if test -n "$CC"; then
4000 ac_cv_prog_CC="$CC" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017 fi
4018 fi
4019 CC=$ac_cv_prog_CC
4020 if test -n "$CC"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4022 $as_echo "$CC" >&6; }
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4026 fi
4027
4028
4029 fi
4030 if test -z "$ac_cv_prog_CC"; then
4031 ac_ct_CC=$CC
4032 # Extract the first word of "gcc", so it can be a program name with args.
4033 set dummy gcc; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_prog_ac_ct_CC="gcc"
4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 break 2
4052 fi
4053 done
4054 done
4055 IFS=$as_save_IFS
4056
4057 fi
4058 fi
4059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060 if test -n "$ac_ct_CC"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062 $as_echo "$ac_ct_CC" >&6; }
4063 else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4066 fi
4067
4068 if test "x$ac_ct_CC" = x; then
4069 CC=""
4070 else
4071 case $cross_compiling:$ac_tool_warned in
4072 yes:)
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4075 ac_tool_warned=yes ;;
4076 esac
4077 CC=$ac_ct_CC
4078 fi
4079 else
4080 CC="$ac_cv_prog_CC"
4081 fi
4082
4083 if test -z "$CC"; then
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4086 set dummy ${ac_tool_prefix}cc; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_prog_CC+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -n "$CC"; then
4093 ac_cv_prog_CC="$CC" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102 ac_cv_prog_CC="${ac_tool_prefix}cc"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4105 fi
4106 done
4107 done
4108 IFS=$as_save_IFS
4109
4110 fi
4111 fi
4112 CC=$ac_cv_prog_CC
4113 if test -n "$CC"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115 $as_echo "$CC" >&6; }
4116 else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4119 fi
4120
4121
4122 fi
4123 fi
4124 if test -z "$CC"; then
4125 # Extract the first word of "cc", so it can be a program name with args.
4126 set dummy cc; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_CC+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -n "$CC"; then
4133 ac_cv_prog_CC="$CC" # Let the user override the test.
4134 else
4135 ac_prog_rejected=no
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4144 ac_prog_rejected=yes
4145 continue
4146 fi
4147 ac_cv_prog_CC="cc"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4150 fi
4151 done
4152 done
4153 IFS=$as_save_IFS
4154
4155 if test $ac_prog_rejected = yes; then
4156 # We found a bogon in the path, so make sure we never use it.
4157 set dummy $ac_cv_prog_CC
4158 shift
4159 if test $# != 0; then
4160 # We chose a different compiler from the bogus one.
4161 # However, it has the same basename, so the bogon will be chosen
4162 # first if we set CC to just the basename; use the full file name.
4163 shift
4164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4165 fi
4166 fi
4167 fi
4168 fi
4169 CC=$ac_cv_prog_CC
4170 if test -n "$CC"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4172 $as_echo "$CC" >&6; }
4173 else
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4176 fi
4177
4178
4179 fi
4180 if test -z "$CC"; then
4181 if test -n "$ac_tool_prefix"; then
4182 for ac_prog in cl.exe
4183 do
4184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_CC+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 if test -n "$CC"; then
4192 ac_cv_prog_CC="$CC" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4204 fi
4205 done
4206 done
4207 IFS=$as_save_IFS
4208
4209 fi
4210 fi
4211 CC=$ac_cv_prog_CC
4212 if test -n "$CC"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4214 $as_echo "$CC" >&6; }
4215 else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4218 fi
4219
4220
4221 test -n "$CC" && break
4222 done
4223 fi
4224 if test -z "$CC"; then
4225 ac_ct_CC=$CC
4226 for ac_prog in cl.exe
4227 do
4228 # Extract the first word of "$ac_prog", so it can be a program name with args.
4229 set dummy $ac_prog; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if test -n "$ac_ct_CC"; then
4236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_ac_ct_CC="$ac_prog"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253 fi
4254 fi
4255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4256 if test -n "$ac_ct_CC"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4258 $as_echo "$ac_ct_CC" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263
4264
4265 test -n "$ac_ct_CC" && break
4266 done
4267
4268 if test "x$ac_ct_CC" = x; then
4269 CC=""
4270 else
4271 case $cross_compiling:$ac_tool_warned in
4272 yes:)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4275 ac_tool_warned=yes ;;
4276 esac
4277 CC=$ac_ct_CC
4278 fi
4279 fi
4280
4281 fi
4282
4283
4284 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4286 as_fn_error $? "no acceptable C compiler found in \$PATH
4287 See \`config.log' for more details" "$LINENO" 5; }
4288
4289 # Provide some information about the compiler.
4290 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4291 set X $ac_compile
4292 ac_compiler=$2
4293 for ac_option in --version -v -V -qversion; do
4294 { { ac_try="$ac_compiler $ac_option >&5"
4295 case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4302 ac_status=$?
4303 if test -s conftest.err; then
4304 sed '10a\
4305 ... rest of stderr output deleted ...
4306 10q' conftest.err >conftest.er1
4307 cat conftest.er1 >&5
4308 fi
4309 rm -f conftest.er1 conftest.err
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }
4312 done
4313
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316
4317 int
4318 main ()
4319 {
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 ac_clean_files_save=$ac_clean_files
4326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4327 # Try to create an executable without -o first, disregard a.out.
4328 # It will help us diagnose broken compilers, and finding out an intuition
4329 # of exeext.
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4331 $as_echo_n "checking whether the C compiler works... " >&6; }
4332 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4333
4334 # The possible output files:
4335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4336
4337 ac_rmfiles=
4338 for ac_file in $ac_files
4339 do
4340 case $ac_file in
4341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4343 esac
4344 done
4345 rm -f $ac_rmfiles
4346
4347 if { { ac_try="$ac_link_default"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_link_default") 2>&5
4355 ac_status=$?
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; then :
4358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4361 # so that the user can short-circuit this test for compilers unknown to
4362 # Autoconf.
4363 for ac_file in $ac_files ''
4364 do
4365 test -f "$ac_file" || continue
4366 case $ac_file in
4367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4368 ;;
4369 [ab].out )
4370 # We found the default executable, but exeext='' is most
4371 # certainly right.
4372 break;;
4373 *.* )
4374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4375 then :; else
4376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4377 fi
4378 # We set ac_cv_exeext here because the later test for it is not
4379 # safe: cross compilers may not add the suffix if given an `-o'
4380 # argument, so we may need to know it at that point already.
4381 # Even if this section looks crufty: it has the advantage of
4382 # actually working.
4383 break;;
4384 * )
4385 break;;
4386 esac
4387 done
4388 test "$ac_cv_exeext" = no && ac_cv_exeext=
4389
4390 else
4391 ac_file=''
4392 fi
4393 if test -z "$ac_file"; then :
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 $as_echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401 as_fn_error 77 "C compiler cannot create executables
4402 See \`config.log' for more details" "$LINENO" 5; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405 $as_echo "yes" >&6; }
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4408 $as_echo_n "checking for C compiler default output file name... " >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4410 $as_echo "$ac_file" >&6; }
4411 ac_exeext=$ac_cv_exeext
4412
4413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4414 ac_clean_files=$ac_clean_files_save
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4416 $as_echo_n "checking for suffix of executables... " >&6; }
4417 if { { ac_try="$ac_link"
4418 case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_link") 2>&5
4425 ac_status=$?
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; then :
4428 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4429 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4430 # work properly (i.e., refer to `conftest.exe'), while it won't with
4431 # `rm'.
4432 for ac_file in conftest.exe conftest conftest.*; do
4433 test -f "$ac_file" || continue
4434 case $ac_file in
4435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4437 break;;
4438 * ) break;;
4439 esac
4440 done
4441 else
4442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4445 See \`config.log' for more details" "$LINENO" 5; }
4446 fi
4447 rm -f conftest conftest$ac_cv_exeext
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4449 $as_echo "$ac_cv_exeext" >&6; }
4450
4451 rm -f conftest.$ac_ext
4452 EXEEXT=$ac_cv_exeext
4453 ac_exeext=$EXEEXT
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <stdio.h>
4457 int
4458 main ()
4459 {
4460 FILE *f = fopen ("conftest.out", "w");
4461 return ferror (f) || fclose (f) != 0;
4462
4463 ;
4464 return 0;
4465 }
4466 _ACEOF
4467 ac_clean_files="$ac_clean_files conftest.out"
4468 # Check that the compiler produces executables we can run. If not, either
4469 # the compiler is broken, or we cross compile.
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4471 $as_echo_n "checking whether we are cross compiling... " >&6; }
4472 if test "$cross_compiling" != yes; then
4473 { { ac_try="$ac_link"
4474 case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479 $as_echo "$ac_try_echo"; } >&5
4480 (eval "$ac_link") 2>&5
4481 ac_status=$?
4482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4483 test $ac_status = 0; }
4484 if { ac_try='./conftest$ac_cv_exeext'
4485 { { case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_try") 2>&5
4492 ac_status=$?
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }; }; then
4495 cross_compiling=no
4496 else
4497 if test "$cross_compiling" = maybe; then
4498 cross_compiling=yes
4499 else
4500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502 as_fn_error $? "cannot run C compiled programs.
4503 If you meant to cross compile, use \`--host'.
4504 See \`config.log' for more details" "$LINENO" 5; }
4505 fi
4506 fi
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4509 $as_echo "$cross_compiling" >&6; }
4510
4511 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4512 ac_clean_files=$ac_clean_files_save
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4514 $as_echo_n "checking for suffix of object files... " >&6; }
4515 if ${ac_cv_objext+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520
4521 int
4522 main ()
4523 {
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.o conftest.obj
4530 if { { ac_try="$ac_compile"
4531 case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536 $as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_compile") 2>&5
4538 ac_status=$?
4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; }; then :
4541 for ac_file in conftest.o conftest.obj conftest.*; do
4542 test -f "$ac_file" || continue;
4543 case $ac_file in
4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4545 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4546 break;;
4547 esac
4548 done
4549 else
4550 $as_echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error $? "cannot compute suffix of object files: cannot compile
4556 See \`config.log' for more details" "$LINENO" 5; }
4557 fi
4558 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4561 $as_echo "$ac_cv_objext" >&6; }
4562 OBJEXT=$ac_cv_objext
4563 ac_objext=$OBJEXT
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4565 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4566 if ${ac_cv_c_compiler_gnu+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571
4572 int
4573 main ()
4574 {
4575 #ifndef __GNUC__
4576 choke me
4577 #endif
4578
4579 ;
4580 return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_c_try_compile "$LINENO"; then :
4584 ac_compiler_gnu=yes
4585 else
4586 ac_compiler_gnu=no
4587 fi
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4590
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4593 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4594 if test $ac_compiler_gnu = yes; then
4595 GCC=yes
4596 else
4597 GCC=
4598 fi
4599 ac_test_CFLAGS=${CFLAGS+set}
4600 ac_save_CFLAGS=$CFLAGS
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4602 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4603 if ${ac_cv_prog_cc_g+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 ac_save_c_werror_flag=$ac_c_werror_flag
4607 ac_c_werror_flag=yes
4608 ac_cv_prog_cc_g=no
4609 CFLAGS="-g"
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612
4613 int
4614 main ()
4615 {
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 ac_cv_prog_cc_g=yes
4623 else
4624 CFLAGS=""
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627
4628 int
4629 main ()
4630 {
4631
4632 ;
4633 return 0;
4634 }
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637
4638 else
4639 ac_c_werror_flag=$ac_save_c_werror_flag
4640 CFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643
4644 int
4645 main ()
4646 {
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_g=yes
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4663 $as_echo "$ac_cv_prog_cc_g" >&6; }
4664 if test "$ac_test_CFLAGS" = set; then
4665 CFLAGS=$ac_save_CFLAGS
4666 elif test $ac_cv_prog_cc_g = yes; then
4667 if test "$GCC" = yes; then
4668 CFLAGS="-g -O2"
4669 else
4670 CFLAGS="-g"
4671 fi
4672 else
4673 if test "$GCC" = yes; then
4674 CFLAGS="-O2"
4675 else
4676 CFLAGS=
4677 fi
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4680 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4681 if ${ac_cv_prog_cc_c89+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 ac_cv_prog_cc_c89=no
4685 ac_save_CC=$CC
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #include <stdarg.h>
4689 #include <stdio.h>
4690 #include <sys/types.h>
4691 #include <sys/stat.h>
4692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4693 struct buf { int x; };
4694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4695 static char *e (p, i)
4696 char **p;
4697 int i;
4698 {
4699 return p[i];
4700 }
4701 static char *f (char * (*g) (char **, int), char **p, ...)
4702 {
4703 char *s;
4704 va_list v;
4705 va_start (v,p);
4706 s = g (p, va_arg (v,int));
4707 va_end (v);
4708 return s;
4709 }
4710
4711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4712 function prototypes and stuff, but not '\xHH' hex character constants.
4713 These don't provoke an error unfortunately, instead are silently treated
4714 as 'x'. The following induces an error, until -std is added to get
4715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4716 array size at least. It's necessary to write '\x00'==0 to get something
4717 that's true only with -std. */
4718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4719
4720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4721 inside strings and character constants. */
4722 #define FOO(x) 'x'
4723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4724
4725 int test (int i, double x);
4726 struct s1 {int (*f) (int a);};
4727 struct s2 {int (*f) (double a);};
4728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4729 int argc;
4730 char **argv;
4731 int
4732 main ()
4733 {
4734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4741 do
4742 CC="$ac_save_CC $ac_arg"
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_cv_prog_cc_c89=$ac_arg
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext
4747 test "x$ac_cv_prog_cc_c89" != "xno" && break
4748 done
4749 rm -f conftest.$ac_ext
4750 CC=$ac_save_CC
4751
4752 fi
4753 # AC_CACHE_VAL
4754 case "x$ac_cv_prog_cc_c89" in
4755 x)
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4757 $as_echo "none needed" >&6; } ;;
4758 xno)
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4760 $as_echo "unsupported" >&6; } ;;
4761 *)
4762 CC="$CC $ac_cv_prog_cc_c89"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4764 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4765 esac
4766 if test "x$ac_cv_prog_cc_c89" != xno; then :
4767
4768 fi
4769
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775 DEPDIR="${am__leading_dot}deps"
4776
4777 ac_config_commands="$ac_config_commands depfiles"
4778
4779
4780 am_make=${MAKE-make}
4781 cat > confinc << 'END'
4782 am__doit:
4783 @echo this is the am__doit target
4784 .PHONY: am__doit
4785 END
4786 # If we don't find an include directive, just comment out the code.
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4788 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4789 am__include="#"
4790 am__quote=
4791 _am_result=none
4792 # First try GNU make style include.
4793 echo "include confinc" > confmf
4794 # Ignore all kinds of additional output from `make'.
4795 case `$am_make -s -f confmf 2> /dev/null` in #(
4796 *the\ am__doit\ target*)
4797 am__include=include
4798 am__quote=
4799 _am_result=GNU
4800 ;;
4801 esac
4802 # Now try BSD make style include.
4803 if test "$am__include" = "#"; then
4804 echo '.include "confinc"' > confmf
4805 case `$am_make -s -f confmf 2> /dev/null` in #(
4806 *the\ am__doit\ target*)
4807 am__include=.include
4808 am__quote="\""
4809 _am_result=BSD
4810 ;;
4811 esac
4812 fi
4813
4814
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4816 $as_echo "$_am_result" >&6; }
4817 rm -f confinc confmf
4818
4819 # Check whether --enable-dependency-tracking was given.
4820 if test "${enable_dependency_tracking+set}" = set; then :
4821 enableval=$enable_dependency_tracking;
4822 fi
4823
4824 if test "x$enable_dependency_tracking" != xno; then
4825 am_depcomp="$ac_aux_dir/depcomp"
4826 AMDEPBACKSLASH='\'
4827 fi
4828 if test "x$enable_dependency_tracking" != xno; then
4829 AMDEP_TRUE=
4830 AMDEP_FALSE='#'
4831 else
4832 AMDEP_TRUE='#'
4833 AMDEP_FALSE=
4834 fi
4835
4836
4837
4838 depcc="$CC" am_compiler_list=
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4841 $as_echo_n "checking dependency style of $depcc... " >&6; }
4842 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4846 # We make a subdir and do the tests there. Otherwise we can end up
4847 # making bogus files that we don't know about and never remove. For
4848 # instance it was reported that on HP-UX the gcc test will end up
4849 # making a dummy file named `D' -- because `-MD' means `put the output
4850 # in D'.
4851 mkdir conftest.dir
4852 # Copy depcomp to subdir because otherwise we won't find it if we're
4853 # using a relative directory.
4854 cp "$am_depcomp" conftest.dir
4855 cd conftest.dir
4856 # We will build objects and dependencies in a subdirectory because
4857 # it helps to detect inapplicable dependency modes. For instance
4858 # both Tru64's cc and ICC support -MD to output dependencies as a
4859 # side effect of compilation, but ICC will put the dependencies in
4860 # the current directory while Tru64 will put them in the object
4861 # directory.
4862 mkdir sub
4863
4864 am_cv_CC_dependencies_compiler_type=none
4865 if test "$am_compiler_list" = ""; then
4866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 fi
4868 am__universal=false
4869 case " $depcc " in #(
4870 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4871 esac
4872
4873 for depmode in $am_compiler_list; do
4874 # Setup a source with many dependencies, because some compilers
4875 # like to wrap large dependency lists on column 80 (with \), and
4876 # we should not choose a depcomp mode which is confused by this.
4877 #
4878 # We need to recreate these files for each test, as the compiler may
4879 # overwrite some of them when testing with obscure command lines.
4880 # This happens at least with the AIX C compiler.
4881 : > sub/conftest.c
4882 for i in 1 2 3 4 5 6; do
4883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4884 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4885 # Solaris 8's {/usr,}/bin/sh.
4886 touch sub/conftst$i.h
4887 done
4888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889
4890 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4891 # mode. It turns out that the SunPro C++ compiler does not properly
4892 # handle `-M -o', and we need to detect this. Also, some Intel
4893 # versions had trouble with output in subdirs
4894 am__obj=sub/conftest.${OBJEXT-o}
4895 am__minus_obj="-o $am__obj"
4896 case $depmode in
4897 gcc)
4898 # This depmode causes a compiler race in universal mode.
4899 test "$am__universal" = false || continue
4900 ;;
4901 nosideeffect)
4902 # after this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested
4904 if test "x$enable_dependency_tracking" = xyes; then
4905 continue
4906 else
4907 break
4908 fi
4909 ;;
4910 msvisualcpp | msvcmsys)
4911 # This compiler won't grok `-c -o', but also, the minuso test has
4912 # not run yet. These depmodes are late enough in the game, and
4913 # so weak that their functioning should not be impacted.
4914 am__obj=conftest.${OBJEXT-o}
4915 am__minus_obj=
4916 ;;
4917 none) break ;;
4918 esac
4919 if depmode=$depmode \
4920 source=sub/conftest.c object=$am__obj \
4921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4923 >/dev/null 2>conftest.err &&
4924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4928 # icc doesn't choke on unknown options, it will just issue warnings
4929 # or remarks (even with -Werror). So we grep stderr for any message
4930 # that says an option was ignored or not supported.
4931 # When given -MP, icc 7.0 and 7.1 complain thusly:
4932 # icc: Command line warning: ignoring option '-M'; no argument required
4933 # The diagnosis changed in icc 8.0:
4934 # icc: Command line remark: option '-MP' not supported
4935 if (grep 'ignoring option' conftest.err ||
4936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4937 am_cv_CC_dependencies_compiler_type=$depmode
4938 break
4939 fi
4940 fi
4941 done
4942
4943 cd ..
4944 rm -rf conftest.dir
4945 else
4946 am_cv_CC_dependencies_compiler_type=none
4947 fi
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4951 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4952 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4953
4954 if
4955 test "x$enable_dependency_tracking" != xno \
4956 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4957 am__fastdepCC_TRUE=
4958 am__fastdepCC_FALSE='#'
4959 else
4960 am__fastdepCC_TRUE='#'
4961 am__fastdepCC_FALSE=
4962 fi
4963
4964
4965 if test "x$CC" != xcc; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4967 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4970 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4971 fi
4972 set dummy $CC; ac_cc=`$as_echo "$2" |
4973 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4974 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979
4980 int
4981 main ()
4982 {
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 # Make sure it works both with $CC and with simple cc.
4989 # We do the test twice because some compilers refuse to overwrite an
4990 # existing .o file with -o, though they will create one.
4991 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4992 rm -f conftest2.*
4993 if { { case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4998 $as_echo "$ac_try_echo"; } >&5
4999 (eval "$ac_try") 2>&5
5000 ac_status=$?
5001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5002 test $ac_status = 0; } &&
5003 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006 esac
5007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5008 $as_echo "$ac_try_echo"; } >&5
5009 (eval "$ac_try") 2>&5
5010 ac_status=$?
5011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5012 test $ac_status = 0; };
5013 then
5014 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5015 if test "x$CC" != xcc; then
5016 # Test first that cc exists at all.
5017 if { ac_try='cc -c conftest.$ac_ext >&5'
5018 { { case "(($ac_try" in
5019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020 *) ac_try_echo=$ac_try;;
5021 esac
5022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5023 $as_echo "$ac_try_echo"; } >&5
5024 (eval "$ac_try") 2>&5
5025 ac_status=$?
5026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5027 test $ac_status = 0; }; }; then
5028 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5029 rm -f conftest2.*
5030 if { { case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5035 $as_echo "$ac_try_echo"; } >&5
5036 (eval "$ac_try") 2>&5
5037 ac_status=$?
5038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5039 test $ac_status = 0; } &&
5040 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5045 $as_echo "$ac_try_echo"; } >&5
5046 (eval "$ac_try") 2>&5
5047 ac_status=$?
5048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5049 test $ac_status = 0; };
5050 then
5051 # cc works too.
5052 :
5053 else
5054 # cc exists but doesn't like -o.
5055 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5056 fi
5057 fi
5058 fi
5059 else
5060 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5061 fi
5062 rm -f core conftest*
5063
5064 fi
5065 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5067 $as_echo "yes" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071
5072 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5073
5074 fi
5075
5076 # FIXME: we rely on the cache variable name because
5077 # there is no other way.
5078 set dummy $CC
5079 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5080 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5081 if test "$am_t" != yes; then
5082 # Losing compiler, so override with the script.
5083 # FIXME: It is wrong to rewrite CC.
5084 # But if we don't then we get into trouble of one sort or another.
5085 # A longer-term fix would be to have automake use am__CC in this case,
5086 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5087 CC="$am_aux_dir/compile $CC"
5088 fi
5089
5090
5091
5092 # Initialize gnulib right after verifying that the C compiler works.
5093 if test -n "$ac_tool_prefix"; then
5094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_RANLIB+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$RANLIB"; then
5102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119 fi
5120 fi
5121 RANLIB=$ac_cv_prog_RANLIB
5122 if test -n "$RANLIB"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5124 $as_echo "$RANLIB" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 fi
5129
5130
5131 fi
5132 if test -z "$ac_cv_prog_RANLIB"; then
5133 ac_ct_RANLIB=$RANLIB
5134 # Extract the first word of "ranlib", so it can be a program name with args.
5135 set dummy ranlib; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$ac_ct_RANLIB"; then
5142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_ac_ct_RANLIB="ranlib"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5154 fi
5155 done
5156 done
5157 IFS=$as_save_IFS
5158
5159 fi
5160 fi
5161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5162 if test -n "$ac_ct_RANLIB"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5164 $as_echo "$ac_ct_RANLIB" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 fi
5169
5170 if test "x$ac_ct_RANLIB" = x; then
5171 RANLIB=":"
5172 else
5173 case $cross_compiling:$ac_tool_warned in
5174 yes:)
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5177 ac_tool_warned=yes ;;
5178 esac
5179 RANLIB=$ac_ct_RANLIB
5180 fi
5181 else
5182 RANLIB="$ac_cv_prog_RANLIB"
5183 fi
5184
5185
5186
5187 # Code from module ftoastr:
5188 # Code from module intprops:
5189
5190
5191 # On Suns, sometimes $CPP names a directory.
5192 if test -n "$CPP" && test -d "$CPP"; then
5193 CPP=
5194 fi
5195
5196 ## If not using gcc, and on Solaris, and no CPP specified, see if
5197 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5198 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5199 test x"$CPP" = x; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5201 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5202
5203 if ${emacs_cv_sunpro_c+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208
5209 int
5210 main ()
5211 {
5212 #ifndef __SUNPRO_C
5213 fail;
5214 #endif
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_link "$LINENO"; then :
5221 emacs_cv_sunpro_c=yes
5222 else
5223 emacs_cv_sunpro_c=no
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext \
5226 conftest$ac_exeext conftest.$ac_ext
5227 fi
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5230 $as_echo "$emacs_cv_sunpro_c" >&6; }
5231
5232 if test x"$emacs_cv_sunpro_c" = xyes; then
5233 NON_GNU_CPP="$CC -E -Xs"
5234 fi
5235 fi
5236
5237 #### Some systems specify a CPP to use unless we are using GCC.
5238 #### Now that we know whether we are using GCC, we can decide whether
5239 #### to use that one.
5240 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5241 then
5242 CPP="$NON_GNU_CPP"
5243 fi
5244
5245 #### Some systems specify a CC to use unless we are using GCC.
5246 #### Now that we know whether we are using GCC, we can decide whether
5247 #### to use that one.
5248 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5249 test x$cc_specified != xyes
5250 then
5251 CC="$NON_GNU_CC"
5252 fi
5253
5254 if test x$GCC = xyes; then
5255 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5256 else
5257 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5258 fi
5259
5260 ac_ext=c
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5266 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5267 # On Suns, sometimes $CPP names a directory.
5268 if test -n "$CPP" && test -d "$CPP"; then
5269 CPP=
5270 fi
5271 if test -z "$CPP"; then
5272 if ${ac_cv_prog_CPP+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 # Double quotes because CPP needs to be expanded
5276 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5277 do
5278 ac_preproc_ok=false
5279 for ac_c_preproc_warn_flag in '' yes
5280 do
5281 # Use a header file that comes with gcc, so configuring glibc
5282 # with a fresh cross-compiler works.
5283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5284 # <limits.h> exists even on freestanding compilers.
5285 # On the NeXT, cc -E runs the code through the compiler's parser,
5286 # not just through cpp. "Syntax error" is here to catch this case.
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 #ifdef __STDC__
5290 # include <limits.h>
5291 #else
5292 # include <assert.h>
5293 #endif
5294 Syntax error
5295 _ACEOF
5296 if ac_fn_c_try_cpp "$LINENO"; then :
5297
5298 else
5299 # Broken: fails on valid input.
5300 continue
5301 fi
5302 rm -f conftest.err conftest.i conftest.$ac_ext
5303
5304 # OK, works on sane cases. Now check whether nonexistent headers
5305 # can be detected and how.
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308 #include <ac_nonexistent.h>
5309 _ACEOF
5310 if ac_fn_c_try_cpp "$LINENO"; then :
5311 # Broken: success on invalid input.
5312 continue
5313 else
5314 # Passes both tests.
5315 ac_preproc_ok=:
5316 break
5317 fi
5318 rm -f conftest.err conftest.i conftest.$ac_ext
5319
5320 done
5321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5322 rm -f conftest.i conftest.err conftest.$ac_ext
5323 if $ac_preproc_ok; then :
5324 break
5325 fi
5326
5327 done
5328 ac_cv_prog_CPP=$CPP
5329
5330 fi
5331 CPP=$ac_cv_prog_CPP
5332 else
5333 ac_cv_prog_CPP=$CPP
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5336 $as_echo "$CPP" >&6; }
5337 ac_preproc_ok=false
5338 for ac_c_preproc_warn_flag in '' yes
5339 do
5340 # Use a header file that comes with gcc, so configuring glibc
5341 # with a fresh cross-compiler works.
5342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5343 # <limits.h> exists even on freestanding compilers.
5344 # On the NeXT, cc -E runs the code through the compiler's parser,
5345 # not just through cpp. "Syntax error" is here to catch this case.
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #ifdef __STDC__
5349 # include <limits.h>
5350 #else
5351 # include <assert.h>
5352 #endif
5353 Syntax error
5354 _ACEOF
5355 if ac_fn_c_try_cpp "$LINENO"; then :
5356
5357 else
5358 # Broken: fails on valid input.
5359 continue
5360 fi
5361 rm -f conftest.err conftest.i conftest.$ac_ext
5362
5363 # OK, works on sane cases. Now check whether nonexistent headers
5364 # can be detected and how.
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 #include <ac_nonexistent.h>
5368 _ACEOF
5369 if ac_fn_c_try_cpp "$LINENO"; then :
5370 # Broken: success on invalid input.
5371 continue
5372 else
5373 # Passes both tests.
5374 ac_preproc_ok=:
5375 break
5376 fi
5377 rm -f conftest.err conftest.i conftest.$ac_ext
5378
5379 done
5380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5381 rm -f conftest.i conftest.err conftest.$ac_ext
5382 if $ac_preproc_ok; then :
5383
5384 else
5385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5387 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5388 See \`config.log' for more details" "$LINENO" 5; }
5389 fi
5390
5391 ac_ext=c
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5399 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5400 if ${ac_cv_path_GREP+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 if test -z "$GREP"; then
5404 ac_path_GREP_found=false
5405 # Loop through the user's path and test for each of PROGNAME-LIST
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5408 do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_prog in grep ggrep; do
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5414 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5415 # Check for GNU ac_path_GREP and select it if it is found.
5416 # Check for GNU $ac_path_GREP
5417 case `"$ac_path_GREP" --version 2>&1` in
5418 *GNU*)
5419 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5420 *)
5421 ac_count=0
5422 $as_echo_n 0123456789 >"conftest.in"
5423 while :
5424 do
5425 cat "conftest.in" "conftest.in" >"conftest.tmp"
5426 mv "conftest.tmp" "conftest.in"
5427 cp "conftest.in" "conftest.nl"
5428 $as_echo 'GREP' >> "conftest.nl"
5429 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431 as_fn_arith $ac_count + 1 && ac_count=$as_val
5432 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5433 # Best one so far, save it but keep looking for a better one
5434 ac_cv_path_GREP="$ac_path_GREP"
5435 ac_path_GREP_max=$ac_count
5436 fi
5437 # 10*(2^10) chars as input seems more than enough
5438 test $ac_count -gt 10 && break
5439 done
5440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5441 esac
5442
5443 $ac_path_GREP_found && break 3
5444 done
5445 done
5446 done
5447 IFS=$as_save_IFS
5448 if test -z "$ac_cv_path_GREP"; then
5449 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450 fi
5451 else
5452 ac_cv_path_GREP=$GREP
5453 fi
5454
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5457 $as_echo "$ac_cv_path_GREP" >&6; }
5458 GREP="$ac_cv_path_GREP"
5459
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5462 $as_echo_n "checking for egrep... " >&6; }
5463 if ${ac_cv_path_EGREP+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5467 then ac_cv_path_EGREP="$GREP -E"
5468 else
5469 if test -z "$EGREP"; then
5470 ac_path_EGREP_found=false
5471 # Loop through the user's path and test for each of PROGNAME-LIST
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_prog in egrep; do
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5480 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5481 # Check for GNU ac_path_EGREP and select it if it is found.
5482 # Check for GNU $ac_path_EGREP
5483 case `"$ac_path_EGREP" --version 2>&1` in
5484 *GNU*)
5485 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5486 *)
5487 ac_count=0
5488 $as_echo_n 0123456789 >"conftest.in"
5489 while :
5490 do
5491 cat "conftest.in" "conftest.in" >"conftest.tmp"
5492 mv "conftest.tmp" "conftest.in"
5493 cp "conftest.in" "conftest.nl"
5494 $as_echo 'EGREP' >> "conftest.nl"
5495 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5497 as_fn_arith $ac_count + 1 && ac_count=$as_val
5498 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5499 # Best one so far, save it but keep looking for a better one
5500 ac_cv_path_EGREP="$ac_path_EGREP"
5501 ac_path_EGREP_max=$ac_count
5502 fi
5503 # 10*(2^10) chars as input seems more than enough
5504 test $ac_count -gt 10 && break
5505 done
5506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5507 esac
5508
5509 $ac_path_EGREP_found && break 3
5510 done
5511 done
5512 done
5513 IFS=$as_save_IFS
5514 if test -z "$ac_cv_path_EGREP"; then
5515 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 fi
5517 else
5518 ac_cv_path_EGREP=$EGREP
5519 fi
5520
5521 fi
5522 fi
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5524 $as_echo "$ac_cv_path_EGREP" >&6; }
5525 EGREP="$ac_cv_path_EGREP"
5526
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5529 $as_echo_n "checking for ANSI C header files... " >&6; }
5530 if ${ac_cv_header_stdc+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <stdlib.h>
5536 #include <stdarg.h>
5537 #include <string.h>
5538 #include <float.h>
5539
5540 int
5541 main ()
5542 {
5543
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_compile "$LINENO"; then :
5549 ac_cv_header_stdc=yes
5550 else
5551 ac_cv_header_stdc=no
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554
5555 if test $ac_cv_header_stdc = yes; then
5556 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 #include <string.h>
5560
5561 _ACEOF
5562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5563 $EGREP "memchr" >/dev/null 2>&1; then :
5564
5565 else
5566 ac_cv_header_stdc=no
5567 fi
5568 rm -f conftest*
5569
5570 fi
5571
5572 if test $ac_cv_header_stdc = yes; then
5573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #include <stdlib.h>
5577
5578 _ACEOF
5579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5580 $EGREP "free" >/dev/null 2>&1; then :
5581
5582 else
5583 ac_cv_header_stdc=no
5584 fi
5585 rm -f conftest*
5586
5587 fi
5588
5589 if test $ac_cv_header_stdc = yes; then
5590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5591 if test "$cross_compiling" = yes; then :
5592 :
5593 else
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 #include <ctype.h>
5597 #include <stdlib.h>
5598 #if ((' ' & 0x0FF) == 0x020)
5599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5601 #else
5602 # define ISLOWER(c) \
5603 (('a' <= (c) && (c) <= 'i') \
5604 || ('j' <= (c) && (c) <= 'r') \
5605 || ('s' <= (c) && (c) <= 'z'))
5606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5607 #endif
5608
5609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5610 int
5611 main ()
5612 {
5613 int i;
5614 for (i = 0; i < 256; i++)
5615 if (XOR (islower (i), ISLOWER (i))
5616 || toupper (i) != TOUPPER (i))
5617 return 2;
5618 return 0;
5619 }
5620 _ACEOF
5621 if ac_fn_c_try_run "$LINENO"; then :
5622
5623 else
5624 ac_cv_header_stdc=no
5625 fi
5626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5627 conftest.$ac_objext conftest.beam conftest.$ac_ext
5628 fi
5629
5630 fi
5631 fi
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5633 $as_echo "$ac_cv_header_stdc" >&6; }
5634 if test $ac_cv_header_stdc = yes; then
5635
5636 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5637
5638 fi
5639
5640 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5641 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5642 inttypes.h stdint.h unistd.h
5643 do :
5644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5646 "
5647 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5648 cat >>confdefs.h <<_ACEOF
5649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5650 _ACEOF
5651
5652 fi
5653
5654 done
5655
5656
5657
5658 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5659 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5660 MINIX=yes
5661 else
5662 MINIX=
5663 fi
5664
5665
5666 if test "$MINIX" = yes; then
5667
5668 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5669
5670
5671 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5672
5673
5674 $as_echo "#define _MINIX 1" >>confdefs.h
5675
5676 fi
5677
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5680 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5681 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686
5687 # define __EXTENSIONS__ 1
5688 $ac_includes_default
5689 int
5690 main ()
5691 {
5692
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 ac_cv_safe_to_define___extensions__=yes
5699 else
5700 ac_cv_safe_to_define___extensions__=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5705 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5706 test $ac_cv_safe_to_define___extensions__ = yes &&
5707 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5708
5709 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5710
5711 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5712
5713 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5714
5715 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5716
5717
5718
5719 ### Use -Wno-pointer-sign if the compiler supports it
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5721 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5722 SAVE_CFLAGS="$CFLAGS"
5723 CFLAGS="$CFLAGS -Wno-pointer-sign"
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726
5727 int
5728 main ()
5729 {
5730
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 has_option=yes
5737 else
5738 has_option=no
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 if test $has_option = yes; then
5742 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5745 $as_echo "$has_option" >&6; }
5746 CFLAGS="$SAVE_CFLAGS"
5747 unset has_option
5748 unset SAVE_CFLAGS
5749
5750 ### Use -Wdeclaration-after-statement if the compiler supports it
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5752 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5753 SAVE_CFLAGS="$CFLAGS"
5754 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757
5758 int
5759 main ()
5760 {
5761
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_c_try_compile "$LINENO"; then :
5767 has_option=yes
5768 else
5769 has_option=no
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 if test $has_option = yes; then
5773 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5776 $as_echo "$has_option" >&6; }
5777 CFLAGS="$SAVE_CFLAGS"
5778 unset has_option
5779 unset SAVE_CFLAGS
5780
5781 ### Use -Wold-style-definition if the compiler supports it
5782 # This can be removed when conversion to standard C is finished.
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5784 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5785 SAVE_CFLAGS="$CFLAGS"
5786 CFLAGS="$CFLAGS -Wold-style-definition"
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789
5790 int
5791 main ()
5792 {
5793
5794 ;
5795 return 0;
5796 }
5797 _ACEOF
5798 if ac_fn_c_try_compile "$LINENO"; then :
5799 has_option=yes
5800 else
5801 has_option=no
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 if test $has_option = yes; then
5805 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5806 fi
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5808 $as_echo "$has_option" >&6; }
5809 CFLAGS="$SAVE_CFLAGS"
5810 unset has_option
5811 unset SAVE_CFLAGS
5812
5813 ### Use -Wimplicit-function-declaration if the compiler supports it
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5815 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5816 SAVE_CFLAGS="$CFLAGS"
5817 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820
5821 int
5822 main ()
5823 {
5824
5825 ;
5826 return 0;
5827 }
5828 _ACEOF
5829 if ac_fn_c_try_compile "$LINENO"; then :
5830 has_option=yes
5831 else
5832 has_option=no
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 if test $has_option = yes; then
5836 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
5837 fi
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5839 $as_echo "$has_option" >&6; }
5840 CFLAGS="$SAVE_CFLAGS"
5841 unset has_option
5842 unset SAVE_CFLAGS
5843
5844
5845
5846
5847 #### Some other nice autoconf tests.
5848
5849 ac_ext=c
5850 ac_cpp='$CPP $CPPFLAGS'
5851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5855 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5856 # On Suns, sometimes $CPP names a directory.
5857 if test -n "$CPP" && test -d "$CPP"; then
5858 CPP=
5859 fi
5860 if test -z "$CPP"; then
5861 if ${ac_cv_prog_CPP+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 # Double quotes because CPP needs to be expanded
5865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5866 do
5867 ac_preproc_ok=false
5868 for ac_c_preproc_warn_flag in '' yes
5869 do
5870 # Use a header file that comes with gcc, so configuring glibc
5871 # with a fresh cross-compiler works.
5872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5873 # <limits.h> exists even on freestanding compilers.
5874 # On the NeXT, cc -E runs the code through the compiler's parser,
5875 # not just through cpp. "Syntax error" is here to catch this case.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #ifdef __STDC__
5879 # include <limits.h>
5880 #else
5881 # include <assert.h>
5882 #endif
5883 Syntax error
5884 _ACEOF
5885 if ac_fn_c_try_cpp "$LINENO"; then :
5886
5887 else
5888 # Broken: fails on valid input.
5889 continue
5890 fi
5891 rm -f conftest.err conftest.i conftest.$ac_ext
5892
5893 # OK, works on sane cases. Now check whether nonexistent headers
5894 # can be detected and how.
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 #include <ac_nonexistent.h>
5898 _ACEOF
5899 if ac_fn_c_try_cpp "$LINENO"; then :
5900 # Broken: success on invalid input.
5901 continue
5902 else
5903 # Passes both tests.
5904 ac_preproc_ok=:
5905 break
5906 fi
5907 rm -f conftest.err conftest.i conftest.$ac_ext
5908
5909 done
5910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911 rm -f conftest.i conftest.err conftest.$ac_ext
5912 if $ac_preproc_ok; then :
5913 break
5914 fi
5915
5916 done
5917 ac_cv_prog_CPP=$CPP
5918
5919 fi
5920 CPP=$ac_cv_prog_CPP
5921 else
5922 ac_cv_prog_CPP=$CPP
5923 fi
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5925 $as_echo "$CPP" >&6; }
5926 ac_preproc_ok=false
5927 for ac_c_preproc_warn_flag in '' yes
5928 do
5929 # Use a header file that comes with gcc, so configuring glibc
5930 # with a fresh cross-compiler works.
5931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 # <limits.h> exists even on freestanding compilers.
5933 # On the NeXT, cc -E runs the code through the compiler's parser,
5934 # not just through cpp. "Syntax error" is here to catch this case.
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #ifdef __STDC__
5938 # include <limits.h>
5939 #else
5940 # include <assert.h>
5941 #endif
5942 Syntax error
5943 _ACEOF
5944 if ac_fn_c_try_cpp "$LINENO"; then :
5945
5946 else
5947 # Broken: fails on valid input.
5948 continue
5949 fi
5950 rm -f conftest.err conftest.i conftest.$ac_ext
5951
5952 # OK, works on sane cases. Now check whether nonexistent headers
5953 # can be detected and how.
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 #include <ac_nonexistent.h>
5957 _ACEOF
5958 if ac_fn_c_try_cpp "$LINENO"; then :
5959 # Broken: success on invalid input.
5960 continue
5961 else
5962 # Passes both tests.
5963 ac_preproc_ok=:
5964 break
5965 fi
5966 rm -f conftest.err conftest.i conftest.$ac_ext
5967
5968 done
5969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5970 rm -f conftest.i conftest.err conftest.$ac_ext
5971 if $ac_preproc_ok; then :
5972
5973 else
5974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5976 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5977 See \`config.log' for more details" "$LINENO" 5; }
5978 fi
5979
5980 ac_ext=c
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985
5986
5987 if test "x$RANLIB" = x; then
5988 if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5990 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if ${ac_cv_prog_RANLIB+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if test -n "$RANLIB"; then
5997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010 done
6011 done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 RANLIB=$ac_cv_prog_RANLIB
6017 if test -n "$RANLIB"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6019 $as_echo "$RANLIB" >&6; }
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6023 fi
6024
6025
6026 fi
6027 if test -z "$ac_cv_prog_RANLIB"; then
6028 ac_ct_RANLIB=$RANLIB
6029 # Extract the first word of "ranlib", so it can be a program name with args.
6030 set dummy ranlib; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$ac_ct_RANLIB"; then
6037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_ac_ct_RANLIB="ranlib"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6057 if test -n "$ac_ct_RANLIB"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6059 $as_echo "$ac_ct_RANLIB" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065 if test "x$ac_ct_RANLIB" = x; then
6066 RANLIB=":"
6067 else
6068 case $cross_compiling:$ac_tool_warned in
6069 yes:)
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072 ac_tool_warned=yes ;;
6073 esac
6074 RANLIB=$ac_ct_RANLIB
6075 fi
6076 else
6077 RANLIB="$ac_cv_prog_RANLIB"
6078 fi
6079
6080 fi
6081
6082 ## Although we're running on an amd64 kernel, we're actually compiling for
6083 ## the x86 architecture. The user should probably have provided an
6084 ## explicit --build to `configure', but if everything else than the kernel
6085 ## is running in i386 mode, we can help them out.
6086 if test "$machine" = "amdx86-64"; then
6087 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6088 if test "x$ac_cv_have_decl_i386" = xyes; then :
6089
6090 fi
6091
6092 if test "$ac_cv_have_decl_i386" = "yes"; then
6093 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6094 machine=intel386
6095 machfile="m/${machine}.h"
6096 fi
6097 fi
6098
6099 # Extract the first word of "install-info", so it can be a program name with args.
6100 set dummy install-info; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 case $INSTALL_INFO in
6107 [\\/]* | ?:[\\/]*)
6108 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6109 ;;
6110 *)
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122 done
6123 done
6124 IFS=$as_save_IFS
6125
6126 ;;
6127 esac
6128 fi
6129 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6130 if test -n "$INSTALL_INFO"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6132 $as_echo "$INSTALL_INFO" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137
6138
6139 # Extract the first word of "install-info", so it can be a program name with args.
6140 set dummy install-info; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 case $INSTALL_INFO in
6147 [\\/]* | ?:[\\/]*)
6148 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6149 ;;
6150 *)
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in /usr/sbin
6153 do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 ;;
6167 esac
6168 fi
6169 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6170 if test -n "$INSTALL_INFO"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6172 $as_echo "$INSTALL_INFO" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178
6179 # Extract the first word of "install-info", so it can be a program name with args.
6180 set dummy install-info; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 case $INSTALL_INFO in
6187 [\\/]* | ?:[\\/]*)
6188 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6189 ;;
6190 *)
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in /sbin
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6207 ;;
6208 esac
6209 fi
6210 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6211 if test -n "$INSTALL_INFO"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6213 $as_echo "$INSTALL_INFO" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219
6220 # Extract the first word of "gzip", so it can be a program name with args.
6221 set dummy gzip; ac_word=$2
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if ${ac_cv_path_GZIP_PROG+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 case $GZIP_PROG in
6228 [\\/]* | ?:[\\/]*)
6229 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6230 ;;
6231 *)
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 ;;
6248 esac
6249 fi
6250 GZIP_PROG=$ac_cv_path_GZIP_PROG
6251 if test -n "$GZIP_PROG"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6253 $as_echo "$GZIP_PROG" >&6; }
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259
6260
6261
6262 ## Need makeinfo >= 4.6 (?) to build the manuals.
6263 # Extract the first word of "makeinfo", so it can be a program name with args.
6264 set dummy makeinfo; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_path_MAKEINFO+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 case $MAKEINFO in
6271 [\\/]* | ?:[\\/]*)
6272 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6273 ;;
6274 *)
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6285 fi
6286 done
6287 done
6288 IFS=$as_save_IFS
6289
6290 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6291 ;;
6292 esac
6293 fi
6294 MAKEINFO=$ac_cv_path_MAKEINFO
6295 if test -n "$MAKEINFO"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6297 $as_echo "$MAKEINFO" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303
6304 if test "$MAKEINFO" != "no" && \
6305 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
6306 MAKEINFO=no
6307 fi
6308
6309 ## Makeinfo is unusual. For a released Emacs, the manuals are
6310 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6311 ## therefore in the category of "special tools" not normally required, which
6312 ## configure does not have to check for (eg autoconf itself).
6313 ## In a Bazaar checkout on the other hand, the manuals are not included.
6314 ## So makeinfo is a requirement to build from Bazaar, and configure
6315 ## should test for it as it does for any other build requirement.
6316 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6317 ## with pre-built manuals, from a Bazaar checkout.
6318 HAVE_MAKEINFO=yes
6319
6320 if test "$MAKEINFO" = "no"; then
6321 MAKEINFO=makeinfo
6322 if test "x${with_makeinfo}" = "xno"; then
6323 HAVE_MAKEINFO=no
6324 elif test ! -e $srcdir/info/emacs; then
6325 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6326 source tree does not seem to have pre-built manuals in the \`info' directory.
6327 Either install a suitable version of makeinfo, or re-run configure
6328 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6329 fi
6330 fi
6331
6332
6333
6334 if test x$GCC = xyes; then
6335 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6336 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6337 else
6338 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6339 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6340 fi
6341
6342
6343 late_LDFLAGS=$LDFLAGS
6344 if test x$GCC = xyes; then
6345 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6346 else
6347 LDFLAGS="$LDFLAGS -znocombreloc"
6348 fi
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6351 $as_echo_n "checking for -znocombreloc... " >&6; }
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354
6355 int
6356 main ()
6357 {
6358
6359 ;
6360 return 0;
6361 }
6362 _ACEOF
6363 if ac_fn_c_try_link "$LINENO"; then :
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6365 $as_echo "yes" >&6; }
6366 else
6367 LDFLAGS=$late_LDFLAGS
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371 rm -f core conftest.err conftest.$ac_objext \
6372 conftest$ac_exeext conftest.$ac_ext
6373
6374
6375 # The value of CPP is a quoted variable reference, so we need to do this
6376 # to get its actual value...
6377 CPP=`eval "echo $CPP"`
6378
6379
6380 CANNOT_DUMP=no
6381 case "$opsys" in
6382 your-opsys-here)
6383 CANNOT_DUMP=yes
6384
6385 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6386
6387 ;;
6388 esac
6389
6390
6391
6392 UNEXEC_OBJ=unexelf.o
6393 case "$opsys" in
6394 # MSDOS uses unexcoff.o
6395 # MSWindows uses unexw32.o
6396 aix4-2)
6397 UNEXEC_OBJ=unexaix.o
6398 ;;
6399 cygwin)
6400 UNEXEC_OBJ=unexcw.o
6401 ;;
6402 darwin)
6403 UNEXEC_OBJ=unexmacosx.o
6404 ;;
6405 hpux10-20 | hpux11)
6406 UNEXEC_OBJ=unexhp9k800.o
6407 ;;
6408 sol2-10)
6409 # Use the Solaris dldump() function, called from unexsol.c, to dump
6410 # emacs, instead of the generic ELF dump code found in unexelf.c.
6411 # The resulting binary has a complete symbol table, and is better
6412 # for debugging and other observability tools (debuggers, pstack, etc).
6413 #
6414 # If you encounter a problem using dldump(), please consider sending
6415 # a message to the OpenSolaris tools-linking mailing list:
6416 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6417 #
6418 # It is likely that dldump() works with older Solaris too, but this has
6419 # not been tested, so for now this change is for Solaris 10 or newer.
6420 UNEXEC_OBJ=unexsol.o
6421 ;;
6422 esac
6423
6424 LD_SWITCH_SYSTEM=
6425 case "$opsys" in
6426 freebsd)
6427 ## Let `ld' find image libs and similar things in /usr/local/lib.
6428 ## The system compiler, GCC, has apparently been modified to not
6429 ## look there, contrary to what a stock GCC would do.
6430 LD_SWITCH_SYSTEM=-L/usr/local/lib
6431 ;;
6432
6433 gnu-linux)
6434 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6435 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6436 ;;
6437
6438 netbsd)
6439 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6440 ;;
6441
6442 openbsd)
6443 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6444 ## otherwise Emacs dumps core on elf systems.
6445 LD_SWITCH_SYSTEM="-Z"
6446 ;;
6447 esac
6448
6449
6450 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6451
6452 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6453 ## which has not been defined yet. When this was handled with cpp,
6454 ## it was expanded to null when configure sourced the s/*.h file.
6455 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6456 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6457 ## (or somesuch), but because it is supposed to go at the _front_
6458 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6459 ## Compare with the gnu-linux case below, which added to the end
6460 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6461 ## LD_SWITCH_SYSTEM_TEMACS.
6462 case "$opsys" in
6463 netbsd|openbsd)
6464 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6465 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6466 esac
6467
6468
6469 C_SWITCH_MACHINE=
6470 if test "$machine" = "alpha"; then
6471 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6472 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6473
6474 fi
6475
6476 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6477 ## With ELF, make sure that all common symbols get allocated to in the
6478 ## data section. Otherwise, the dump of temacs may miss variables in
6479 ## the shared library that have been initialized. For example, with
6480 ## GNU libc, __malloc_initialized would normally be resolved to the
6481 ## shared library's .bss section, which is fatal.
6482 if test "x$GCC" = "xyes"; then
6483 C_SWITCH_MACHINE="-fno-common"
6484 else
6485 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6486 fi
6487 else
6488 UNEXEC_OBJ=unexalpha.o
6489 fi
6490 fi
6491
6492
6493
6494
6495 C_SWITCH_SYSTEM=
6496 ## Some programs in src produce warnings saying certain subprograms
6497 ## are too complex and need a MAXMEM value greater than 2000 for
6498 ## additional optimization. --nils@exp-math.uni-essen.de
6499 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6500 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6501 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6502 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6503
6504
6505
6506 LIBS_SYSTEM=
6507 case "$opsys" in
6508 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6509 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6510
6511 freebsd) LIBS_SYSTEM="-lutil" ;;
6512
6513 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6514
6515 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6516
6517 ## Motif needs -lgen.
6518 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6519 esac
6520
6521
6522
6523 ### Make sure subsequent tests use flags consistent with the build flags.
6524
6525 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6526 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6527 else
6528 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6529 fi
6530
6531
6532
6533 # Check whether --enable-largefile was given.
6534 if test "${enable_largefile+set}" = set; then :
6535 enableval=$enable_largefile;
6536 fi
6537
6538 if test "$enable_largefile" != no; then
6539
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6541 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6542 if ${ac_cv_sys_largefile_CC+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 ac_cv_sys_largefile_CC=no
6546 if test "$GCC" != yes; then
6547 ac_save_CC=$CC
6548 while :; do
6549 # IRIX 6.2 and later do not support large files by default,
6550 # so use the C compiler's -n32 option if that helps.
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 #include <sys/types.h>
6554 /* Check that off_t can represent 2**63 - 1 correctly.
6555 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6556 since some C++ compilers masquerading as C compilers
6557 incorrectly reject 9223372036854775807. */
6558 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6559 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6560 && LARGE_OFF_T % 2147483647 == 1)
6561 ? 1 : -1];
6562 int
6563 main ()
6564 {
6565
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 break
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext
6574 CC="$CC -n32"
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576 ac_cv_sys_largefile_CC=' -n32'; break
6577 fi
6578 rm -f core conftest.err conftest.$ac_objext
6579 break
6580 done
6581 CC=$ac_save_CC
6582 rm -f conftest.$ac_ext
6583 fi
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6586 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6587 if test "$ac_cv_sys_largefile_CC" != no; then
6588 CC=$CC$ac_cv_sys_largefile_CC
6589 fi
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6592 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6593 if ${ac_cv_sys_file_offset_bits+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 while :; do
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 #include <sys/types.h>
6600 /* Check that off_t can represent 2**63 - 1 correctly.
6601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6602 since some C++ compilers masquerading as C compilers
6603 incorrectly reject 9223372036854775807. */
6604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6606 && LARGE_OFF_T % 2147483647 == 1)
6607 ? 1 : -1];
6608 int
6609 main ()
6610 {
6611
6612 ;
6613 return 0;
6614 }
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 ac_cv_sys_file_offset_bits=no; break
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 #define _FILE_OFFSET_BITS 64
6623 #include <sys/types.h>
6624 /* Check that off_t can represent 2**63 - 1 correctly.
6625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6626 since some C++ compilers masquerading as C compilers
6627 incorrectly reject 9223372036854775807. */
6628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6630 && LARGE_OFF_T % 2147483647 == 1)
6631 ? 1 : -1];
6632 int
6633 main ()
6634 {
6635
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_compile "$LINENO"; then :
6641 ac_cv_sys_file_offset_bits=64; break
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 ac_cv_sys_file_offset_bits=unknown
6645 break
6646 done
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6649 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6650 case $ac_cv_sys_file_offset_bits in #(
6651 no | unknown) ;;
6652 *)
6653 cat >>confdefs.h <<_ACEOF
6654 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6655 _ACEOF
6656 ;;
6657 esac
6658 rm -rf conftest*
6659 if test $ac_cv_sys_file_offset_bits = unknown; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6661 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6662 if ${ac_cv_sys_large_files+:} false; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 while :; do
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 #include <sys/types.h>
6669 /* Check that off_t can represent 2**63 - 1 correctly.
6670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6671 since some C++ compilers masquerading as C compilers
6672 incorrectly reject 9223372036854775807. */
6673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6675 && LARGE_OFF_T % 2147483647 == 1)
6676 ? 1 : -1];
6677 int
6678 main ()
6679 {
6680
6681 ;
6682 return 0;
6683 }
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 ac_cv_sys_large_files=no; break
6687 fi
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6691 #define _LARGE_FILES 1
6692 #include <sys/types.h>
6693 /* Check that off_t can represent 2**63 - 1 correctly.
6694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6695 since some C++ compilers masquerading as C compilers
6696 incorrectly reject 9223372036854775807. */
6697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6699 && LARGE_OFF_T % 2147483647 == 1)
6700 ? 1 : -1];
6701 int
6702 main ()
6703 {
6704
6705 ;
6706 return 0;
6707 }
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"; then :
6710 ac_cv_sys_large_files=1; break
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 ac_cv_sys_large_files=unknown
6714 break
6715 done
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6718 $as_echo "$ac_cv_sys_large_files" >&6; }
6719 case $ac_cv_sys_large_files in #(
6720 no | unknown) ;;
6721 *)
6722 cat >>confdefs.h <<_ACEOF
6723 #define _LARGE_FILES $ac_cv_sys_large_files
6724 _ACEOF
6725 ;;
6726 esac
6727 rm -rf conftest*
6728 fi
6729 fi
6730
6731
6732
6733 ## If user specified a crt-dir, use that unconditionally.
6734 if test "X$CRT_DIR" = "X"; then
6735
6736 case "$canonical" in
6737 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6738 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6739 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6740 ## For anything else (eg /usr/lib32), it is up the user to specify
6741 ## the location (bug#5655).
6742 ## Test for crtn.o, not just the directory, because sometimes the
6743 ## directory exists but does not have the relevant files (bug#1287).
6744 ## FIXME better to test for binary compatibility somehow.
6745 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6746 ;;
6747
6748 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6749 esac
6750
6751 case "$opsys" in
6752 hpux10-20) CRT_DIR=/lib ;;
6753 esac
6754
6755 ## Default is /usr/lib.
6756 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6757
6758 else
6759
6760 ## Some platforms don't use any of these files, so it is not
6761 ## appropriate to put this test outside the if block.
6762 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6763 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
6764
6765 fi
6766
6767
6768
6769 LIB_MATH=-lm
6770 LIB_STANDARD=
6771 START_FILES=
6772
6773 case $opsys in
6774 cygwin )
6775 LIB_MATH=
6776 START_FILES='pre-crt0.o'
6777 ;;
6778 darwin )
6779 ## Adding -lm confuses the dynamic linker, so omit it.
6780 LIB_MATH=
6781 START_FILES='pre-crt0.o'
6782 ;;
6783 freebsd )
6784 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6785 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6786 ;;
6787 gnu-linux | gnu-kfreebsd )
6788 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6789 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6790 ;;
6791 hpux10-20 | hpux11 )
6792 LIB_STANDARD=-lc
6793 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6794 ;;
6795 netbsd | openbsd )
6796 if test -f $CRT_DIR/crti.o; then
6797 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6798 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6799 else
6800 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6801 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6802 fi
6803 ;;
6804 esac
6805
6806
6807
6808
6809
6810
6811
6812 if test "${with_sound}" != "no"; then
6813 # Sound support for GNU/Linux and the free BSDs.
6814 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6815 do :
6816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6817 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6819 cat >>confdefs.h <<_ACEOF
6820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6821 _ACEOF
6822 have_sound_header=yes
6823 fi
6824
6825 done
6826
6827 # Emulation library used on NetBSD.
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6829 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6830 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 ac_check_lib_save_LIBS=$LIBS
6834 LIBS="-lossaudio $LIBS"
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837
6838 /* Override any GCC internal prototype to avoid an error.
6839 Use char because int might match the return type of a GCC
6840 builtin and then its argument prototype would still apply. */
6841 #ifdef __cplusplus
6842 extern "C"
6843 #endif
6844 char _oss_ioctl ();
6845 int
6846 main ()
6847 {
6848 return _oss_ioctl ();
6849 ;
6850 return 0;
6851 }
6852 _ACEOF
6853 if ac_fn_c_try_link "$LINENO"; then :
6854 ac_cv_lib_ossaudio__oss_ioctl=yes
6855 else
6856 ac_cv_lib_ossaudio__oss_ioctl=no
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext \
6859 conftest$ac_exeext conftest.$ac_ext
6860 LIBS=$ac_check_lib_save_LIBS
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6863 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6864 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6865 LIBSOUND=-lossaudio
6866 else
6867 LIBSOUND=
6868 fi
6869
6870
6871
6872 ALSA_REQUIRED=1.0.0
6873 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6874
6875 succeeded=no
6876
6877 # Extract the first word of "pkg-config", so it can be a program name with args.
6878 set dummy pkg-config; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 case $PKG_CONFIG in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6905 ;;
6906 esac
6907 fi
6908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6909 if test -n "$PKG_CONFIG"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6911 $as_echo "$PKG_CONFIG" >&6; }
6912 else
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6915 fi
6916
6917
6918
6919 if test "$PKG_CONFIG" = "no" ; then
6920 HAVE_ALSA=no
6921 else
6922 PKG_CONFIG_MIN_VERSION=0.9.0
6923 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6925 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6926
6927 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6929 $as_echo "yes" >&6; }
6930 succeeded=yes
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6933 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6934 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6936 $as_echo "$ALSA_CFLAGS" >&6; }
6937
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6939 $as_echo_n "checking ALSA_LIBS... " >&6; }
6940 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6942 $as_echo "$ALSA_LIBS" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 ALSA_CFLAGS=""
6947 ALSA_LIBS=""
6948 ## If we have a custom action on failure, don't print errors, but
6949 ## do set a variable so people can do so.
6950 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6951
6952 fi
6953
6954
6955
6956 else
6957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6959 fi
6960 fi
6961
6962 if test $succeeded = yes; then
6963 HAVE_ALSA=yes
6964 else
6965 HAVE_ALSA=no
6966 fi
6967
6968 if test $HAVE_ALSA = yes; then
6969 SAVE_CFLAGS="$CFLAGS"
6970 SAVE_LDFLAGS="$LDFLAGS"
6971 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6972 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 #include <asoundlib.h>
6976 int
6977 main ()
6978 {
6979 snd_lib_error_set_handler (0);
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_compile "$LINENO"; then :
6985 emacs_alsa_normal=yes
6986 else
6987 emacs_alsa_normal=no
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990 if test "$emacs_alsa_normal" != yes; then
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 #include <alsa/asoundlib.h>
6994 int
6995 main ()
6996 {
6997 snd_lib_error_set_handler (0);
6998 ;
6999 return 0;
7000 }
7001 _ACEOF
7002 if ac_fn_c_try_compile "$LINENO"; then :
7003 emacs_alsa_subdir=yes
7004 else
7005 emacs_alsa_subdir=no
7006 fi
7007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 if test "$emacs_alsa_subdir" != yes; then
7009 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7010 fi
7011 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7012 fi
7013
7014 CFLAGS="$SAVE_CFLAGS"
7015 LDFLAGS="$SAVE_LDFLAGS"
7016 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7017 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7018
7019 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7020
7021 fi
7022
7023 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7024 case "$opsys" in
7025 gnu-linux|freebsd|netbsd)
7026
7027 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7028
7029 ;;
7030 esac
7031 fi
7032
7033
7034 fi
7035
7036 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7037 linux/version.h sys/systeminfo.h limits.h \
7038 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7039 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7040 sys/utsname.h pwd.h utmp.h dirent.h util.h
7041 do :
7042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7045 cat >>confdefs.h <<_ACEOF
7046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7047 _ACEOF
7048
7049 fi
7050
7051 done
7052
7053
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7055 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 #include <sys/personality.h>
7059 int
7060 main ()
7061 {
7062 personality (PER_LINUX32)
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 if ac_fn_c_try_compile "$LINENO"; then :
7068 emacs_cv_personality_linux32=yes
7069 else
7070 emacs_cv_personality_linux32=no
7071 fi
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7074 $as_echo "$emacs_cv_personality_linux32" >&6; }
7075
7076 if test $emacs_cv_personality_linux32 = yes; then
7077
7078 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7079
7080 fi
7081
7082 for ac_header in term.h
7083 do :
7084 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7085 if test "x$ac_cv_header_term_h" = xyes; then :
7086 cat >>confdefs.h <<_ACEOF
7087 #define HAVE_TERM_H 1
7088 _ACEOF
7089
7090 fi
7091
7092 done
7093
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7095 $as_echo_n "checking for ANSI C header files... " >&6; }
7096 if ${ac_cv_header_stdc+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7101 #include <stdlib.h>
7102 #include <stdarg.h>
7103 #include <string.h>
7104 #include <float.h>
7105
7106 int
7107 main ()
7108 {
7109
7110 ;
7111 return 0;
7112 }
7113 _ACEOF
7114 if ac_fn_c_try_compile "$LINENO"; then :
7115 ac_cv_header_stdc=yes
7116 else
7117 ac_cv_header_stdc=no
7118 fi
7119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7120
7121 if test $ac_cv_header_stdc = yes; then
7122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 #include <string.h>
7126
7127 _ACEOF
7128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7129 $EGREP "memchr" >/dev/null 2>&1; then :
7130
7131 else
7132 ac_cv_header_stdc=no
7133 fi
7134 rm -f conftest*
7135
7136 fi
7137
7138 if test $ac_cv_header_stdc = yes; then
7139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 #include <stdlib.h>
7143
7144 _ACEOF
7145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7146 $EGREP "free" >/dev/null 2>&1; then :
7147
7148 else
7149 ac_cv_header_stdc=no
7150 fi
7151 rm -f conftest*
7152
7153 fi
7154
7155 if test $ac_cv_header_stdc = yes; then
7156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7157 if test "$cross_compiling" = yes; then :
7158 :
7159 else
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 #include <ctype.h>
7163 #include <stdlib.h>
7164 #if ((' ' & 0x0FF) == 0x020)
7165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7167 #else
7168 # define ISLOWER(c) \
7169 (('a' <= (c) && (c) <= 'i') \
7170 || ('j' <= (c) && (c) <= 'r') \
7171 || ('s' <= (c) && (c) <= 'z'))
7172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7173 #endif
7174
7175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7176 int
7177 main ()
7178 {
7179 int i;
7180 for (i = 0; i < 256; i++)
7181 if (XOR (islower (i), ISLOWER (i))
7182 || toupper (i) != TOUPPER (i))
7183 return 2;
7184 return 0;
7185 }
7186 _ACEOF
7187 if ac_fn_c_try_run "$LINENO"; then :
7188
7189 else
7190 ac_cv_header_stdc=no
7191 fi
7192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7193 conftest.$ac_objext conftest.beam conftest.$ac_ext
7194 fi
7195
7196 fi
7197 fi
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7199 $as_echo "$ac_cv_header_stdc" >&6; }
7200 if test $ac_cv_header_stdc = yes; then
7201
7202 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7203
7204 fi
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7207 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7208 if ${ac_cv_header_time+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #include <sys/types.h>
7214 #include <sys/time.h>
7215 #include <time.h>
7216
7217 int
7218 main ()
7219 {
7220 if ((struct tm *) 0)
7221 return 0;
7222 ;
7223 return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"; then :
7227 ac_cv_header_time=yes
7228 else
7229 ac_cv_header_time=no
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 fi
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7234 $as_echo "$ac_cv_header_time" >&6; }
7235 if test $ac_cv_header_time = yes; then
7236
7237 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7238
7239 fi
7240
7241 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7242 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7243 ac_have_decl=1
7244 else
7245 ac_have_decl=0
7246 fi
7247
7248 cat >>confdefs.h <<_ACEOF
7249 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7250 _ACEOF
7251
7252 if test $ac_cv_have_decl_sys_siglist != yes; then
7253 # For Tru64, at least:
7254 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7255 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7256 ac_have_decl=1
7257 else
7258 ac_have_decl=0
7259 fi
7260
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7263 _ACEOF
7264
7265 if test $ac_cv_have_decl___sys_siglist = yes; then
7266
7267 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7268
7269 fi
7270 fi
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7272 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7273 if ${ac_cv_header_sys_wait_h+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278 #include <sys/types.h>
7279 #include <sys/wait.h>
7280 #ifndef WEXITSTATUS
7281 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7282 #endif
7283 #ifndef WIFEXITED
7284 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7285 #endif
7286
7287 int
7288 main ()
7289 {
7290 int s;
7291 wait (&s);
7292 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7293 ;
7294 return 0;
7295 }
7296 _ACEOF
7297 if ac_fn_c_try_compile "$LINENO"; then :
7298 ac_cv_header_sys_wait_h=yes
7299 else
7300 ac_cv_header_sys_wait_h=no
7301 fi
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 fi
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7305 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7306 if test $ac_cv_header_sys_wait_h = yes; then
7307
7308 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7309
7310 fi
7311
7312
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7314 $as_echo_n "checking for struct utimbuf... " >&6; }
7315 if ${emacs_cv_struct_utimbuf+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320 #ifdef TIME_WITH_SYS_TIME
7321 #include <sys/time.h>
7322 #include <time.h>
7323 #else
7324 #ifdef HAVE_SYS_TIME_H
7325 #include <sys/time.h>
7326 #else
7327 #include <time.h>
7328 #endif
7329 #endif
7330 #ifdef HAVE_UTIME_H
7331 #include <utime.h>
7332 #endif
7333 int
7334 main ()
7335 {
7336 static struct utimbuf x; x.actime = x.modtime;
7337 ;
7338 return 0;
7339 }
7340 _ACEOF
7341 if ac_fn_c_try_compile "$LINENO"; then :
7342 emacs_cv_struct_utimbuf=yes
7343 else
7344 emacs_cv_struct_utimbuf=no
7345 fi
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 fi
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7349 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7350 if test $emacs_cv_struct_utimbuf = yes; then
7351
7352 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7353
7354 fi
7355
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7357 $as_echo_n "checking return type of signal handlers... " >&6; }
7358 if ${ac_cv_type_signal+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 #include <sys/types.h>
7364 #include <signal.h>
7365
7366 int
7367 main ()
7368 {
7369 return *(signal (0, 0)) (0) == 1;
7370 ;
7371 return 0;
7372 }
7373 _ACEOF
7374 if ac_fn_c_try_compile "$LINENO"; then :
7375 ac_cv_type_signal=int
7376 else
7377 ac_cv_type_signal=void
7378 fi
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7382 $as_echo "$ac_cv_type_signal" >&6; }
7383
7384 cat >>confdefs.h <<_ACEOF
7385 #define RETSIGTYPE $ac_cv_type_signal
7386 _ACEOF
7387
7388
7389
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7391 $as_echo_n "checking for speed_t... " >&6; }
7392 if ${emacs_cv_speed_t+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 #include <termios.h>
7398 int
7399 main ()
7400 {
7401 speed_t x = 1;
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_compile "$LINENO"; then :
7407 emacs_cv_speed_t=yes
7408 else
7409 emacs_cv_speed_t=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7414 $as_echo "$emacs_cv_speed_t" >&6; }
7415 if test $emacs_cv_speed_t = yes; then
7416
7417 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7418
7419 fi
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7422 $as_echo_n "checking for struct timeval... " >&6; }
7423 if ${emacs_cv_struct_timeval+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 #ifdef TIME_WITH_SYS_TIME
7429 #include <sys/time.h>
7430 #include <time.h>
7431 #else
7432 #ifdef HAVE_SYS_TIME_H
7433 #include <sys/time.h>
7434 #else
7435 #include <time.h>
7436 #endif
7437 #endif
7438 int
7439 main ()
7440 {
7441 static struct timeval x; x.tv_sec = x.tv_usec;
7442 ;
7443 return 0;
7444 }
7445 _ACEOF
7446 if ac_fn_c_try_compile "$LINENO"; then :
7447 emacs_cv_struct_timeval=yes
7448 else
7449 emacs_cv_struct_timeval=no
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7454 $as_echo "$emacs_cv_struct_timeval" >&6; }
7455 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7456 if test $emacs_cv_struct_timeval = yes; then
7457
7458 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7459
7460 fi
7461
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7463 $as_echo_n "checking for struct exception... " >&6; }
7464 if ${emacs_cv_struct_exception+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 #include <math.h>
7470 int
7471 main ()
7472 {
7473 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479 emacs_cv_struct_exception=yes
7480 else
7481 emacs_cv_struct_exception=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7486 $as_echo "$emacs_cv_struct_exception" >&6; }
7487 HAVE_EXCEPTION=$emacs_cv_struct_exception
7488 if test $emacs_cv_struct_exception != yes; then
7489
7490 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7491
7492 fi
7493
7494 for ac_header in sys/socket.h
7495 do :
7496 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7497 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7498 cat >>confdefs.h <<_ACEOF
7499 #define HAVE_SYS_SOCKET_H 1
7500 _ACEOF
7501
7502 fi
7503
7504 done
7505
7506 for ac_header in net/if.h
7507 do :
7508 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7509 #if HAVE_SYS_SOCKET_H
7510 #include <sys/socket.h>
7511 #endif
7512 "
7513 if test "x$ac_cv_header_net_if_h" = xyes; then :
7514 cat >>confdefs.h <<_ACEOF
7515 #define HAVE_NET_IF_H 1
7516 _ACEOF
7517
7518 fi
7519
7520 done
7521
7522
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7524 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7525 if ${ac_cv_struct_tm+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 #include <sys/types.h>
7531 #include <time.h>
7532
7533 int
7534 main ()
7535 {
7536 struct tm tm;
7537 int *p = &tm.tm_sec;
7538 return !p;
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 if ac_fn_c_try_compile "$LINENO"; then :
7544 ac_cv_struct_tm=time.h
7545 else
7546 ac_cv_struct_tm=sys/time.h
7547 fi
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7551 $as_echo "$ac_cv_struct_tm" >&6; }
7552 if test $ac_cv_struct_tm = sys/time.h; then
7553
7554 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7555
7556 fi
7557
7558 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7559 #include <$ac_cv_struct_tm>
7560
7561 "
7562 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7563
7564 cat >>confdefs.h <<_ACEOF
7565 #define HAVE_STRUCT_TM_TM_ZONE 1
7566 _ACEOF
7567
7568
7569 fi
7570
7571 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7572
7573 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7574
7575 else
7576 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7577 "
7578 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7579 ac_have_decl=1
7580 else
7581 ac_have_decl=0
7582 fi
7583
7584 cat >>confdefs.h <<_ACEOF
7585 #define HAVE_DECL_TZNAME $ac_have_decl
7586 _ACEOF
7587
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7589 $as_echo_n "checking for tzname... " >&6; }
7590 if ${ac_cv_var_tzname+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 #include <time.h>
7596 #if !HAVE_DECL_TZNAME
7597 extern char *tzname[];
7598 #endif
7599
7600 int
7601 main ()
7602 {
7603 return tzname[0][0];
7604 ;
7605 return 0;
7606 }
7607 _ACEOF
7608 if ac_fn_c_try_link "$LINENO"; then :
7609 ac_cv_var_tzname=yes
7610 else
7611 ac_cv_var_tzname=no
7612 fi
7613 rm -f core conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7617 $as_echo "$ac_cv_var_tzname" >&6; }
7618 if test $ac_cv_var_tzname = yes; then
7619
7620 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7621
7622 fi
7623 fi
7624
7625 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7626 "
7627 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7628
7629 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7630
7631 fi
7632
7633 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7634 #if HAVE_SYS_SOCKET_H
7635 #include <sys/socket.h>
7636 #endif
7637 #if HAVE_NET_IF_H
7638 #include <net/if.h>
7639 #endif
7640 "
7641 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
7642
7643 cat >>confdefs.h <<_ACEOF
7644 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7645 _ACEOF
7646
7647
7648 fi
7649 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7650 #if HAVE_SYS_SOCKET_H
7651 #include <sys/socket.h>
7652 #endif
7653 #if HAVE_NET_IF_H
7654 #include <net/if.h>
7655 #endif
7656 "
7657 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
7658
7659 cat >>confdefs.h <<_ACEOF
7660 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7661 _ACEOF
7662
7663
7664 fi
7665 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7666 #if HAVE_SYS_SOCKET_H
7667 #include <sys/socket.h>
7668 #endif
7669 #if HAVE_NET_IF_H
7670 #include <net/if.h>
7671 #endif
7672 "
7673 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
7674
7675 cat >>confdefs.h <<_ACEOF
7676 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7677 _ACEOF
7678
7679
7680 fi
7681 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7682 #if HAVE_SYS_SOCKET_H
7683 #include <sys/socket.h>
7684 #endif
7685 #if HAVE_NET_IF_H
7686 #include <net/if.h>
7687 #endif
7688 "
7689 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
7690
7691 cat >>confdefs.h <<_ACEOF
7692 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7693 _ACEOF
7694
7695
7696 fi
7697 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7698 #if HAVE_SYS_SOCKET_H
7699 #include <sys/socket.h>
7700 #endif
7701 #if HAVE_NET_IF_H
7702 #include <net/if.h>
7703 #endif
7704 "
7705 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
7706
7707 cat >>confdefs.h <<_ACEOF
7708 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7709 _ACEOF
7710
7711
7712 fi
7713
7714
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7717 $as_echo_n "checking for function prototypes... " >&6; }
7718 if test "$ac_cv_prog_cc_c89" != no; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7720 $as_echo "yes" >&6; }
7721
7722 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7723
7724
7725 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7726
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7733 $as_echo_n "checking for working volatile... " >&6; }
7734 if ${ac_cv_c_volatile+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739
7740 int
7741 main ()
7742 {
7743
7744 volatile int x;
7745 int * volatile y = (int *) 0;
7746 return !x && !y;
7747 ;
7748 return 0;
7749 }
7750 _ACEOF
7751 if ac_fn_c_try_compile "$LINENO"; then :
7752 ac_cv_c_volatile=yes
7753 else
7754 ac_cv_c_volatile=no
7755 fi
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7759 $as_echo "$ac_cv_c_volatile" >&6; }
7760 if test $ac_cv_c_volatile = no; then
7761
7762 $as_echo "#define volatile /**/" >>confdefs.h
7763
7764 fi
7765
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7767 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7768 if ${ac_cv_c_const+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773
7774 int
7775 main ()
7776 {
7777 /* FIXME: Include the comments suggested by Paul. */
7778 #ifndef __cplusplus
7779 /* Ultrix mips cc rejects this. */
7780 typedef int charset[2];
7781 const charset cs;
7782 /* SunOS 4.1.1 cc rejects this. */
7783 char const *const *pcpcc;
7784 char **ppc;
7785 /* NEC SVR4.0.2 mips cc rejects this. */
7786 struct point {int x, y;};
7787 static struct point const zero = {0,0};
7788 /* AIX XL C 1.02.0.0 rejects this.
7789 It does not let you subtract one const X* pointer from another in
7790 an arm of an if-expression whose if-part is not a constant
7791 expression */
7792 const char *g = "string";
7793 pcpcc = &g + (g ? g-g : 0);
7794 /* HPUX 7.0 cc rejects these. */
7795 ++pcpcc;
7796 ppc = (char**) pcpcc;
7797 pcpcc = (char const *const *) ppc;
7798 { /* SCO 3.2v4 cc rejects this. */
7799 char *t;
7800 char const *s = 0 ? (char *) 0 : (char const *) 0;
7801
7802 *t++ = 0;
7803 if (s) return 0;
7804 }
7805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7806 int x[] = {25, 17};
7807 const int *foo = &x[0];
7808 ++foo;
7809 }
7810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7811 typedef const int *iptr;
7812 iptr p = 0;
7813 ++p;
7814 }
7815 { /* AIX XL C 1.02.0.0 rejects this saying
7816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7817 struct s { int j; const int *ap[3]; };
7818 struct s *b; b->j = 5;
7819 }
7820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7821 const int foo = 10;
7822 if (!foo) return 0;
7823 }
7824 return !cs[0] && !zero.x;
7825 #endif
7826
7827 ;
7828 return 0;
7829 }
7830 _ACEOF
7831 if ac_fn_c_try_compile "$LINENO"; then :
7832 ac_cv_c_const=yes
7833 else
7834 ac_cv_c_const=no
7835 fi
7836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7839 $as_echo "$ac_cv_c_const" >&6; }
7840 if test $ac_cv_c_const = no; then
7841
7842 $as_echo "#define const /**/" >>confdefs.h
7843
7844 fi
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7847 $as_echo_n "checking for void * support... " >&6; }
7848 if ${emacs_cv_void_star+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853
7854 int
7855 main ()
7856 {
7857 void * foo;
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863 emacs_cv_void_star=yes
7864 else
7865 emacs_cv_void_star=no
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 fi
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7870 $as_echo "$emacs_cv_void_star" >&6; }
7871 if test $emacs_cv_void_star = yes; then
7872 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7873
7874 else
7875 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7876
7877 fi
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7880 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7881 if ${ac_cv_c_bigendian+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 ac_cv_c_bigendian=unknown
7885 # See if we're dealing with a universal compiler.
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #ifndef __APPLE_CC__
7889 not a universal capable compiler
7890 #endif
7891 typedef int dummy;
7892
7893 _ACEOF
7894 if ac_fn_c_try_compile "$LINENO"; then :
7895
7896 # Check for potential -arch flags. It is not universal unless
7897 # there are at least two -arch flags with different values.
7898 ac_arch=
7899 ac_prev=
7900 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7901 if test -n "$ac_prev"; then
7902 case $ac_word in
7903 i?86 | x86_64 | ppc | ppc64)
7904 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7905 ac_arch=$ac_word
7906 else
7907 ac_cv_c_bigendian=universal
7908 break
7909 fi
7910 ;;
7911 esac
7912 ac_prev=
7913 elif test "x$ac_word" = "x-arch"; then
7914 ac_prev=arch
7915 fi
7916 done
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919 if test $ac_cv_c_bigendian = unknown; then
7920 # See if sys/param.h defines the BYTE_ORDER macro.
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 #include <sys/types.h>
7924 #include <sys/param.h>
7925
7926 int
7927 main ()
7928 {
7929 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7930 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7931 && LITTLE_ENDIAN)
7932 bogus endian macros
7933 #endif
7934
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940 # It does; now see whether it defined to BIG_ENDIAN or not.
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 #include <sys/types.h>
7944 #include <sys/param.h>
7945
7946 int
7947 main ()
7948 {
7949 #if BYTE_ORDER != BIG_ENDIAN
7950 not big endian
7951 #endif
7952
7953 ;
7954 return 0;
7955 }
7956 _ACEOF
7957 if ac_fn_c_try_compile "$LINENO"; then :
7958 ac_cv_c_bigendian=yes
7959 else
7960 ac_cv_c_bigendian=no
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 fi
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 fi
7966 if test $ac_cv_c_bigendian = unknown; then
7967 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 #include <limits.h>
7971
7972 int
7973 main ()
7974 {
7975 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7976 bogus endian macros
7977 #endif
7978
7979 ;
7980 return 0;
7981 }
7982 _ACEOF
7983 if ac_fn_c_try_compile "$LINENO"; then :
7984 # It does; now see whether it defined to _BIG_ENDIAN or not.
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 #include <limits.h>
7988
7989 int
7990 main ()
7991 {
7992 #ifndef _BIG_ENDIAN
7993 not big endian
7994 #endif
7995
7996 ;
7997 return 0;
7998 }
7999 _ACEOF
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001 ac_cv_c_bigendian=yes
8002 else
8003 ac_cv_c_bigendian=no
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008 fi
8009 if test $ac_cv_c_bigendian = unknown; then
8010 # Compile a test program.
8011 if test "$cross_compiling" = yes; then :
8012 # Try to guess by grepping values from an object file.
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8015 short int ascii_mm[] =
8016 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8017 short int ascii_ii[] =
8018 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8019 int use_ascii (int i) {
8020 return ascii_mm[i] + ascii_ii[i];
8021 }
8022 short int ebcdic_ii[] =
8023 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8024 short int ebcdic_mm[] =
8025 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8026 int use_ebcdic (int i) {
8027 return ebcdic_mm[i] + ebcdic_ii[i];
8028 }
8029 extern int foo;
8030
8031 int
8032 main ()
8033 {
8034 return use_ascii (foo) == use_ebcdic (foo);
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 if ac_fn_c_try_compile "$LINENO"; then :
8040 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8041 ac_cv_c_bigendian=yes
8042 fi
8043 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8044 if test "$ac_cv_c_bigendian" = unknown; then
8045 ac_cv_c_bigendian=no
8046 else
8047 # finding both strings is unlikely to happen, but who knows?
8048 ac_cv_c_bigendian=unknown
8049 fi
8050 fi
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 else
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8056 $ac_includes_default
8057 int
8058 main ()
8059 {
8060
8061 /* Are we little or big endian? From Harbison&Steele. */
8062 union
8063 {
8064 long int l;
8065 char c[sizeof (long int)];
8066 } u;
8067 u.l = 1;
8068 return u.c[sizeof (long int) - 1] == 1;
8069
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_run "$LINENO"; then :
8075 ac_cv_c_bigendian=no
8076 else
8077 ac_cv_c_bigendian=yes
8078 fi
8079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8080 conftest.$ac_objext conftest.beam conftest.$ac_ext
8081 fi
8082
8083 fi
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8086 $as_echo "$ac_cv_c_bigendian" >&6; }
8087 case $ac_cv_c_bigendian in #(
8088 yes)
8089 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8090 ;; #(
8091 no)
8092 ;; #(
8093 universal)
8094
8095 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8096
8097 ;; #(
8098 *)
8099 as_fn_error $? "unknown endianness
8100 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8101 esac
8102
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8105 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8106 set x ${MAKE-make}
8107 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8108 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 cat >conftest.make <<\_ACEOF
8112 SHELL = /bin/sh
8113 all:
8114 @echo '@@@%%%=$(MAKE)=@@@%%%'
8115 _ACEOF
8116 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8117 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8118 *@@@%%%=?*=@@@%%%*)
8119 eval ac_cv_prog_make_${ac_make}_set=yes;;
8120 *)
8121 eval ac_cv_prog_make_${ac_make}_set=no;;
8122 esac
8123 rm -f conftest.make
8124 fi
8125 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8127 $as_echo "yes" >&6; }
8128 SET_MAKE=
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 SET_MAKE="MAKE=${MAKE-make}"
8133 fi
8134
8135
8136 DEPFLAGS=
8137 MKDEPDIR=":"
8138 deps_frag=deps.mk
8139 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8141 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8142 HAVE_GNU_MAKE=no
8143 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8144 if test "x$testval" != x; then
8145 HAVE_GNU_MAKE=yes
8146 else
8147 ac_enable_autodepend=no
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8150 $as_echo "$HAVE_GNU_MAKE" >&6; }
8151 if test $HAVE_GNU_MAKE = yes; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8153 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8154 SAVE_CFLAGS="$CFLAGS"
8155 CFLAGS="$CFLAGS -MMD -MF deps.d"
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158
8159 int
8160 main ()
8161 {
8162
8163 ;
8164 return 0;
8165 }
8166 _ACEOF
8167 if ac_fn_c_try_compile "$LINENO"; then :
8168
8169 else
8170 ac_enable_autodepend=no
8171 fi
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 CFLAGS="$SAVE_CFLAGS"
8174 test -f deps.d || ac_enable_autodepend=no
8175 rm -rf deps.d
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8177 $as_echo "$ac_enable_autodepend" >&6; }
8178 fi
8179 if test $ac_enable_autodepend = yes; then
8180 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8181 ## In parallel builds, another make might create depdir between
8182 ## the first test and mkdir, so stick another test on the end.
8183 ## Or use mkinstalldirs? mkdir -p is not portable.
8184 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8185 deps_frag=autodeps.mk
8186 fi
8187 fi
8188 deps_frag=$srcdir/src/$deps_frag
8189
8190
8191
8192
8193
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8195 $as_echo_n "checking for long file names... " >&6; }
8196 if ${ac_cv_sys_long_file_names+:} false; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 ac_cv_sys_long_file_names=yes
8200 # Test for long file names in all the places we know might matter:
8201 # . the current directory, where building will happen
8202 # $prefix/lib where we will be installing things
8203 # $exec_prefix/lib likewise
8204 # $TMPDIR if set, where it might want to write temporary files
8205 # /tmp where it might want to write temporary files
8206 # /var/tmp likewise
8207 # /usr/tmp likewise
8208 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8209 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8210 # in the usual case where exec_prefix is '${prefix}'.
8211 case $ac_dir in #(
8212 . | /* | ?:[\\/]*) ;; #(
8213 *) continue;;
8214 esac
8215 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8216 ac_xdir=$ac_dir/cf$$
8217 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8218 ac_tf1=$ac_xdir/conftest9012345
8219 ac_tf2=$ac_xdir/conftest9012346
8220 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8221 ac_cv_sys_long_file_names=no
8222 rm -f -r "$ac_xdir" 2>/dev/null
8223 test $ac_cv_sys_long_file_names = no && break
8224 done
8225 fi
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8227 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8228 if test $ac_cv_sys_long_file_names = yes; then
8229
8230 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8231
8232 fi
8233
8234
8235 #### Choose a window system.
8236
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8238 $as_echo_n "checking for X... " >&6; }
8239
8240
8241 # Check whether --with-x was given.
8242 if test "${with_x+set}" = set; then :
8243 withval=$with_x;
8244 fi
8245
8246 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8247 if test "x$with_x" = xno; then
8248 # The user explicitly disabled X.
8249 have_x=disabled
8250 else
8251 case $x_includes,$x_libraries in #(
8252 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8253 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 # One or both of the vars are not set, and there is no cached value.
8257 ac_x_includes=no ac_x_libraries=no
8258 rm -f -r conftest.dir
8259 if mkdir conftest.dir; then
8260 cd conftest.dir
8261 cat >Imakefile <<'_ACEOF'
8262 incroot:
8263 @echo incroot='${INCROOT}'
8264 usrlibdir:
8265 @echo usrlibdir='${USRLIBDIR}'
8266 libdir:
8267 @echo libdir='${LIBDIR}'
8268 _ACEOF
8269 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8270 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8271 for ac_var in incroot usrlibdir libdir; do
8272 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8273 done
8274 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8275 for ac_extension in a so sl dylib la dll; do
8276 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8277 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8278 ac_im_usrlibdir=$ac_im_libdir; break
8279 fi
8280 done
8281 # Screen out bogus values from the imake configuration. They are
8282 # bogus both because they are the default anyway, and because
8283 # using them would break gcc on systems where it needs fixed includes.
8284 case $ac_im_incroot in
8285 /usr/include) ac_x_includes= ;;
8286 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8287 esac
8288 case $ac_im_usrlibdir in
8289 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8290 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8291 esac
8292 fi
8293 cd ..
8294 rm -f -r conftest.dir
8295 fi
8296
8297 # Standard set of common directories for X headers.
8298 # Check X11 before X11Rn because it is often a symlink to the current release.
8299 ac_x_header_dirs='
8300 /usr/X11/include
8301 /usr/X11R7/include
8302 /usr/X11R6/include
8303 /usr/X11R5/include
8304 /usr/X11R4/include
8305
8306 /usr/include/X11
8307 /usr/include/X11R7
8308 /usr/include/X11R6
8309 /usr/include/X11R5
8310 /usr/include/X11R4
8311
8312 /usr/local/X11/include
8313 /usr/local/X11R7/include
8314 /usr/local/X11R6/include
8315 /usr/local/X11R5/include
8316 /usr/local/X11R4/include
8317
8318 /usr/local/include/X11
8319 /usr/local/include/X11R7
8320 /usr/local/include/X11R6
8321 /usr/local/include/X11R5
8322 /usr/local/include/X11R4
8323
8324 /usr/X386/include
8325 /usr/x386/include
8326 /usr/XFree86/include/X11
8327
8328 /usr/include
8329 /usr/local/include
8330 /usr/unsupported/include
8331 /usr/athena/include
8332 /usr/local/x11r5/include
8333 /usr/lpp/Xamples/include
8334
8335 /usr/openwin/include
8336 /usr/openwin/share/include'
8337
8338 if test "$ac_x_includes" = no; then
8339 # Guess where to find include files, by looking for Xlib.h.
8340 # First, try using that file with no special directory specified.
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #include <X11/Xlib.h>
8344 _ACEOF
8345 if ac_fn_c_try_cpp "$LINENO"; then :
8346 # We can compile using X headers with no special include directory.
8347 ac_x_includes=
8348 else
8349 for ac_dir in $ac_x_header_dirs; do
8350 if test -r "$ac_dir/X11/Xlib.h"; then
8351 ac_x_includes=$ac_dir
8352 break
8353 fi
8354 done
8355 fi
8356 rm -f conftest.err conftest.i conftest.$ac_ext
8357 fi # $ac_x_includes = no
8358
8359 if test "$ac_x_libraries" = no; then
8360 # Check for the libraries.
8361 # See if we find them without any special options.
8362 # Don't add to $LIBS permanently.
8363 ac_save_LIBS=$LIBS
8364 LIBS="-lX11 $LIBS"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 #include <X11/Xlib.h>
8368 int
8369 main ()
8370 {
8371 XrmInitialize ()
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_link "$LINENO"; then :
8377 LIBS=$ac_save_LIBS
8378 # We can link X programs with no special library path.
8379 ac_x_libraries=
8380 else
8381 LIBS=$ac_save_LIBS
8382 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8383 do
8384 # Don't even attempt the hair of trying to link an X program!
8385 for ac_extension in a so sl dylib la dll; do
8386 if test -r "$ac_dir/libX11.$ac_extension"; then
8387 ac_x_libraries=$ac_dir
8388 break 2
8389 fi
8390 done
8391 done
8392 fi
8393 rm -f core conftest.err conftest.$ac_objext \
8394 conftest$ac_exeext conftest.$ac_ext
8395 fi # $ac_x_libraries = no
8396
8397 case $ac_x_includes,$ac_x_libraries in #(
8398 no,* | *,no | *\'*)
8399 # Didn't find X, or a directory has "'" in its name.
8400 ac_cv_have_x="have_x=no";; #(
8401 *)
8402 # Record where we found X for the cache.
8403 ac_cv_have_x="have_x=yes\
8404 ac_x_includes='$ac_x_includes'\
8405 ac_x_libraries='$ac_x_libraries'"
8406 esac
8407 fi
8408 ;; #(
8409 *) have_x=yes;;
8410 esac
8411 eval "$ac_cv_have_x"
8412 fi # $with_x != no
8413
8414 if test "$have_x" != yes; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8416 $as_echo "$have_x" >&6; }
8417 no_x=yes
8418 else
8419 # If each of the values was on the command line, it overrides each guess.
8420 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8421 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8422 # Update the cache value to reflect the command line values.
8423 ac_cv_have_x="have_x=yes\
8424 ac_x_includes='$x_includes'\
8425 ac_x_libraries='$x_libraries'"
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8427 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8428 fi
8429
8430 if test "$no_x" = yes; then
8431 window_system=none
8432 else
8433 window_system=x11
8434 fi
8435
8436 ## Workaround for bug in autoconf <= 2.62.
8437 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8438 ## No need to do anything special for these standard directories.
8439 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8440
8441 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8442
8443 fi
8444
8445 LD_SWITCH_X_SITE_AUX=
8446 LD_SWITCH_X_SITE_AUX_RPATH=
8447 if test "${x_libraries}" != NONE; then
8448 if test -n "${x_libraries}"; then
8449 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8450 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8451 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8452 fi
8453 x_default_search_path=""
8454 x_search_path=${x_libraries}
8455 if test -z "${x_search_path}"; then
8456 x_search_path=/usr/lib
8457 fi
8458 for x_library in `echo ${x_search_path}: | \
8459 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8460 x_search_path="\
8461 ${x_library}/X11/%L/%T/%N%C%S:\
8462 ${x_library}/X11/%l/%T/%N%C%S:\
8463 ${x_library}/X11/%T/%N%C%S:\
8464 ${x_library}/X11/%L/%T/%N%S:\
8465 ${x_library}/X11/%l/%T/%N%S:\
8466 ${x_library}/X11/%T/%N%S"
8467 if test x"${x_default_search_path}" = x; then
8468 x_default_search_path=${x_search_path}
8469 else
8470 x_default_search_path="${x_search_path}:${x_default_search_path}"
8471 fi
8472 done
8473 fi
8474
8475
8476
8477 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8478 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8479 fi
8480
8481 if test x"${x_includes}" = x; then
8482 bitmapdir=/usr/include/X11/bitmaps
8483 else
8484 # accumulate include directories that have X11 bitmap subdirectories
8485 bmd_acc="dummyval"
8486 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8487 if test -d "${bmd}/X11/bitmaps"; then
8488 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8489 fi
8490 if test -d "${bmd}/bitmaps"; then
8491 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8492 fi
8493 done
8494 if test ${bmd_acc} != "dummyval"; then
8495 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8496 fi
8497 fi
8498
8499 HAVE_NS=no
8500 NS_IMPL_COCOA=no
8501 NS_IMPL_GNUSTEP=no
8502 tmp_CPPFLAGS="$CPPFLAGS"
8503 tmp_CFLAGS="$CFLAGS"
8504 CPPFLAGS="$CPPFLAGS -x objective-c"
8505 CFLAGS="$CFLAGS -x objective-c"
8506 TEMACS_LDFLAGS2="\${LDFLAGS}"
8507 if test "${with_ns}" != no; then
8508 if test "${opsys}" = darwin; then
8509 NS_IMPL_COCOA=yes
8510 ns_appdir=`pwd`/nextstep/Emacs.app
8511 ns_appbindir=${ns_appdir}/Contents/MacOS/
8512 ns_appresdir=${ns_appdir}/Contents/Resources
8513 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8514 elif test -f $GNUSTEP_CONFIG_FILE; then
8515 NS_IMPL_GNUSTEP=yes
8516 ns_appdir=`pwd`/nextstep/Emacs.app
8517 ns_appbindir=${ns_appdir}/
8518 ns_appresdir=${ns_appdir}/Resources
8519 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8520 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8521 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8522 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8523 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8524 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8525 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8526 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8527 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8528 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8529 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8530 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8531 LIB_STANDARD=
8532 START_FILES=
8533 TEMACS_LDFLAGS2=
8534 fi
8535 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8536 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8537 HAVE_NS=yes
8538 else
8539 as_fn_error $? "\`--with-ns' was specified, but the include
8540 files are missing or cannot be compiled." "$LINENO" 5
8541 fi
8542
8543
8544 NS_HAVE_NSINTEGER=yes
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8547 #include <Foundation/NSObjCRuntime.h>
8548 int
8549 main ()
8550 {
8551 NSInteger i;
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 ns_have_nsinteger=yes
8558 else
8559 ns_have_nsinteger=no
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 if test $ns_have_nsinteger = no; then
8563 NS_HAVE_NSINTEGER=no
8564 fi
8565 fi
8566
8567
8568 ns_frag=/dev/null
8569 NS_OBJ=
8570 NS_SUPPORT=
8571 if test "${HAVE_NS}" = yes; then
8572 window_system=nextstep
8573 with_xft=no
8574 # set up packaging dirs
8575 exec_prefix=${ns_appbindir}
8576 libexecdir=${ns_appbindir}/libexec
8577 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8578 prefix=${ns_appresdir}
8579 fi
8580 ns_frag=$srcdir/src/ns.mk
8581 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8582 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8583 fi
8584 CFLAGS="$tmp_CFLAGS"
8585 CPPFLAGS="$tmp_CPPFLAGS"
8586
8587
8588
8589
8590
8591 case "${window_system}" in
8592 x11 )
8593 HAVE_X_WINDOWS=yes
8594 HAVE_X11=yes
8595 case "${with_x_toolkit}" in
8596 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8597 motif ) USE_X_TOOLKIT=MOTIF ;;
8598 gtk ) with_gtk=yes
8599 USE_X_TOOLKIT=none ;;
8600 gtk3 ) with_gtk3=yes
8601 USE_X_TOOLKIT=none ;;
8602 no ) USE_X_TOOLKIT=none ;;
8603 * ) USE_X_TOOLKIT=maybe ;;
8604 esac
8605 ;;
8606 nextstep | none )
8607 HAVE_X_WINDOWS=no
8608 HAVE_X11=no
8609 USE_X_TOOLKIT=none
8610 ;;
8611 esac
8612
8613 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8614 # Extract the first word of "X", so it can be a program name with args.
8615 set dummy X; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 if test -n "$HAVE_XSERVER"; then
8622 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8631 ac_cv_prog_HAVE_XSERVER="true"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635 done
8636 done
8637 IFS=$as_save_IFS
8638
8639 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8640 fi
8641 fi
8642 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8643 if test -n "$HAVE_XSERVER"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8645 $as_echo "$HAVE_XSERVER" >&6; }
8646 else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650
8651
8652 if test "$HAVE_XSERVER" = true ||
8653 test -n "$DISPLAY" ||
8654 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8655 as_fn_error $? "You seem to be running X, but no X development libraries
8656 were found. You should install the relevant development files for X
8657 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8658 sure you have development files for image handling, i.e.
8659 tiff, gif, jpeg, png and xpm.
8660 If you are sure you want Emacs compiled without X window support, pass
8661 --without-x
8662 to configure." "$LINENO" 5
8663 fi
8664 fi
8665
8666 ### If we're using X11, we should use the X menu package.
8667 HAVE_MENUS=no
8668 case ${HAVE_X11} in
8669 yes ) HAVE_MENUS=yes ;;
8670 esac
8671
8672 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8673 # Assume not, until told otherwise.
8674 GNU_MALLOC=yes
8675 doug_lea_malloc=yes
8676 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8677 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
8678
8679 else
8680 doug_lea_malloc=no
8681 fi
8682
8683 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8684 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
8685
8686 else
8687 doug_lea_malloc=no
8688 fi
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8691 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8692 if ${emacs_cv_var___after_morecore_hook+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 extern void (* __after_morecore_hook)();
8698 int
8699 main ()
8700 {
8701 __after_morecore_hook = 0
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"; then :
8707 emacs_cv_var___after_morecore_hook=yes
8708 else
8709 emacs_cv_var___after_morecore_hook=no
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 fi
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8715 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8716 if test $emacs_cv_var___after_morecore_hook = no; then
8717 doug_lea_malloc=no
8718 fi
8719
8720
8721 system_malloc=no
8722 case "$opsys" in
8723 ## darwin ld insists on the use of malloc routines in the System framework.
8724 darwin|sol2-10) system_malloc=yes ;;
8725 esac
8726
8727 if test "${system_malloc}" = "yes"; then
8728
8729 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8730
8731 GNU_MALLOC=no
8732 GNU_MALLOC_reason="
8733 (The GNU allocators don't work with this system configuration.)"
8734 GMALLOC_OBJ=
8735 VMLIMIT_OBJ=
8736 else
8737 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8738 VMLIMIT_OBJ=vm-limit.o
8739 fi
8740
8741
8742
8743 if test "$doug_lea_malloc" = "yes" ; then
8744 if test "$GNU_MALLOC" = yes ; then
8745 GNU_MALLOC_reason="
8746 (Using Doug Lea's new malloc from the GNU C Library.)"
8747 fi
8748
8749 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8750
8751
8752 ## Use mmap directly for allocating larger buffers.
8753 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8754 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8755 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8756 case "$opsys" in
8757 gnu*) REL_ALLOC=no ;;
8758 esac
8759 fi
8760
8761 if test x"${REL_ALLOC}" = x; then
8762 REL_ALLOC=${GNU_MALLOC}
8763 fi
8764
8765 use_mmap_for_buffers=no
8766 case "$opsys" in
8767 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8768 esac
8769
8770
8771
8772
8773 for ac_header in $ac_header_list
8774 do :
8775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8776 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8777 "
8778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8779 cat >>confdefs.h <<_ACEOF
8780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8781 _ACEOF
8782
8783 fi
8784
8785 done
8786
8787
8788
8789
8790
8791
8792
8793
8794 for ac_func in getpagesize
8795 do :
8796 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8797 if test "x$ac_cv_func_getpagesize" = xyes; then :
8798 cat >>confdefs.h <<_ACEOF
8799 #define HAVE_GETPAGESIZE 1
8800 _ACEOF
8801
8802 fi
8803 done
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8806 $as_echo_n "checking for working mmap... " >&6; }
8807 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 if test "$cross_compiling" = yes; then :
8811 ac_cv_func_mmap_fixed_mapped=no
8812 else
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815 $ac_includes_default
8816 /* malloc might have been renamed as rpl_malloc. */
8817 #undef malloc
8818
8819 /* Thanks to Mike Haertel and Jim Avera for this test.
8820 Here is a matrix of mmap possibilities:
8821 mmap private not fixed
8822 mmap private fixed at somewhere currently unmapped
8823 mmap private fixed at somewhere already mapped
8824 mmap shared not fixed
8825 mmap shared fixed at somewhere currently unmapped
8826 mmap shared fixed at somewhere already mapped
8827 For private mappings, we should verify that changes cannot be read()
8828 back from the file, nor mmap's back from the file at a different
8829 address. (There have been systems where private was not correctly
8830 implemented like the infamous i386 svr4.0, and systems where the
8831 VM page cache was not coherent with the file system buffer cache
8832 like early versions of FreeBSD and possibly contemporary NetBSD.)
8833 For shared mappings, we should conversely verify that changes get
8834 propagated back to all the places they're supposed to be.
8835
8836 Grep wants private fixed already mapped.
8837 The main things grep needs to know about mmap are:
8838 * does it exist and is it safe to write into the mmap'd area
8839 * how to use it (BSD variants) */
8840
8841 #include <fcntl.h>
8842 #include <sys/mman.h>
8843
8844 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8845 char *malloc ();
8846 #endif
8847
8848 /* This mess was copied from the GNU getpagesize.h. */
8849 #ifndef HAVE_GETPAGESIZE
8850 # ifdef _SC_PAGESIZE
8851 # define getpagesize() sysconf(_SC_PAGESIZE)
8852 # else /* no _SC_PAGESIZE */
8853 # ifdef HAVE_SYS_PARAM_H
8854 # include <sys/param.h>
8855 # ifdef EXEC_PAGESIZE
8856 # define getpagesize() EXEC_PAGESIZE
8857 # else /* no EXEC_PAGESIZE */
8858 # ifdef NBPG
8859 # define getpagesize() NBPG * CLSIZE
8860 # ifndef CLSIZE
8861 # define CLSIZE 1
8862 # endif /* no CLSIZE */
8863 # else /* no NBPG */
8864 # ifdef NBPC
8865 # define getpagesize() NBPC
8866 # else /* no NBPC */
8867 # ifdef PAGESIZE
8868 # define getpagesize() PAGESIZE
8869 # endif /* PAGESIZE */
8870 # endif /* no NBPC */
8871 # endif /* no NBPG */
8872 # endif /* no EXEC_PAGESIZE */
8873 # else /* no HAVE_SYS_PARAM_H */
8874 # define getpagesize() 8192 /* punt totally */
8875 # endif /* no HAVE_SYS_PARAM_H */
8876 # endif /* no _SC_PAGESIZE */
8877
8878 #endif /* no HAVE_GETPAGESIZE */
8879
8880 int
8881 main ()
8882 {
8883 char *data, *data2, *data3;
8884 const char *cdata2;
8885 int i, pagesize;
8886 int fd, fd2;
8887
8888 pagesize = getpagesize ();
8889
8890 /* First, make a file with some known garbage in it. */
8891 data = (char *) malloc (pagesize);
8892 if (!data)
8893 return 1;
8894 for (i = 0; i < pagesize; ++i)
8895 *(data + i) = rand ();
8896 umask (0);
8897 fd = creat ("conftest.mmap", 0600);
8898 if (fd < 0)
8899 return 2;
8900 if (write (fd, data, pagesize) != pagesize)
8901 return 3;
8902 close (fd);
8903
8904 /* Next, check that the tail of a page is zero-filled. File must have
8905 non-zero length, otherwise we risk SIGBUS for entire page. */
8906 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8907 if (fd2 < 0)
8908 return 4;
8909 cdata2 = "";
8910 if (write (fd2, cdata2, 1) != 1)
8911 return 5;
8912 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8913 if (data2 == MAP_FAILED)
8914 return 6;
8915 for (i = 0; i < pagesize; ++i)
8916 if (*(data2 + i))
8917 return 7;
8918 close (fd2);
8919 if (munmap (data2, pagesize))
8920 return 8;
8921
8922 /* Next, try to mmap the file at a fixed address which already has
8923 something else allocated at it. If we can, also make sure that
8924 we see the same garbage. */
8925 fd = open ("conftest.mmap", O_RDWR);
8926 if (fd < 0)
8927 return 9;
8928 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8929 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8930 return 10;
8931 for (i = 0; i < pagesize; ++i)
8932 if (*(data + i) != *(data2 + i))
8933 return 11;
8934
8935 /* Finally, make sure that changes to the mapped area do not
8936 percolate back to the file as seen by read(). (This is a bug on
8937 some variants of i386 svr4.0.) */
8938 for (i = 0; i < pagesize; ++i)
8939 *(data2 + i) = *(data2 + i) + 1;
8940 data3 = (char *) malloc (pagesize);
8941 if (!data3)
8942 return 12;
8943 if (read (fd, data3, pagesize) != pagesize)
8944 return 13;
8945 for (i = 0; i < pagesize; ++i)
8946 if (*(data + i) != *(data3 + i))
8947 return 14;
8948 close (fd);
8949 return 0;
8950 }
8951 _ACEOF
8952 if ac_fn_c_try_run "$LINENO"; then :
8953 ac_cv_func_mmap_fixed_mapped=yes
8954 else
8955 ac_cv_func_mmap_fixed_mapped=no
8956 fi
8957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8958 conftest.$ac_objext conftest.beam conftest.$ac_ext
8959 fi
8960
8961 fi
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8963 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8964 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8965
8966 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8967
8968 fi
8969 rm -f conftest.mmap conftest.txt
8970
8971 if test $use_mmap_for_buffers = yes; then
8972
8973 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8974
8975 REL_ALLOC=no
8976 fi
8977
8978 LIBS="$LIBS_SYSTEM $LIBS"
8979
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8981 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8982 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8985 ac_check_lib_save_LIBS=$LIBS
8986 LIBS="-ldnet $LIBS"
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989
8990 /* Override any GCC internal prototype to avoid an error.
8991 Use char because int might match the return type of a GCC
8992 builtin and then its argument prototype would still apply. */
8993 #ifdef __cplusplus
8994 extern "C"
8995 #endif
8996 char dnet_ntoa ();
8997 int
8998 main ()
8999 {
9000 return dnet_ntoa ();
9001 ;
9002 return 0;
9003 }
9004 _ACEOF
9005 if ac_fn_c_try_link "$LINENO"; then :
9006 ac_cv_lib_dnet_dnet_ntoa=yes
9007 else
9008 ac_cv_lib_dnet_dnet_ntoa=no
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LIBS=$ac_check_lib_save_LIBS
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9015 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9016 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_LIBDNET 1
9019 _ACEOF
9020
9021 LIBS="-ldnet $LIBS"
9022
9023 fi
9024
9025
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9027 $as_echo_n "checking for main in -lXbsd... " >&6; }
9028 if ${ac_cv_lib_Xbsd_main+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 ac_check_lib_save_LIBS=$LIBS
9032 LIBS="-lXbsd $LIBS"
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035
9036
9037 int
9038 main ()
9039 {
9040 return main ();
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 if ac_fn_c_try_link "$LINENO"; then :
9046 ac_cv_lib_Xbsd_main=yes
9047 else
9048 ac_cv_lib_Xbsd_main=no
9049 fi
9050 rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
9052 LIBS=$ac_check_lib_save_LIBS
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9055 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9056 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9057 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9058 fi
9059
9060
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9062 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9063 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 ac_check_lib_save_LIBS=$LIBS
9067 LIBS="-lpthreads $LIBS"
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9070
9071 /* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9074 #ifdef __cplusplus
9075 extern "C"
9076 #endif
9077 char cma_open ();
9078 int
9079 main ()
9080 {
9081 return cma_open ();
9082 ;
9083 return 0;
9084 }
9085 _ACEOF
9086 if ac_fn_c_try_link "$LINENO"; then :
9087 ac_cv_lib_pthreads_cma_open=yes
9088 else
9089 ac_cv_lib_pthreads_cma_open=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093 LIBS=$ac_check_lib_save_LIBS
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9096 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9097 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9098 cat >>confdefs.h <<_ACEOF
9099 #define HAVE_LIBPTHREADS 1
9100 _ACEOF
9101
9102 LIBS="-lpthreads $LIBS"
9103
9104 fi
9105
9106
9107 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9108 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9109 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9110 ## added to LIBS in configure would never contain the pthreads part,
9111 ## but the value used in Makefiles might. FIXME?
9112 ##
9113 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9114 ## be harmless on older versions of X where it happens to exist.
9115 test "$opsys" = "aix4-2" && \
9116 test $ac_cv_lib_pthreads_cma_open = yes && \
9117 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9118
9119
9120 case ${host_os} in
9121 aix*)
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9123 $as_echo_n "checking for -bbigtoc option... " >&6; }
9124 if ${gdb_cv_bigtoc+:} false; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127
9128 case $GCC in
9129 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9130 *) gdb_cv_bigtoc=-bbigtoc ;;
9131 esac
9132
9133 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136
9137 int
9138 main ()
9139 {
9140 int i;
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_c_try_link "$LINENO"; then :
9146
9147 else
9148 gdb_cv_bigtoc=
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext \
9151 conftest$ac_exeext conftest.$ac_ext
9152
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9155 $as_echo "$gdb_cv_bigtoc" >&6; }
9156 ;;
9157 esac
9158
9159 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9160 # used for the tests that follow. We set them back to REAL_CFLAGS and
9161 # REAL_CPPFLAGS later on.
9162
9163 REAL_CFLAGS="$CFLAGS"
9164 REAL_CPPFLAGS="$CPPFLAGS"
9165
9166 if test "${HAVE_X11}" = "yes"; then
9167 DEFS="$C_SWITCH_X_SITE $DEFS"
9168 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9169 LIBS="-lX11 $LIBS"
9170 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9171 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9172
9173 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9174 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9175 # but it's more convenient here to set LD_RUN_PATH
9176 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9177 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9178 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9179 export LD_RUN_PATH
9180 fi
9181
9182 if test "${opsys}" = "gnu-linux"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9184 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187
9188 int
9189 main ()
9190 {
9191 XOpenDisplay ("foo");
9192 ;
9193 return 0;
9194 }
9195 _ACEOF
9196 if ac_fn_c_try_link "$LINENO"; then :
9197 xlinux_first_failure=no
9198 else
9199 xlinux_first_failure=yes
9200 fi
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 if test "${xlinux_first_failure}" = "yes"; then
9204 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9205 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9206 OLD_CPPFLAGS="$CPPFLAGS"
9207 OLD_LIBS="$LIBS"
9208 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9209 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9210 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9211 LIBS="$LIBS -b i486-linuxaout"
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214
9215 int
9216 main ()
9217 {
9218 XOpenDisplay ("foo");
9219 ;
9220 return 0;
9221 }
9222 _ACEOF
9223 if ac_fn_c_try_link "$LINENO"; then :
9224 xlinux_second_failure=no
9225 else
9226 xlinux_second_failure=yes
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230 if test "${xlinux_second_failure}" = "yes"; then
9231 # If we get the same failure with -b, there is no use adding -b.
9232 # So take it out. This plays safe.
9233 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9234 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9235 CPPFLAGS="$OLD_CPPFLAGS"
9236 LIBS="$OLD_LIBS"
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9239 else
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9241 $as_echo "yes" >&6; }
9242 fi
9243 else
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245 $as_echo "no" >&6; }
9246 fi
9247 fi
9248
9249 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9250 # header files included from there.
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9252 $as_echo_n "checking for Xkb... " >&6; }
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 #include <X11/Xlib.h>
9256 #include <X11/XKBlib.h>
9257 int
9258 main ()
9259 {
9260 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9261 ;
9262 return 0;
9263 }
9264 _ACEOF
9265 if ac_fn_c_try_link "$LINENO"; then :
9266 emacs_xkb=yes
9267 else
9268 emacs_xkb=no
9269 fi
9270 rm -f core conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9273 $as_echo "$emacs_xkb" >&6; }
9274 if test $emacs_xkb = yes; then
9275
9276 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9277
9278 fi
9279
9280 for ac_func in XrmSetDatabase XScreenResourceString \
9281 XScreenNumberOfScreen XSetWMProtocols
9282 do :
9283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9284 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9285 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9286 cat >>confdefs.h <<_ACEOF
9287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9288 _ACEOF
9289
9290 fi
9291 done
9292
9293 fi
9294
9295 if test "${window_system}" = "x11"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9297 $as_echo_n "checking X11 version 6... " >&6; }
9298 if ${emacs_cv_x11_version_6+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #include <X11/Xlib.h>
9304 int
9305 main ()
9306 {
9307 #if XlibSpecificationRelease < 6
9308 fail;
9309 #endif
9310
9311 ;
9312 return 0;
9313 }
9314 _ACEOF
9315 if ac_fn_c_try_link "$LINENO"; then :
9316 emacs_cv_x11_version_6=yes
9317 else
9318 emacs_cv_x11_version_6=no
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 fi
9323
9324 if test $emacs_cv_x11_version_6 = yes; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9326 $as_echo "6 or newer" >&6; }
9327
9328 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9329
9330
9331 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9332
9333 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9334 ## XIM support.
9335 case "$opsys" in
9336 sol2-*) : ;;
9337 *)
9338 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9339
9340 ;;
9341 esac
9342 else
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9344 $as_echo "before 6" >&6; }
9345 fi
9346 fi
9347
9348
9349 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9350 HAVE_RSVG=no
9351 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9352 if test "${with_rsvg}" != "no"; then
9353 RSVG_REQUIRED=2.11.0
9354 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9355
9356
9357 succeeded=no
9358
9359 # Extract the first word of "pkg-config", so it can be a program name with args.
9360 set dummy pkg-config; ac_word=$2
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 case $PKG_CONFIG in
9367 [\\/]* | ?:[\\/]*)
9368 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9369 ;;
9370 *)
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 for as_dir in $PATH
9373 do
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9378 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9381 fi
9382 done
9383 done
9384 IFS=$as_save_IFS
9385
9386 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9387 ;;
9388 esac
9389 fi
9390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9391 if test -n "$PKG_CONFIG"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9393 $as_echo "$PKG_CONFIG" >&6; }
9394 else
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9397 fi
9398
9399
9400
9401 if test "$PKG_CONFIG" = "no" ; then
9402 :
9403 else
9404 PKG_CONFIG_MIN_VERSION=0.9.0
9405 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9407 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9408
9409 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9411 $as_echo "yes" >&6; }
9412 succeeded=yes
9413
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9415 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9416 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9418 $as_echo "$RSVG_CFLAGS" >&6; }
9419
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9421 $as_echo_n "checking RSVG_LIBS... " >&6; }
9422 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9424 $as_echo "$RSVG_LIBS" >&6; }
9425 else
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 $as_echo "no" >&6; }
9428 RSVG_CFLAGS=""
9429 RSVG_LIBS=""
9430 ## If we have a custom action on failure, don't print errors, but
9431 ## do set a variable so people can do so.
9432 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9433
9434 fi
9435
9436
9437
9438 else
9439 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9440 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9441 fi
9442 fi
9443
9444 if test $succeeded = yes; then
9445 HAVE_RSVG=yes
9446 else
9447 :
9448 fi
9449
9450
9451
9452
9453 if test $HAVE_RSVG = yes; then
9454
9455 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9456
9457 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9458 LIBS="$RSVG_LIBS $LIBS"
9459 fi
9460 fi
9461 fi
9462
9463 HAVE_IMAGEMAGICK=no
9464 if test "${HAVE_X11}" = "yes"; then
9465 if test "${with_imagemagick}" != "no"; then
9466 IMAGEMAGICK_MODULE="Wand"
9467
9468 succeeded=no
9469
9470 # Extract the first word of "pkg-config", so it can be a program name with args.
9471 set dummy pkg-config; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 case $PKG_CONFIG in
9478 [\\/]* | ?:[\\/]*)
9479 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9480 ;;
9481 *)
9482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483 for as_dir in $PATH
9484 do
9485 IFS=$as_save_IFS
9486 test -z "$as_dir" && as_dir=.
9487 for ac_exec_ext in '' $ac_executable_extensions; do
9488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9489 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9491 break 2
9492 fi
9493 done
9494 done
9495 IFS=$as_save_IFS
9496
9497 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9498 ;;
9499 esac
9500 fi
9501 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9502 if test -n "$PKG_CONFIG"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9504 $as_echo "$PKG_CONFIG" >&6; }
9505 else
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9508 fi
9509
9510
9511
9512 if test "$PKG_CONFIG" = "no" ; then
9513 :
9514 else
9515 PKG_CONFIG_MIN_VERSION=0.9.0
9516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9518 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9519
9520 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9522 $as_echo "yes" >&6; }
9523 succeeded=yes
9524
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9526 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9527 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9529 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9530
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9532 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9533 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9535 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9536 else
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9539 IMAGEMAGICK_CFLAGS=""
9540 IMAGEMAGICK_LIBS=""
9541 ## If we have a custom action on failure, don't print errors, but
9542 ## do set a variable so people can do so.
9543 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9544
9545 fi
9546
9547
9548
9549 else
9550 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9551 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9552 fi
9553 fi
9554
9555 if test $succeeded = yes; then
9556 HAVE_IMAGEMAGICK=yes
9557 else
9558 :
9559 fi
9560
9561
9562
9563
9564 if test $HAVE_IMAGEMAGICK = yes; then
9565
9566 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9567
9568 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9569 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9570 for ac_func in MagickExportImagePixels
9571 do :
9572 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9573 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
9574 cat >>confdefs.h <<_ACEOF
9575 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9576 _ACEOF
9577
9578 fi
9579 done
9580
9581 fi
9582 fi
9583 fi
9584
9585
9586 HAVE_GTK=no
9587 if test "${with_gtk3}" = "yes"; then
9588 GLIB_REQUIRED=2.6
9589 GTK_REQUIRED=2.90
9590 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9591
9592
9593 succeeded=no
9594
9595 # Extract the first word of "pkg-config", so it can be a program name with args.
9596 set dummy pkg-config; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 case $PKG_CONFIG in
9603 [\\/]* | ?:[\\/]*)
9604 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9605 ;;
9606 *)
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in $PATH
9609 do
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9614 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9617 fi
9618 done
9619 done
9620 IFS=$as_save_IFS
9621
9622 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9623 ;;
9624 esac
9625 fi
9626 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9627 if test -n "$PKG_CONFIG"; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9629 $as_echo "$PKG_CONFIG" >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9633 fi
9634
9635
9636
9637 if test "$PKG_CONFIG" = "no" ; then
9638 pkg_check_gtk=no
9639 else
9640 PKG_CONFIG_MIN_VERSION=0.9.0
9641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9643 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9644
9645 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9647 $as_echo "yes" >&6; }
9648 succeeded=yes
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9651 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9652 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9654 $as_echo "$GTK_CFLAGS" >&6; }
9655
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9657 $as_echo_n "checking GTK_LIBS... " >&6; }
9658 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9660 $as_echo "$GTK_LIBS" >&6; }
9661 else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9664 GTK_CFLAGS=""
9665 GTK_LIBS=""
9666 ## If we have a custom action on failure, don't print errors, but
9667 ## do set a variable so people can do so.
9668 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9669
9670 fi
9671
9672
9673
9674 else
9675 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9676 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9677 fi
9678 fi
9679
9680 if test $succeeded = yes; then
9681 pkg_check_gtk=yes
9682 else
9683 pkg_check_gtk=no
9684 fi
9685
9686 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9687 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9688 fi
9689 fi
9690
9691 if test "$pkg_check_gtk" != "yes"; then
9692 HAVE_GTK=no
9693 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9694 GLIB_REQUIRED=2.6
9695 GTK_REQUIRED=2.6
9696 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9697
9698
9699 succeeded=no
9700
9701 # Extract the first word of "pkg-config", so it can be a program name with args.
9702 set dummy pkg-config; ac_word=$2
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704 $as_echo_n "checking for $ac_word... " >&6; }
9705 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 case $PKG_CONFIG in
9709 [\\/]* | ?:[\\/]*)
9710 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9711 ;;
9712 *)
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9715 do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9723 fi
9724 done
9725 done
9726 IFS=$as_save_IFS
9727
9728 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9729 ;;
9730 esac
9731 fi
9732 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9733 if test -n "$PKG_CONFIG"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9735 $as_echo "$PKG_CONFIG" >&6; }
9736 else
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9739 fi
9740
9741
9742
9743 if test "$PKG_CONFIG" = "no" ; then
9744 pkg_check_gtk=no
9745 else
9746 PKG_CONFIG_MIN_VERSION=0.9.0
9747 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9749 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9750
9751 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9753 $as_echo "yes" >&6; }
9754 succeeded=yes
9755
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9757 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9758 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9760 $as_echo "$GTK_CFLAGS" >&6; }
9761
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9763 $as_echo_n "checking GTK_LIBS... " >&6; }
9764 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9766 $as_echo "$GTK_LIBS" >&6; }
9767 else
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 $as_echo "no" >&6; }
9770 GTK_CFLAGS=""
9771 GTK_LIBS=""
9772 ## If we have a custom action on failure, don't print errors, but
9773 ## do set a variable so people can do so.
9774 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9775
9776 fi
9777
9778
9779
9780 else
9781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9783 fi
9784 fi
9785
9786 if test $succeeded = yes; then
9787 pkg_check_gtk=yes
9788 else
9789 pkg_check_gtk=no
9790 fi
9791
9792 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9793 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9794 fi
9795 fi
9796 fi
9797
9798 GTK_OBJ=
9799 if test x"$pkg_check_gtk" = xyes; then
9800
9801
9802
9803 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9804 CFLAGS="$CFLAGS $GTK_CFLAGS"
9805 LIBS="$GTK_LIBS $LIBS"
9806 GTK_COMPILES=no
9807 for ac_func in gtk_main
9808 do :
9809 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
9810 if test "x$ac_cv_func_gtk_main" = xyes; then :
9811 cat >>confdefs.h <<_ACEOF
9812 #define HAVE_GTK_MAIN 1
9813 _ACEOF
9814 GTK_COMPILES=yes
9815 fi
9816 done
9817
9818 if test "${GTK_COMPILES}" != "yes"; then
9819 if test "$USE_X_TOOLKIT" != "maybe"; then
9820 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
9821 fi
9822 else
9823 HAVE_GTK=yes
9824
9825 $as_echo "#define USE_GTK 1" >>confdefs.h
9826
9827 GTK_OBJ=gtkutil.o
9828 USE_X_TOOLKIT=none
9829 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9830 :
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9833 closing open displays. This is no problem if you just use
9834 one display, but if you use more than one and close one of them
9835 Emacs may crash." >&5
9836 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9837 closing open displays. This is no problem if you just use
9838 one display, but if you use more than one and close one of them
9839 Emacs may crash." >&2;}
9840 sleep 3
9841 fi
9842 fi
9843
9844 fi
9845
9846
9847
9848 if test "${HAVE_GTK}" = "yes"; then
9849
9850 if test "$with_toolkit_scroll_bars" != no; then
9851 with_toolkit_scroll_bars=yes
9852 fi
9853
9854 HAVE_GTK_FILE_SELECTION=no
9855 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9856 #include <gtk/gtk.h>
9857 "
9858 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
9859 HAVE_GTK_FILE_SELECTION=yes
9860 else
9861 HAVE_GTK_FILE_SELECTION=no
9862 fi
9863
9864 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9865 for ac_func in gtk_file_selection_new
9866 do :
9867 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9868 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
9869 cat >>confdefs.h <<_ACEOF
9870 #define HAVE_GTK_FILE_SELECTION_NEW 1
9871 _ACEOF
9872
9873 fi
9874 done
9875
9876 fi
9877
9878 HAVE_GTK_AND_PTHREAD=no
9879 for ac_header in pthread.h
9880 do :
9881 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9882 if test "x$ac_cv_header_pthread_h" = xyes; then :
9883 cat >>confdefs.h <<_ACEOF
9884 #define HAVE_PTHREAD_H 1
9885 _ACEOF
9886
9887 fi
9888
9889 done
9890
9891 if test "$ac_cv_header_pthread_h"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9893 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9894 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 ac_check_lib_save_LIBS=$LIBS
9898 LIBS="-lpthread $LIBS"
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9901
9902 /* Override any GCC internal prototype to avoid an error.
9903 Use char because int might match the return type of a GCC
9904 builtin and then its argument prototype would still apply. */
9905 #ifdef __cplusplus
9906 extern "C"
9907 #endif
9908 char pthread_self ();
9909 int
9910 main ()
9911 {
9912 return pthread_self ();
9913 ;
9914 return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_link "$LINENO"; then :
9918 ac_cv_lib_pthread_pthread_self=yes
9919 else
9920 ac_cv_lib_pthread_pthread_self=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9925 fi
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9927 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9928 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
9929 HAVE_GTK_AND_PTHREAD=yes
9930 fi
9931
9932 fi
9933 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9934 case "${canonical}" in
9935 *-hpux*) ;;
9936 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9937 esac
9938
9939 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9940
9941 fi
9942
9943 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9944 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9945 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9946 gtk_orientable_set_orientation
9947 do :
9948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9950 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9951 cat >>confdefs.h <<_ACEOF
9952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9953 _ACEOF
9954
9955 fi
9956 done
9957
9958
9959 fi
9960
9961 HAVE_DBUS=no
9962 DBUS_OBJ=
9963 if test "${with_dbus}" = "yes"; then
9964
9965 succeeded=no
9966
9967 # Extract the first word of "pkg-config", so it can be a program name with args.
9968 set dummy pkg-config; ac_word=$2
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970 $as_echo_n "checking for $ac_word... " >&6; }
9971 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 case $PKG_CONFIG in
9975 [\\/]* | ?:[\\/]*)
9976 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9977 ;;
9978 *)
9979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 for as_dir in $PATH
9981 do
9982 IFS=$as_save_IFS
9983 test -z "$as_dir" && as_dir=.
9984 for ac_exec_ext in '' $ac_executable_extensions; do
9985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9986 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 break 2
9989 fi
9990 done
9991 done
9992 IFS=$as_save_IFS
9993
9994 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9995 ;;
9996 esac
9997 fi
9998 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9999 if test -n "$PKG_CONFIG"; then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10001 $as_echo "$PKG_CONFIG" >&6; }
10002 else
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10005 fi
10006
10007
10008
10009 if test "$PKG_CONFIG" = "no" ; then
10010 HAVE_DBUS=no
10011 else
10012 PKG_CONFIG_MIN_VERSION=0.9.0
10013 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10015 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10016
10017 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10019 $as_echo "yes" >&6; }
10020 succeeded=yes
10021
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10023 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10024 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10026 $as_echo "$DBUS_CFLAGS" >&6; }
10027
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10029 $as_echo_n "checking DBUS_LIBS... " >&6; }
10030 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10032 $as_echo "$DBUS_LIBS" >&6; }
10033 else
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10036 DBUS_CFLAGS=""
10037 DBUS_LIBS=""
10038 ## If we have a custom action on failure, don't print errors, but
10039 ## do set a variable so people can do so.
10040 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10041
10042 fi
10043
10044
10045
10046 else
10047 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10048 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10049 fi
10050 fi
10051
10052 if test $succeeded = yes; then
10053 HAVE_DBUS=yes
10054 else
10055 HAVE_DBUS=no
10056 fi
10057
10058 if test "$HAVE_DBUS" = yes; then
10059 LIBS="$LIBS $DBUS_LIBS"
10060
10061 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10062
10063 for ac_func in dbus_watch_get_unix_fd
10064 do :
10065 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10066 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10067 cat >>confdefs.h <<_ACEOF
10068 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10069 _ACEOF
10070
10071 fi
10072 done
10073
10074 DBUS_OBJ=dbusbind.o
10075 fi
10076 fi
10077
10078
10079 HAVE_GCONF=no
10080 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10081
10082 succeeded=no
10083
10084 # Extract the first word of "pkg-config", so it can be a program name with args.
10085 set dummy pkg-config; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 case $PKG_CONFIG in
10092 [\\/]* | ?:[\\/]*)
10093 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10094 ;;
10095 *)
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10106 fi
10107 done
10108 done
10109 IFS=$as_save_IFS
10110
10111 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10112 ;;
10113 esac
10114 fi
10115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10116 if test -n "$PKG_CONFIG"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10118 $as_echo "$PKG_CONFIG" >&6; }
10119 else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10122 fi
10123
10124
10125
10126 if test "$PKG_CONFIG" = "no" ; then
10127 HAVE_GCONF=no
10128 else
10129 PKG_CONFIG_MIN_VERSION=0.9.0
10130 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10132 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10133
10134 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10136 $as_echo "yes" >&6; }
10137 succeeded=yes
10138
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10140 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10141 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10143 $as_echo "$GCONF_CFLAGS" >&6; }
10144
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10146 $as_echo_n "checking GCONF_LIBS... " >&6; }
10147 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10149 $as_echo "$GCONF_LIBS" >&6; }
10150 else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10153 GCONF_CFLAGS=""
10154 GCONF_LIBS=""
10155 ## If we have a custom action on failure, don't print errors, but
10156 ## do set a variable so people can do so.
10157 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10158
10159 fi
10160
10161
10162
10163 else
10164 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10165 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10166 fi
10167 fi
10168
10169 if test $succeeded = yes; then
10170 HAVE_GCONF=yes
10171 else
10172 HAVE_GCONF=no
10173 fi
10174
10175 if test "$HAVE_GCONF" = yes; then
10176
10177 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10178
10179 for ac_func in g_type_init
10180 do :
10181 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10182 if test "x$ac_cv_func_g_type_init" = xyes; then :
10183 cat >>confdefs.h <<_ACEOF
10184 #define HAVE_G_TYPE_INIT 1
10185 _ACEOF
10186
10187 fi
10188 done
10189
10190 fi
10191 fi
10192
10193 HAVE_LIBSELINUX=no
10194 LIBSELINUX_LIBS=
10195 if test "${with_selinux}" = "yes"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10197 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10198 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 ac_check_lib_save_LIBS=$LIBS
10202 LIBS="-lselinux $LIBS"
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10209 #ifdef __cplusplus
10210 extern "C"
10211 #endif
10212 char lgetfilecon ();
10213 int
10214 main ()
10215 {
10216 return lgetfilecon ();
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"; then :
10222 ac_cv_lib_selinux_lgetfilecon=yes
10223 else
10224 ac_cv_lib_selinux_lgetfilecon=no
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10231 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10232 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10233 HAVE_LIBSELINUX=yes
10234 else
10235 HAVE_LIBSELINUX=no
10236 fi
10237
10238 if test "$HAVE_LIBSELINUX" = yes; then
10239
10240 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10241
10242 LIBSELINUX_LIBS=-lselinux
10243 fi
10244 fi
10245
10246
10247 HAVE_GNUTLS=no
10248 if test "${with_gnutls}" = "yes" ; then
10249
10250 succeeded=no
10251
10252 # Extract the first word of "pkg-config", so it can be a program name with args.
10253 set dummy pkg-config; ac_word=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 case $PKG_CONFIG in
10260 [\\/]* | ?:[\\/]*)
10261 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10262 ;;
10263 *)
10264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265 for as_dir in $PATH
10266 do
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10271 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 break 2
10274 fi
10275 done
10276 done
10277 IFS=$as_save_IFS
10278
10279 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10280 ;;
10281 esac
10282 fi
10283 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10284 if test -n "$PKG_CONFIG"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10286 $as_echo "$PKG_CONFIG" >&6; }
10287 else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10290 fi
10291
10292
10293
10294 if test "$PKG_CONFIG" = "no" ; then
10295 HAVE_GNUTLS=no
10296 else
10297 PKG_CONFIG_MIN_VERSION=0.9.0
10298 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10300 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10301
10302 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10304 $as_echo "yes" >&6; }
10305 succeeded=yes
10306
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10308 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10309 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10311 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10314 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10315 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10317 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10318 else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10321 LIBGNUTLS_CFLAGS=""
10322 LIBGNUTLS_LIBS=""
10323 ## If we have a custom action on failure, don't print errors, but
10324 ## do set a variable so people can do so.
10325 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10326
10327 fi
10328
10329
10330
10331 else
10332 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10333 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10334 fi
10335 fi
10336
10337 if test $succeeded = yes; then
10338 HAVE_GNUTLS=yes
10339 else
10340 HAVE_GNUTLS=no
10341 fi
10342
10343 if test "${HAVE_GNUTLS}" = "yes"; then
10344
10345 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10346
10347 fi
10348 fi
10349
10350
10351
10352 HAVE_XAW3D=no
10353 LUCID_LIBW=
10354 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10355 if test "$with_xaw3d" != no; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10357 $as_echo_n "checking for xaw3d... " >&6; }
10358 if ${emacs_cv_xaw3d+:} false; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363
10364 #include <X11/Intrinsic.h>
10365 #include <X11/Xaw3d/Simple.h>
10366 int
10367 main ()
10368 {
10369
10370 ;
10371 return 0;
10372 }
10373 _ACEOF
10374 if ac_fn_c_try_link "$LINENO"; then :
10375 emacs_cv_xaw3d=yes
10376 else
10377 emacs_cv_xaw3d=no
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381 fi
10382
10383 else
10384 emacs_cv_xaw3d=no
10385 fi
10386 if test $emacs_cv_xaw3d = yes; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10388 $as_echo "yes; using Lucid toolkit" >&6; }
10389 USE_X_TOOLKIT=LUCID
10390 HAVE_XAW3D=yes
10391 LUCID_LIBW=-lXaw3d
10392
10393 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10394
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10399 $as_echo_n "checking for libXaw... " >&6; }
10400 if ${emacs_cv_xaw+:} false; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405
10406 #include <X11/Intrinsic.h>
10407 #include <X11/Xaw/Simple.h>
10408 int
10409 main ()
10410 {
10411
10412 ;
10413 return 0;
10414 }
10415 _ACEOF
10416 if ac_fn_c_try_link "$LINENO"; then :
10417 emacs_cv_xaw=yes
10418 else
10419 emacs_cv_xaw=no
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10423 fi
10424
10425 if test $emacs_cv_xaw = yes; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10427 $as_echo "yes; using Lucid toolkit" >&6; }
10428 USE_X_TOOLKIT=LUCID
10429 LUCID_LIBW=-lXaw
10430 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10431 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10432 else
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10434 $as_echo "no; do not use toolkit by default" >&6; }
10435 USE_X_TOOLKIT=none
10436 fi
10437 fi
10438 fi
10439
10440 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10441
10442 LIBXTR6=
10443 if test "${USE_X_TOOLKIT}" != "none"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10445 $as_echo_n "checking X11 toolkit version... " >&6; }
10446 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 #include <X11/Intrinsic.h>
10452 int
10453 main ()
10454 {
10455 #if XtSpecificationRelease < 6
10456 fail;
10457 #endif
10458
10459 ;
10460 return 0;
10461 }
10462 _ACEOF
10463 if ac_fn_c_try_link "$LINENO"; then :
10464 emacs_cv_x11_toolkit_version_6=yes
10465 else
10466 emacs_cv_x11_toolkit_version_6=no
10467 fi
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470 fi
10471
10472 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10473 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10475 $as_echo "6 or newer" >&6; }
10476
10477 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10478
10479 LIBXTR6="-lSM -lICE"
10480 case "$opsys" in
10481 ## Use libw.a along with X11R6 Xt.
10482 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10483 esac
10484 else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10486 $as_echo "before 6" >&6; }
10487 fi
10488
10489 OLDLIBS="$LIBS"
10490 if test x$HAVE_X11XTR6 = xyes; then
10491 LIBS="-lXt -lSM -lICE $LIBS"
10492 else
10493 LIBS="-lXt $LIBS"
10494 fi
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10496 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10497 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 ac_check_lib_save_LIBS=$LIBS
10501 LIBS="-lXmu $LIBS"
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504
10505 /* Override any GCC internal prototype to avoid an error.
10506 Use char because int might match the return type of a GCC
10507 builtin and then its argument prototype would still apply. */
10508 #ifdef __cplusplus
10509 extern "C"
10510 #endif
10511 char XmuConvertStandardSelection ();
10512 int
10513 main ()
10514 {
10515 return XmuConvertStandardSelection ();
10516 ;
10517 return 0;
10518 }
10519 _ACEOF
10520 if ac_fn_c_try_link "$LINENO"; then :
10521 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10522 else
10523 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10524 fi
10525 rm -f core conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10527 LIBS=$ac_check_lib_save_LIBS
10528 fi
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10530 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10531 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
10532 cat >>confdefs.h <<_ACEOF
10533 #define HAVE_LIBXMU 1
10534 _ACEOF
10535
10536 LIBS="-lXmu $LIBS"
10537
10538 fi
10539
10540 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10541 fi
10542
10543
10544 LIBXMU=-lXmu
10545 case $opsys in
10546 ## These systems don't supply Xmu.
10547 hpux* | aix4-2 )
10548 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10549 ;;
10550 esac
10551
10552
10553 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10554 if test "${HAVE_X11}" = "yes"; then
10555 if test "${USE_X_TOOLKIT}" != "none"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10557 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10558 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 ac_check_lib_save_LIBS=$LIBS
10562 LIBS="-lXext $LIBS"
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565
10566 /* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10569 #ifdef __cplusplus
10570 extern "C"
10571 #endif
10572 char XShapeQueryExtension ();
10573 int
10574 main ()
10575 {
10576 return XShapeQueryExtension ();
10577 ;
10578 return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582 ac_cv_lib_Xext_XShapeQueryExtension=yes
10583 else
10584 ac_cv_lib_Xext_XShapeQueryExtension=no
10585 fi
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10589 fi
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10591 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10592 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10593 cat >>confdefs.h <<_ACEOF
10594 #define HAVE_LIBXEXT 1
10595 _ACEOF
10596
10597 LIBS="-lXext $LIBS"
10598
10599 fi
10600
10601 fi
10602 fi
10603
10604 LIBXP=
10605 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10607 $as_echo_n "checking for Motif version 2.1... " >&6; }
10608 if ${emacs_cv_motif_version_2_1+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613 #include <Xm/Xm.h>
10614 int
10615 main ()
10616 {
10617 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10618 int x = 5;
10619 #else
10620 Motif version prior to 2.1.
10621 #endif
10622 ;
10623 return 0;
10624 }
10625 _ACEOF
10626 if ac_fn_c_try_compile "$LINENO"; then :
10627 emacs_cv_motif_version_2_1=yes
10628 else
10629 emacs_cv_motif_version_2_1=no
10630 fi
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10634 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10635 if test $emacs_cv_motif_version_2_1 = yes; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10637 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10638 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lXp $LIBS"
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645
10646 /* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 char XpCreateContext ();
10653 int
10654 main ()
10655 {
10656 return XpCreateContext ();
10657 ;
10658 return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662 ac_cv_lib_Xp_XpCreateContext=yes
10663 else
10664 ac_cv_lib_Xp_XpCreateContext=no
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10669 fi
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10671 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10672 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
10673 LIBXP=-lXp
10674 fi
10675
10676 else
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10678 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10679 if ${emacs_cv_lesstif+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 # We put this in CFLAGS temporarily to precede other -I options
10683 # that might be in CFLAGS temporarily.
10684 # We put this in CPPFLAGS where it precedes the other -I options.
10685 OLD_CPPFLAGS=$CPPFLAGS
10686 OLD_CFLAGS=$CFLAGS
10687 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10688 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10692 int
10693 main ()
10694 {
10695 int x = 5;
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_compile "$LINENO"; then :
10701 emacs_cv_lesstif=yes
10702 else
10703 emacs_cv_lesstif=no
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 fi
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10708 $as_echo "$emacs_cv_lesstif" >&6; }
10709 if test $emacs_cv_lesstif = yes; then
10710 # Make sure this -I option remains in CPPFLAGS after it is set
10711 # back to REAL_CPPFLAGS.
10712 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10713 # have those other -I options anyway. Ultimately, having this
10714 # directory ultimately in CPPFLAGS will be enough.
10715 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10716 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10717 else
10718 CFLAGS=$OLD_CFLAGS
10719 CPPFLAGS=$OLD_CPPFLAGS
10720 fi
10721 fi
10722 fi
10723
10724
10725 USE_TOOLKIT_SCROLL_BARS=no
10726 if test "${with_toolkit_scroll_bars}" != "no"; then
10727 if test "${USE_X_TOOLKIT}" != "none"; then
10728 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10729 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10730
10731 HAVE_XAW3D=no
10732 USE_TOOLKIT_SCROLL_BARS=yes
10733 elif test "${HAVE_XAW3D}" = "yes"; then
10734 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10735
10736 USE_TOOLKIT_SCROLL_BARS=yes
10737 fi
10738 elif test "${HAVE_GTK}" = "yes"; then
10739 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10740
10741 USE_TOOLKIT_SCROLL_BARS=yes
10742 elif test "${HAVE_NS}" = "yes"; then
10743 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10744
10745 USE_TOOLKIT_SCROLL_BARS=yes
10746 fi
10747 fi
10748
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10751
10752 #include <X11/Xlib.h>
10753 #include <X11/Xresource.h>
10754 int
10755 main ()
10756 {
10757 XIMProc callback;
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"; then :
10763 HAVE_XIM=yes
10764
10765 $as_echo "#define HAVE_XIM 1" >>confdefs.h
10766
10767 else
10768 HAVE_XIM=no
10769 fi
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771
10772
10773 if test "${with_xim}" != "no"; then
10774
10775 $as_echo "#define USE_XIM 1" >>confdefs.h
10776
10777 fi
10778
10779
10780 if test "${HAVE_XIM}" != "no"; then
10781 late_CFLAGS=$CFLAGS
10782 if test "$GCC" = yes; then
10783 CFLAGS="$CFLAGS --pedantic-errors"
10784 fi
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10787
10788 #include <X11/Xlib.h>
10789 #include <X11/Xresource.h>
10790 int
10791 main ()
10792 {
10793 Display *display;
10794 XrmDatabase db;
10795 char *res_name;
10796 char *res_class;
10797 XIMProc callback;
10798 XPointer *client_data;
10799 #ifndef __GNUC__
10800 /* If we're not using GCC, it's probably not XFree86, and this is
10801 probably right, but we can't use something like --pedantic-errors. */
10802 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10803 char*, XIMProc, XPointer*);
10804 #endif
10805 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10806 client_data);
10807 ;
10808 return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 emacs_cv_arg6_star=yes
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 if test "$emacs_cv_arg6_star" = yes; then
10816 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
10817
10818 else
10819 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
10820
10821 fi
10822 CFLAGS=$late_CFLAGS
10823 fi
10824
10825 ### Start of font-backend (under any platform) section.
10826 # (nothing here yet -- this is a placeholder)
10827 ### End of font-backend (under any platform) section.
10828
10829 ### Start of font-backend (under X11) section.
10830 if test "${HAVE_X11}" = "yes"; then
10831
10832 succeeded=no
10833
10834 # Extract the first word of "pkg-config", so it can be a program name with args.
10835 set dummy pkg-config; ac_word=$2
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837 $as_echo_n "checking for $ac_word... " >&6; }
10838 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 case $PKG_CONFIG in
10842 [\\/]* | ?:[\\/]*)
10843 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10844 ;;
10845 *)
10846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847 for as_dir in $PATH
10848 do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10853 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10856 fi
10857 done
10858 done
10859 IFS=$as_save_IFS
10860
10861 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10862 ;;
10863 esac
10864 fi
10865 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10866 if test -n "$PKG_CONFIG"; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10868 $as_echo "$PKG_CONFIG" >&6; }
10869 else
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10872 fi
10873
10874
10875
10876 if test "$PKG_CONFIG" = "no" ; then
10877 HAVE_FC=no
10878 else
10879 PKG_CONFIG_MIN_VERSION=0.9.0
10880 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10882 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10883
10884 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10886 $as_echo "yes" >&6; }
10887 succeeded=yes
10888
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10890 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10891 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10893 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10894
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10896 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10897 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10899 $as_echo "$FONTCONFIG_LIBS" >&6; }
10900 else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902 $as_echo "no" >&6; }
10903 FONTCONFIG_CFLAGS=""
10904 FONTCONFIG_LIBS=""
10905 ## If we have a custom action on failure, don't print errors, but
10906 ## do set a variable so people can do so.
10907 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10908
10909 fi
10910
10911
10912
10913 else
10914 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10915 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10916 fi
10917 fi
10918
10919 if test $succeeded = yes; then
10920 HAVE_FC=yes
10921 else
10922 HAVE_FC=no
10923 fi
10924
10925
10926 ## Use -lXft if available, unless `--with-xft=no'.
10927 HAVE_XFT=maybe
10928 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10929 with_xft="no";
10930 fi
10931 if test "x${with_xft}" != "xno"; then
10932
10933
10934 succeeded=no
10935
10936 # Extract the first word of "pkg-config", so it can be a program name with args.
10937 set dummy pkg-config; ac_word=$2
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10939 $as_echo_n "checking for $ac_word... " >&6; }
10940 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 case $PKG_CONFIG in
10944 [\\/]* | ?:[\\/]*)
10945 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10946 ;;
10947 *)
10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10950 do
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
10954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10955 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10958 fi
10959 done
10960 done
10961 IFS=$as_save_IFS
10962
10963 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10964 ;;
10965 esac
10966 fi
10967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10968 if test -n "$PKG_CONFIG"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10970 $as_echo "$PKG_CONFIG" >&6; }
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10974 fi
10975
10976
10977
10978 if test "$PKG_CONFIG" = "no" ; then
10979 HAVE_XFT=no
10980 else
10981 PKG_CONFIG_MIN_VERSION=0.9.0
10982 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10984 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10985
10986 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10988 $as_echo "yes" >&6; }
10989 succeeded=yes
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10992 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10993 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10995 $as_echo "$XFT_CFLAGS" >&6; }
10996
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10998 $as_echo_n "checking XFT_LIBS... " >&6; }
10999 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11001 $as_echo "$XFT_LIBS" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 XFT_CFLAGS=""
11006 XFT_LIBS=""
11007 ## If we have a custom action on failure, don't print errors, but
11008 ## do set a variable so people can do so.
11009 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11010
11011 fi
11012
11013
11014
11015 else
11016 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11017 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11018 fi
11019 fi
11020
11021 if test $succeeded = yes; then
11022 :
11023 else
11024 HAVE_XFT=no
11025 fi
11026
11027 ## Because xftfont.c uses XRenderQueryExtension, we also
11028 ## need to link to -lXrender.
11029 HAVE_XRENDER=no
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11031 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11032 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 ac_check_lib_save_LIBS=$LIBS
11036 LIBS="-lXrender $LIBS"
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11039
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 char XRenderQueryExtension ();
11047 int
11048 main ()
11049 {
11050 return XRenderQueryExtension ();
11051 ;
11052 return 0;
11053 }
11054 _ACEOF
11055 if ac_fn_c_try_link "$LINENO"; then :
11056 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11057 else
11058 ac_cv_lib_Xrender_XRenderQueryExtension=no
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11063 fi
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11065 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11066 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11067 HAVE_XRENDER=yes
11068 fi
11069
11070 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11071 OLD_CPPFLAGS="$CPPFLAGS"
11072 OLD_CFLAGS="$CFLAGS"
11073 OLD_LIBS="$LIBS"
11074 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11075 CFLAGS="$CFLAGS $XFT_CFLAGS"
11076 XFT_LIBS="-lXrender $XFT_LIBS"
11077 LIBS="$XFT_LIBS $LIBS"
11078 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11079 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11081 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11082 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 ac_check_lib_save_LIBS=$LIBS
11086 LIBS="-lXft $XFT_LIBS $LIBS"
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11089
11090 /* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
11093 #ifdef __cplusplus
11094 extern "C"
11095 #endif
11096 char XftFontOpen ();
11097 int
11098 main ()
11099 {
11100 return XftFontOpen ();
11101 ;
11102 return 0;
11103 }
11104 _ACEOF
11105 if ac_fn_c_try_link "$LINENO"; then :
11106 ac_cv_lib_Xft_XftFontOpen=yes
11107 else
11108 ac_cv_lib_Xft_XftFontOpen=no
11109 fi
11110 rm -f core conftest.err conftest.$ac_objext \
11111 conftest$ac_exeext conftest.$ac_ext
11112 LIBS=$ac_check_lib_save_LIBS
11113 fi
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11115 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11116 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11117 HAVE_XFT=yes
11118 fi
11119
11120 fi
11121
11122
11123
11124 if test "${HAVE_XFT}" = "yes"; then
11125
11126 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11127
11128
11129 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11130 else
11131 CPPFLAGS="$OLD_CPPFLAGS"
11132 CFLAGS="$OLD_CFLAGS"
11133 LIBS="$OLD_LIBS"
11134 fi # "${HAVE_XFT}" = "yes"
11135 fi # "$HAVE_XFT" != no
11136 fi # "x${with_xft}" != "xno"
11137
11138 if test "$HAVE_XFT" != "yes"; then
11139 HAVE_XFT=no
11140 fi
11141
11142
11143 HAVE_FREETYPE=no
11144 ## We used to allow building with FreeType and without Xft.
11145 ## However, the ftx font backend driver is not in good shape.
11146 if test "${HAVE_XFT}" = "yes"; then
11147 HAVE_FREETYPE=yes
11148 FONTCONFIG_CFLAGS=
11149 FONTCONFIG_LIBS=
11150 fi
11151
11152 HAVE_LIBOTF=no
11153 if test "${HAVE_FREETYPE}" = "yes"; then
11154
11155 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11156
11157 if test "${with_libotf}" != "no"; then
11158
11159 succeeded=no
11160
11161 # Extract the first word of "pkg-config", so it can be a program name with args.
11162 set dummy pkg-config; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 case $PKG_CONFIG in
11169 [\\/]* | ?:[\\/]*)
11170 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11171 ;;
11172 *)
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11175 do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11180 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184 done
11185 done
11186 IFS=$as_save_IFS
11187
11188 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11189 ;;
11190 esac
11191 fi
11192 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11193 if test -n "$PKG_CONFIG"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11195 $as_echo "$PKG_CONFIG" >&6; }
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199 fi
11200
11201
11202
11203 if test "$PKG_CONFIG" = "no" ; then
11204 HAVE_LIBOTF=no
11205 else
11206 PKG_CONFIG_MIN_VERSION=0.9.0
11207 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11209 $as_echo_n "checking for libotf... " >&6; }
11210
11211 if $PKG_CONFIG --exists "libotf" 2>&5; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11213 $as_echo "yes" >&6; }
11214 succeeded=yes
11215
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11217 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11218 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11220 $as_echo "$LIBOTF_CFLAGS" >&6; }
11221
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11223 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11224 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11226 $as_echo "$LIBOTF_LIBS" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11230 LIBOTF_CFLAGS=""
11231 LIBOTF_LIBS=""
11232 ## If we have a custom action on failure, don't print errors, but
11233 ## do set a variable so people can do so.
11234 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11235
11236 fi
11237
11238
11239
11240 else
11241 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11242 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11243 fi
11244 fi
11245
11246 if test $succeeded = yes; then
11247 HAVE_LIBOTF=yes
11248 else
11249 HAVE_LIBOTF=no
11250 fi
11251
11252 if test "$HAVE_LIBOTF" = "yes"; then
11253
11254 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11255
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11257 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11258 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 ac_check_lib_save_LIBS=$LIBS
11262 LIBS="-lotf $LIBS"
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11265
11266 /* Override any GCC internal prototype to avoid an error.
11267 Use char because int might match the return type of a GCC
11268 builtin and then its argument prototype would still apply. */
11269 #ifdef __cplusplus
11270 extern "C"
11271 #endif
11272 char OTF_get_variation_glyphs ();
11273 int
11274 main ()
11275 {
11276 return OTF_get_variation_glyphs ();
11277 ;
11278 return 0;
11279 }
11280 _ACEOF
11281 if ac_fn_c_try_link "$LINENO"; then :
11282 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11283 else
11284 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11285 fi
11286 rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 LIBS=$ac_check_lib_save_LIBS
11289 fi
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11291 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11292 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11293 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11294 else
11295 HAVE_OTF_GET_VARIATION_GLYPHS=no
11296 fi
11297
11298 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11299
11300 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11301
11302 fi
11303 fi
11304 fi
11305 fi
11306
11307 HAVE_M17N_FLT=no
11308 if test "${HAVE_LIBOTF}" = yes; then
11309 if test "${with_m17n_flt}" != "no"; then
11310
11311 succeeded=no
11312
11313 # Extract the first word of "pkg-config", so it can be a program name with args.
11314 set dummy pkg-config; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 case $PKG_CONFIG in
11321 [\\/]* | ?:[\\/]*)
11322 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11323 ;;
11324 *)
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11327 do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11332 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 break 2
11335 fi
11336 done
11337 done
11338 IFS=$as_save_IFS
11339
11340 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11341 ;;
11342 esac
11343 fi
11344 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11345 if test -n "$PKG_CONFIG"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11347 $as_echo "$PKG_CONFIG" >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11351 fi
11352
11353
11354
11355 if test "$PKG_CONFIG" = "no" ; then
11356 HAVE_M17N_FLT=no
11357 else
11358 PKG_CONFIG_MIN_VERSION=0.9.0
11359 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11361 $as_echo_n "checking for m17n-flt... " >&6; }
11362
11363 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11365 $as_echo "yes" >&6; }
11366 succeeded=yes
11367
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11369 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11370 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11372 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11373
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11375 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11376 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11378 $as_echo "$M17N_FLT_LIBS" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11382 M17N_FLT_CFLAGS=""
11383 M17N_FLT_LIBS=""
11384 ## If we have a custom action on failure, don't print errors, but
11385 ## do set a variable so people can do so.
11386 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11387
11388 fi
11389
11390
11391
11392 else
11393 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11394 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11395 fi
11396 fi
11397
11398 if test $succeeded = yes; then
11399 HAVE_M17N_FLT=yes
11400 else
11401 HAVE_M17N_FLT=no
11402 fi
11403
11404 if test "$HAVE_M17N_FLT" = "yes"; then
11405
11406 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11407
11408 fi
11409 fi
11410 fi
11411 else
11412 HAVE_XFT=no
11413 HAVE_FREETYPE=no
11414 HAVE_LIBOTF=no
11415 HAVE_M17N_FLT=no
11416 fi
11417
11418 ### End of font-backend (under X11) section.
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429 ### Use -lXpm if available, unless `--with-xpm=no'.
11430 HAVE_XPM=no
11431 LIBXPM=
11432 if test "${HAVE_X11}" = "yes"; then
11433 if test "${with_xpm}" != "no"; then
11434 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11435 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11437 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11438 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-lXpm -lX11 $LIBS"
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11449 #ifdef __cplusplus
11450 extern "C"
11451 #endif
11452 char XpmReadFileToPixmap ();
11453 int
11454 main ()
11455 {
11456 return XpmReadFileToPixmap ();
11457 ;
11458 return 0;
11459 }
11460 _ACEOF
11461 if ac_fn_c_try_link "$LINENO"; then :
11462 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11463 else
11464 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11465 fi
11466 rm -f core conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
11469 fi
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11471 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11472 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11473 HAVE_XPM=yes
11474 fi
11475
11476 fi
11477
11478
11479 if test "${HAVE_XPM}" = "yes"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11481 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11484 #include "X11/xpm.h"
11485 #ifndef XpmReturnAllocPixels
11486 no_return_alloc_pixels
11487 #endif
11488
11489 _ACEOF
11490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11492 HAVE_XPM=no
11493 else
11494 HAVE_XPM=yes
11495 fi
11496 rm -f conftest*
11497
11498
11499 if test "${HAVE_XPM}" = "yes"; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11501 $as_echo "yes" >&6; }
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505 fi
11506 fi
11507 fi
11508
11509 if test "${HAVE_XPM}" = "yes"; then
11510
11511 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11512
11513 LIBXPM=-lXpm
11514 fi
11515 fi
11516
11517
11518 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11519 HAVE_JPEG=no
11520 LIBJPEG=
11521 if test "${HAVE_X11}" = "yes"; then
11522 if test "${with_jpeg}" != "no"; then
11523 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11524 if test "x$ac_cv_header_jerror_h" = xyes; then :
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11526 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11527 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-ljpeg $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 char jpeg_destroy_compress ();
11542 int
11543 main ()
11544 {
11545 return jpeg_destroy_compress ();
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11552 else
11553 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11554 fi
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_lib_save_LIBS
11558 fi
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11560 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11561 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
11562 HAVE_JPEG=yes
11563 fi
11564
11565 fi
11566
11567
11568 fi
11569
11570 if test "${HAVE_JPEG}" = "yes"; then
11571 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11572
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575 #include <jpeglib.h>
11576 version=JPEG_LIB_VERSION
11577
11578 _ACEOF
11579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11580 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11581 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11582
11583 else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11585 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11586 HAVE_JPEG=no
11587 fi
11588 rm -f conftest*
11589
11590 fi
11591 if test "${HAVE_JPEG}" = "yes"; then
11592 LIBJPEG=-ljpeg
11593 fi
11594 fi
11595
11596
11597 ### Use -lpng if available, unless `--with-png=no'.
11598 HAVE_PNG=no
11599 LIBPNG=
11600 if test "${HAVE_X11}" = "yes"; then
11601 if test "${with_png}" != "no"; then
11602 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11603 # in /usr/include/libpng.
11604 for ac_header in png.h libpng/png.h
11605 do :
11606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11607 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11608 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11609 cat >>confdefs.h <<_ACEOF
11610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611 _ACEOF
11612
11613 fi
11614
11615 done
11616
11617 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11619 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11620 if ${ac_cv_lib_png_png_get_channels+:} false; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lpng -lz -lm $LIBS"
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char png_get_channels ();
11635 int
11636 main ()
11637 {
11638 return png_get_channels ();
11639 ;
11640 return 0;
11641 }
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644 ac_cv_lib_png_png_get_channels=yes
11645 else
11646 ac_cv_lib_png_png_get_channels=no
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 LIBS=$ac_check_lib_save_LIBS
11651 fi
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11653 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11654 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
11655 HAVE_PNG=yes
11656 fi
11657
11658 fi
11659 fi
11660
11661 if test "${HAVE_PNG}" = "yes"; then
11662
11663 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11664
11665 LIBPNG="-lpng -lz -lm"
11666 fi
11667 fi
11668
11669
11670 ### Use -ltiff if available, unless `--with-tiff=no'.
11671 HAVE_TIFF=no
11672 LIBTIFF=
11673 if test "${HAVE_X11}" = "yes"; then
11674 if test "${with_tiff}" != "no"; then
11675 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11676 if test "x$ac_cv_header_tiffio_h" = xyes; then :
11677 tifflibs="-lz -lm"
11678 # At least one tiff package requires the jpeg library.
11679 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11681 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11682 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-ltiff $tifflibs $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char TIFFGetVersion ();
11697 int
11698 main ()
11699 {
11700 return TIFFGetVersion ();
11701 ;
11702 return 0;
11703 }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 ac_cv_lib_tiff_TIFFGetVersion=yes
11707 else
11708 ac_cv_lib_tiff_TIFFGetVersion=no
11709 fi
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11715 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11716 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
11717 HAVE_TIFF=yes
11718 fi
11719
11720 fi
11721
11722
11723 fi
11724
11725 if test "${HAVE_TIFF}" = "yes"; then
11726
11727 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11728
11729 LIBTIFF=-ltiff
11730 fi
11731 fi
11732
11733
11734 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11735 HAVE_GIF=no
11736 LIBGIF=
11737 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11738 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11739 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
11740 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11741 # Earlier versions can crash Emacs.
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11743 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11744 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 ac_check_lib_save_LIBS=$LIBS
11748 LIBS="-lgif $LIBS"
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751
11752 /* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 char EGifPutExtensionLast ();
11759 int
11760 main ()
11761 {
11762 return EGifPutExtensionLast ();
11763 ;
11764 return 0;
11765 }
11766 _ACEOF
11767 if ac_fn_c_try_link "$LINENO"; then :
11768 ac_cv_lib_gif_EGifPutExtensionLast=yes
11769 else
11770 ac_cv_lib_gif_EGifPutExtensionLast=no
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11774 LIBS=$ac_check_lib_save_LIBS
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11777 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
11778 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
11779 HAVE_GIF=yes
11780 else
11781 HAVE_GIF=maybe
11782 fi
11783
11784 fi
11785
11786
11787
11788 if test "$HAVE_GIF" = yes; then
11789 LIBGIF=-lgif
11790 elif test "$HAVE_GIF" = maybe; then
11791 # If gif_lib.h but no libgif, try libungif.
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
11793 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
11794 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 ac_check_lib_save_LIBS=$LIBS
11798 LIBS="-lungif $LIBS"
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801
11802 /* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11805 #ifdef __cplusplus
11806 extern "C"
11807 #endif
11808 char EGifPutExtensionLast ();
11809 int
11810 main ()
11811 {
11812 return EGifPutExtensionLast ();
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 if ac_fn_c_try_link "$LINENO"; then :
11818 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11819 else
11820 ac_cv_lib_ungif_EGifPutExtensionLast=no
11821 fi
11822 rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
11824 LIBS=$ac_check_lib_save_LIBS
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11827 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
11828 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
11829 HAVE_GIF=yes
11830 else
11831 HAVE_GIF=no
11832 fi
11833
11834 test "$HAVE_GIF" = yes && LIBGIF=-lungif
11835 fi
11836
11837 if test "${HAVE_GIF}" = "yes"; then
11838
11839 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11840
11841 fi
11842 fi
11843
11844
11845 if test "${HAVE_X11}" = "yes"; then
11846 MISSING=""
11847 WITH_NO=""
11848 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11849 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11850 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11851 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11852 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11853 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11854 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11855 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11856 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11857 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11858
11859 if test "X${MISSING}" != X; then
11860 as_fn_error $? "The following required libraries were not found:
11861 $MISSING
11862 Maybe some development libraries/packages are missing?
11863 If you don't want to link with them give
11864 $WITH_NO
11865 as options to configure" "$LINENO" 5
11866 fi
11867 fi
11868
11869 ### Use -lgpm if available, unless `--with-gpm=no'.
11870 HAVE_GPM=no
11871 LIBGPM=
11872 MOUSE_SUPPORT=
11873 if test "${with_gpm}" != "no"; then
11874 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11875 if test "x$ac_cv_header_gpm_h" = xyes; then :
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11877 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11878 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-lgpm $LIBS"
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11885
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char Gpm_Open ();
11893 int
11894 main ()
11895 {
11896 return Gpm_Open ();
11897 ;
11898 return 0;
11899 }
11900 _ACEOF
11901 if ac_fn_c_try_link "$LINENO"; then :
11902 ac_cv_lib_gpm_Gpm_Open=yes
11903 else
11904 ac_cv_lib_gpm_Gpm_Open=no
11905 fi
11906 rm -f core conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 LIBS=$ac_check_lib_save_LIBS
11909 fi
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11911 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11912 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
11913 HAVE_GPM=yes
11914 fi
11915
11916 fi
11917
11918
11919
11920 if test "${HAVE_GPM}" = "yes"; then
11921
11922 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11923
11924 LIBGPM=-lgpm
11925 ## May be reset below.
11926 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11927 fi
11928 fi
11929
11930
11931 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11932 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
11933
11934 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11935
11936 fi
11937
11938
11939
11940 C_SWITCH_X_SYSTEM=
11941 ### Use NeXTstep API to implement GUI.
11942 if test "${HAVE_NS}" = "yes"; then
11943
11944 $as_echo "#define HAVE_NS 1" >>confdefs.h
11945
11946 if test "${NS_IMPL_COCOA}" = "yes"; then
11947
11948 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11949
11950 GNU_OBJC_CFLAGS=
11951 fi
11952 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11953
11954 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11955
11956 # See also .m.o rule in Makefile.in */
11957 # FIXME: are all these flags really needed? Document here why. */
11958 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11959 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11960 fi
11961 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11962
11963 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11964
11965 fi
11966 # We also have mouse menus.
11967 HAVE_MENUS=yes
11968 OTHER_FILES=ns-app
11969 fi
11970
11971
11972 ### Use session management (-lSM -lICE) if available
11973 HAVE_X_SM=no
11974 LIBXSM=
11975 if test "${HAVE_X11}" = "yes"; then
11976 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11977 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11979 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11980 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 ac_check_lib_save_LIBS=$LIBS
11984 LIBS="-lSM -lICE $LIBS"
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11987
11988 /* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11991 #ifdef __cplusplus
11992 extern "C"
11993 #endif
11994 char SmcOpenConnection ();
11995 int
11996 main ()
11997 {
11998 return SmcOpenConnection ();
11999 ;
12000 return 0;
12001 }
12002 _ACEOF
12003 if ac_fn_c_try_link "$LINENO"; then :
12004 ac_cv_lib_SM_SmcOpenConnection=yes
12005 else
12006 ac_cv_lib_SM_SmcOpenConnection=no
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12010 LIBS=$ac_check_lib_save_LIBS
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12013 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12014 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12015 HAVE_X_SM=yes
12016 fi
12017
12018 fi
12019
12020
12021
12022 if test "${HAVE_X_SM}" = "yes"; then
12023
12024 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12025
12026 LIBXSM="-lSM -lICE"
12027 case "$LIBS" in
12028 *-lSM*) ;;
12029 *) LIBS="$LIBXSM $LIBS" ;;
12030 esac
12031 fi
12032 fi
12033
12034
12035 ### Use libxml (-lxml2) if available
12036 if test "${with_xml2}" != "no"; then
12037 ### I'm not sure what the version number should be, so I just guessed.
12038
12039 succeeded=no
12040
12041 # Extract the first word of "pkg-config", so it can be a program name with args.
12042 set dummy pkg-config; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 case $PKG_CONFIG in
12049 [\\/]* | ?:[\\/]*)
12050 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12051 ;;
12052 *)
12053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12055 do
12056 IFS=$as_save_IFS
12057 test -z "$as_dir" && as_dir=.
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12060 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062 break 2
12063 fi
12064 done
12065 done
12066 IFS=$as_save_IFS
12067
12068 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12069 ;;
12070 esac
12071 fi
12072 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12073 if test -n "$PKG_CONFIG"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12075 $as_echo "$PKG_CONFIG" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12079 fi
12080
12081
12082
12083 if test "$PKG_CONFIG" = "no" ; then
12084 HAVE_LIBXML2=no
12085 else
12086 PKG_CONFIG_MIN_VERSION=0.9.0
12087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
12089 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
12090
12091 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12093 $as_echo "yes" >&6; }
12094 succeeded=yes
12095
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12097 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12098 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12100 $as_echo "$LIBXML2_CFLAGS" >&6; }
12101
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12103 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12104 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12106 $as_echo "$LIBXML2_LIBS" >&6; }
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12110 LIBXML2_CFLAGS=""
12111 LIBXML2_LIBS=""
12112 ## If we have a custom action on failure, don't print errors, but
12113 ## do set a variable so people can do so.
12114 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
12115
12116 fi
12117
12118
12119
12120 else
12121 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12122 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12123 fi
12124 fi
12125
12126 if test $succeeded = yes; then
12127 HAVE_LIBXML2=yes
12128 else
12129 HAVE_LIBXML2=no
12130 fi
12131
12132 if test "${HAVE_LIBXML2}" = "yes"; then
12133 LIBS="$LIBXML2_LIBS $LIBS"
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12135 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12136 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12137 $as_echo_n "(cached) " >&6
12138 else
12139 ac_check_lib_save_LIBS=$LIBS
12140 LIBS="-lxml2 $LIBS"
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12143
12144 /* Override any GCC internal prototype to avoid an error.
12145 Use char because int might match the return type of a GCC
12146 builtin and then its argument prototype would still apply. */
12147 #ifdef __cplusplus
12148 extern "C"
12149 #endif
12150 char htmlReadMemory ();
12151 int
12152 main ()
12153 {
12154 return htmlReadMemory ();
12155 ;
12156 return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 ac_cv_lib_xml2_htmlReadMemory=yes
12161 else
12162 ac_cv_lib_xml2_htmlReadMemory=no
12163 fi
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 LIBS=$ac_check_lib_save_LIBS
12167 fi
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12169 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12170 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12171 HAVE_LIBXML2=yes
12172 else
12173 HAVE_LIBXML2=no
12174 fi
12175
12176 if test "${HAVE_LIBXML2}" = "yes"; then
12177
12178 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12179
12180 else
12181 LIBXML2_LIBS=""
12182 LIBXML2_CFLAGS=""
12183 fi
12184 fi
12185 fi
12186
12187
12188
12189 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12191 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12192 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 #include <netdb.h>
12198 int
12199 main ()
12200 {
12201 return h_errno;
12202 ;
12203 return 0;
12204 }
12205 _ACEOF
12206 if ac_fn_c_try_link "$LINENO"; then :
12207 emacs_cv_netdb_declares_h_errno=yes
12208 else
12209 emacs_cv_netdb_declares_h_errno=no
12210 fi
12211 rm -f core conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12215 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12216 if test $emacs_cv_netdb_declares_h_errno = yes; then
12217
12218 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12219
12220 fi
12221
12222 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12223 if test "x$ac_cv_type_size_t" = xyes; then :
12224
12225 else
12226
12227 cat >>confdefs.h <<_ACEOF
12228 #define size_t unsigned int
12229 _ACEOF
12230
12231 fi
12232
12233 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12234 # for constant arguments. Useless!
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12236 $as_echo_n "checking for working alloca.h... " >&6; }
12237 if ${ac_cv_working_alloca_h+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12242 #include <alloca.h>
12243 int
12244 main ()
12245 {
12246 char *p = (char *) alloca (2 * sizeof (int));
12247 if (p) return 0;
12248 ;
12249 return 0;
12250 }
12251 _ACEOF
12252 if ac_fn_c_try_link "$LINENO"; then :
12253 ac_cv_working_alloca_h=yes
12254 else
12255 ac_cv_working_alloca_h=no
12256 fi
12257 rm -f core conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12259 fi
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12261 $as_echo "$ac_cv_working_alloca_h" >&6; }
12262 if test $ac_cv_working_alloca_h = yes; then
12263
12264 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12265
12266 fi
12267
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12269 $as_echo_n "checking for alloca... " >&6; }
12270 if ${ac_cv_func_alloca_works+:} false; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275 #ifdef __GNUC__
12276 # define alloca __builtin_alloca
12277 #else
12278 # ifdef _MSC_VER
12279 # include <malloc.h>
12280 # define alloca _alloca
12281 # else
12282 # ifdef HAVE_ALLOCA_H
12283 # include <alloca.h>
12284 # else
12285 # ifdef _AIX
12286 #pragma alloca
12287 # else
12288 # ifndef alloca /* predefined by HP cc +Olibcalls */
12289 void *alloca (size_t);
12290 # endif
12291 # endif
12292 # endif
12293 # endif
12294 #endif
12295
12296 int
12297 main ()
12298 {
12299 char *p = (char *) alloca (1);
12300 if (p) return 0;
12301 ;
12302 return 0;
12303 }
12304 _ACEOF
12305 if ac_fn_c_try_link "$LINENO"; then :
12306 ac_cv_func_alloca_works=yes
12307 else
12308 ac_cv_func_alloca_works=no
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12314 $as_echo "$ac_cv_func_alloca_works" >&6; }
12315
12316 if test $ac_cv_func_alloca_works = yes; then
12317
12318 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12319
12320 else
12321 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12322 # that cause trouble. Some versions do not even contain alloca or
12323 # contain a buggy version. If you still want to use their alloca,
12324 # use ar to extract alloca.o from them instead of compiling alloca.c.
12325
12326 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12327
12328 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12329
12330
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12332 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12333 if ${ac_cv_os_cray+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338 #if defined CRAY && ! defined CRAY2
12339 webecray
12340 #else
12341 wenotbecray
12342 #endif
12343
12344 _ACEOF
12345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12346 $EGREP "webecray" >/dev/null 2>&1; then :
12347 ac_cv_os_cray=yes
12348 else
12349 ac_cv_os_cray=no
12350 fi
12351 rm -f conftest*
12352
12353 fi
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12355 $as_echo "$ac_cv_os_cray" >&6; }
12356 if test $ac_cv_os_cray = yes; then
12357 for ac_func in _getb67 GETB67 getb67; do
12358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12360 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12361
12362 cat >>confdefs.h <<_ACEOF
12363 #define CRAY_STACKSEG_END $ac_func
12364 _ACEOF
12365
12366 break
12367 fi
12368
12369 done
12370 fi
12371
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12373 $as_echo_n "checking stack direction for C alloca... " >&6; }
12374 if ${ac_cv_c_stack_direction+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 if test "$cross_compiling" = yes; then :
12378 ac_cv_c_stack_direction=0
12379 else
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12382 $ac_includes_default
12383 int
12384 find_stack_direction ()
12385 {
12386 static char *addr = 0;
12387 auto char dummy;
12388 if (addr == 0)
12389 {
12390 addr = &dummy;
12391 return find_stack_direction ();
12392 }
12393 else
12394 return (&dummy > addr) ? 1 : -1;
12395 }
12396
12397 int
12398 main ()
12399 {
12400 return find_stack_direction () < 0;
12401 }
12402 _ACEOF
12403 if ac_fn_c_try_run "$LINENO"; then :
12404 ac_cv_c_stack_direction=1
12405 else
12406 ac_cv_c_stack_direction=-1
12407 fi
12408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12409 conftest.$ac_objext conftest.beam conftest.$ac_ext
12410 fi
12411
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12414 $as_echo "$ac_cv_c_stack_direction" >&6; }
12415 cat >>confdefs.h <<_ACEOF
12416 #define STACK_DIRECTION $ac_cv_c_stack_direction
12417 _ACEOF
12418
12419
12420 fi
12421
12422
12423 if test x"$ac_cv_func_alloca_works" != xyes; then
12424 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12425 fi
12426
12427 # fmod, logb, and frexp are found in -lm on most systems.
12428 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12430 $as_echo_n "checking for sqrt in -lm... " >&6; }
12431 if ${ac_cv_lib_m_sqrt+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 ac_check_lib_save_LIBS=$LIBS
12435 LIBS="-lm $LIBS"
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char sqrt ();
12446 int
12447 main ()
12448 {
12449 return sqrt ();
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_m_sqrt=yes
12456 else
12457 ac_cv_lib_m_sqrt=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12464 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12465 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12466 cat >>confdefs.h <<_ACEOF
12467 #define HAVE_LIBM 1
12468 _ACEOF
12469
12470 LIBS="-lm $LIBS"
12471
12472 fi
12473
12474
12475 # Check for mail-locking functions in a "mail" library. Probably this should
12476 # have the same check as for liblockfile below.
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12478 $as_echo_n "checking for maillock in -lmail... " >&6; }
12479 if ${ac_cv_lib_mail_maillock+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 ac_check_lib_save_LIBS=$LIBS
12483 LIBS="-lmail $LIBS"
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486
12487 /* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490 #ifdef __cplusplus
12491 extern "C"
12492 #endif
12493 char maillock ();
12494 int
12495 main ()
12496 {
12497 return maillock ();
12498 ;
12499 return 0;
12500 }
12501 _ACEOF
12502 if ac_fn_c_try_link "$LINENO"; then :
12503 ac_cv_lib_mail_maillock=yes
12504 else
12505 ac_cv_lib_mail_maillock=no
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12512 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12513 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
12514 have_mail=yes
12515 else
12516 have_mail=no
12517 fi
12518
12519 if test $have_mail = yes; then
12520 LIBS_MAIL=-lmail
12521 LIBS="$LIBS_MAIL $LIBS"
12522
12523 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12524
12525 else
12526 LIBS_MAIL=
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12529 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12530 if ${ac_cv_lib_lockfile_maillock+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 ac_check_lib_save_LIBS=$LIBS
12534 LIBS="-llockfile $LIBS"
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12537
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 char maillock ();
12545 int
12546 main ()
12547 {
12548 return maillock ();
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_link "$LINENO"; then :
12554 ac_cv_lib_lockfile_maillock=yes
12555 else
12556 ac_cv_lib_lockfile_maillock=no
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12563 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12564 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
12565 have_lockfile=yes
12566 else
12567 have_lockfile=no
12568 fi
12569
12570 if test $have_lockfile = yes; then
12571 LIBS_MAIL=-llockfile
12572 LIBS="$LIBS_MAIL $LIBS"
12573
12574 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12575
12576 else
12577 # If we have the shared liblockfile, assume we must use it for mail
12578 # locking (e.g. Debian). If we couldn't link against liblockfile
12579 # (no liblockfile.a installed), ensure that we don't need to.
12580 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12581 set dummy liblockfile.so; ac_word=$2
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583 $as_echo_n "checking for $ac_word... " >&6; }
12584 if ${ac_cv_prog_liblockfile+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 if test -n "$liblockfile"; then
12588 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12589 else
12590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12592 for as_dir in $as_dummy
12593 do
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598 ac_cv_prog_liblockfile="yes"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 break 2
12601 fi
12602 done
12603 done
12604 IFS=$as_save_IFS
12605
12606 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12607 fi
12608 fi
12609 liblockfile=$ac_cv_prog_liblockfile
12610 if test -n "$liblockfile"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12612 $as_echo "$liblockfile" >&6; }
12613 else
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12616 fi
12617
12618
12619 if test $ac_cv_prog_liblockfile = yes; then
12620 as_fn_error $? "Shared liblockfile found but can't link against it.
12621 This probably means that movemail could lose mail.
12622 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12623 fi
12624 fi
12625 for ac_func in touchlock
12626 do :
12627 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12628 if test "x$ac_cv_func_touchlock" = xyes; then :
12629 cat >>confdefs.h <<_ACEOF
12630 #define HAVE_TOUCHLOCK 1
12631 _ACEOF
12632
12633 fi
12634 done
12635
12636 for ac_header in maillock.h
12637 do :
12638 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12639 if test "x$ac_cv_header_maillock_h" = xyes; then :
12640 cat >>confdefs.h <<_ACEOF
12641 #define HAVE_MAILLOCK_H 1
12642 _ACEOF
12643
12644 fi
12645
12646 done
12647
12648
12649
12650 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12651 ## interlock access to the mail spool. The alternative is a lock file named
12652 ## /usr/spool/mail/$USER.lock.
12653 mail_lock=no
12654 case "$opsys" in
12655 aix4-2) mail_lock="lockf" ;;
12656
12657 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12658
12659 ## On GNU/Linux systems, both methods are used by various mail programs.
12660 ## I assume most people are using newer mailers that have heard of flock.
12661 ## Change this if you need to.
12662 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12663 ## configure gets the right answers, and that means *NOT* using flock.
12664 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12665 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12666 ## Debian maintainer hasn't provided a clean fix for Emacs.
12667 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12668 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12669 ## correct logic. -- fx
12670 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12671 ## liblockfile is a Free Software replacement for libmail, used on
12672 ## Debian systems and elsewhere. -rfr.
12673 gnu-*)
12674 mail_lock="flock"
12675 if test $have_mail = yes || test $have_lockfile = yes; then
12676 test $ac_cv_header_maillock_h = yes && mail_lock=no
12677 fi
12678 ;;
12679 esac
12680
12681 BLESSMAIL_TARGET=
12682 case "$mail_lock" in
12683 flock)
12684 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12685 ;;
12686
12687 lockf)
12688 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12689 ;;
12690
12691 *) BLESSMAIL_TARGET="need-blessmail" ;;
12692 esac
12693
12694
12695
12696 for ac_func in gethostname getdomainname dup2 \
12697 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12698 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12699 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
12700 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12701 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12702 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12703 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12704 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12705 cfmakeraw cfsetspeed isnan copysign __executable_start
12706 do :
12707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12708 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12709 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12710 cat >>confdefs.h <<_ACEOF
12711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12712 _ACEOF
12713
12714 fi
12715 done
12716
12717
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12719 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12720 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725
12726 int
12727 main ()
12728 {
12729 __builtin_unwind_init ();
12730 ;
12731 return 0;
12732 }
12733 _ACEOF
12734 if ac_fn_c_try_link "$LINENO"; then :
12735 emacs_cv_func___builtin_unwind_init=yes
12736 else
12737 emacs_cv_func___builtin_unwind_init=no
12738 fi
12739 rm -f core conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12743 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12744 if test $emacs_cv_func___builtin_unwind_init = yes; then
12745
12746 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12747
12748 fi
12749
12750 for ac_header in sys/un.h
12751 do :
12752 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12753 if test "x$ac_cv_header_sys_un_h" = xyes; then :
12754 cat >>confdefs.h <<_ACEOF
12755 #define HAVE_SYS_UN_H 1
12756 _ACEOF
12757
12758 fi
12759
12760 done
12761
12762
12763
12764
12765
12766
12767
12768 for ac_func in $ac_func_list
12769 do :
12770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12772 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12773 cat >>confdefs.h <<_ACEOF
12774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12775 _ACEOF
12776
12777 fi
12778 done
12779
12780
12781
12782
12783
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
12785 $as_echo_n "checking for working mktime... " >&6; }
12786 if ${ac_cv_func_working_mktime+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 if test "$cross_compiling" = yes; then :
12790 ac_cv_func_working_mktime=no
12791 else
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794 /* Test program from Paul Eggert and Tony Leneis. */
12795 #ifdef TIME_WITH_SYS_TIME
12796 # include <sys/time.h>
12797 # include <time.h>
12798 #else
12799 # ifdef HAVE_SYS_TIME_H
12800 # include <sys/time.h>
12801 # else
12802 # include <time.h>
12803 # endif
12804 #endif
12805
12806 #include <limits.h>
12807 #include <stdlib.h>
12808
12809 #ifdef HAVE_UNISTD_H
12810 # include <unistd.h>
12811 #endif
12812
12813 #ifndef HAVE_ALARM
12814 # define alarm(X) /* empty */
12815 #endif
12816
12817 /* Work around redefinition to rpl_putenv by other config tests. */
12818 #undef putenv
12819
12820 static time_t time_t_max;
12821 static time_t time_t_min;
12822
12823 /* Values we'll use to set the TZ environment variable. */
12824 static const char *tz_strings[] = {
12825 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12826 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12827 };
12828 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12829
12830 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12831 Based on a problem report from Andreas Jaeger. */
12832 static int
12833 spring_forward_gap ()
12834 {
12835 /* glibc (up to about 1998-10-07) failed this test. */
12836 struct tm tm;
12837
12838 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12839 instead of "TZ=America/Vancouver" in order to detect the bug even
12840 on systems that don't support the Olson extension, or don't have the
12841 full zoneinfo tables installed. */
12842 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12843
12844 tm.tm_year = 98;
12845 tm.tm_mon = 3;
12846 tm.tm_mday = 5;
12847 tm.tm_hour = 2;
12848 tm.tm_min = 0;
12849 tm.tm_sec = 0;
12850 tm.tm_isdst = -1;
12851 return mktime (&tm) != (time_t) -1;
12852 }
12853
12854 static int
12855 mktime_test1 (time_t now)
12856 {
12857 struct tm *lt;
12858 return ! (lt = localtime (&now)) || mktime (lt) == now;
12859 }
12860
12861 static int
12862 mktime_test (time_t now)
12863 {
12864 return (mktime_test1 (now)
12865 && mktime_test1 ((time_t) (time_t_max - now))
12866 && mktime_test1 ((time_t) (time_t_min + now)));
12867 }
12868
12869 static int
12870 irix_6_4_bug ()
12871 {
12872 /* Based on code from Ariel Faigon. */
12873 struct tm tm;
12874 tm.tm_year = 96;
12875 tm.tm_mon = 3;
12876 tm.tm_mday = 0;
12877 tm.tm_hour = 0;
12878 tm.tm_min = 0;
12879 tm.tm_sec = 0;
12880 tm.tm_isdst = -1;
12881 mktime (&tm);
12882 return tm.tm_mon == 2 && tm.tm_mday == 31;
12883 }
12884
12885 static int
12886 bigtime_test (int j)
12887 {
12888 struct tm tm;
12889 time_t now;
12890 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12891 now = mktime (&tm);
12892 if (now != (time_t) -1)
12893 {
12894 struct tm *lt = localtime (&now);
12895 if (! (lt
12896 && lt->tm_year == tm.tm_year
12897 && lt->tm_mon == tm.tm_mon
12898 && lt->tm_mday == tm.tm_mday
12899 && lt->tm_hour == tm.tm_hour
12900 && lt->tm_min == tm.tm_min
12901 && lt->tm_sec == tm.tm_sec
12902 && lt->tm_yday == tm.tm_yday
12903 && lt->tm_wday == tm.tm_wday
12904 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12905 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12906 return 0;
12907 }
12908 return 1;
12909 }
12910
12911 static int
12912 year_2050_test ()
12913 {
12914 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12915 ignoring leap seconds. */
12916 unsigned long int answer = 2527315200UL;
12917
12918 struct tm tm;
12919 time_t t;
12920 tm.tm_year = 2050 - 1900;
12921 tm.tm_mon = 2 - 1;
12922 tm.tm_mday = 1;
12923 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12924 tm.tm_isdst = -1;
12925
12926 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12927 instead of "TZ=America/Vancouver" in order to detect the bug even
12928 on systems that don't support the Olson extension, or don't have the
12929 full zoneinfo tables installed. */
12930 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12931
12932 t = mktime (&tm);
12933
12934 /* Check that the result is either a failure, or close enough
12935 to the correct answer that we can assume the discrepancy is
12936 due to leap seconds. */
12937 return (t == (time_t) -1
12938 || (0 < t && answer - 120 <= t && t <= answer + 120));
12939 }
12940
12941 int
12942 main ()
12943 {
12944 time_t t, delta;
12945 int i, j;
12946
12947 /* This test makes some buggy mktime implementations loop.
12948 Give up after 60 seconds; a mktime slower than that
12949 isn't worth using anyway. */
12950 alarm (60);
12951
12952 for (;;)
12953 {
12954 t = (time_t_max << 1) + 1;
12955 if (t <= time_t_max)
12956 break;
12957 time_t_max = t;
12958 }
12959 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12960
12961 delta = time_t_max / 997; /* a suitable prime number */
12962 for (i = 0; i < N_STRINGS; i++)
12963 {
12964 if (tz_strings[i])
12965 putenv ((char*) tz_strings[i]);
12966
12967 for (t = 0; t <= time_t_max - delta; t += delta)
12968 if (! mktime_test (t))
12969 return 1;
12970 if (! (mktime_test ((time_t) 1)
12971 && mktime_test ((time_t) (60 * 60))
12972 && mktime_test ((time_t) (60 * 60 * 24))))
12973 return 1;
12974
12975 for (j = 1; ; j <<= 1)
12976 if (! bigtime_test (j))
12977 return 1;
12978 else if (INT_MAX / 2 < j)
12979 break;
12980 if (! bigtime_test (INT_MAX))
12981 return 1;
12982 }
12983 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12984 }
12985 _ACEOF
12986 if ac_fn_c_try_run "$LINENO"; then :
12987 ac_cv_func_working_mktime=yes
12988 else
12989 ac_cv_func_working_mktime=no
12990 fi
12991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12992 conftest.$ac_objext conftest.beam conftest.$ac_ext
12993 fi
12994
12995 fi
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12997 $as_echo "$ac_cv_func_working_mktime" >&6; }
12998 if test $ac_cv_func_working_mktime = no; then
12999 case " $LIBOBJS " in
13000 *" mktime.$ac_objext "* ) ;;
13001 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13002 ;;
13003 esac
13004
13005 fi
13006
13007 if test "$ac_cv_func_working_mktime" = no; then
13008
13009 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
13010
13011 fi
13012
13013 ac_have_func=no # yes means we've found a way to get the load average.
13014
13015 # Make sure getloadavg.c is where it belongs, at configure-time.
13016 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13017 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
13018
13019 ac_save_LIBS=$LIBS
13020
13021 # Check for getloadavg, but be sure not to touch the cache variable.
13022 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13023 if test "x$ac_cv_func_getloadavg" = xyes; then :
13024 exit 0
13025 else
13026 exit 1
13027 fi
13028 ) && ac_have_func=yes
13029
13030 # On HPUX9, an unprivileged user can get load averages through this function.
13031 for ac_func in pstat_getdynamic
13032 do :
13033 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13034 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
13035 cat >>confdefs.h <<_ACEOF
13036 #define HAVE_PSTAT_GETDYNAMIC 1
13037 _ACEOF
13038
13039 fi
13040 done
13041
13042
13043 # Solaris has libkstat which does not require root.
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13045 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13046 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 ac_check_lib_save_LIBS=$LIBS
13050 LIBS="-lkstat $LIBS"
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char kstat_open ();
13061 int
13062 main ()
13063 {
13064 return kstat_open ();
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 if ac_fn_c_try_link "$LINENO"; then :
13070 ac_cv_lib_kstat_kstat_open=yes
13071 else
13072 ac_cv_lib_kstat_kstat_open=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076 LIBS=$ac_check_lib_save_LIBS
13077 fi
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13079 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13080 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13081 cat >>confdefs.h <<_ACEOF
13082 #define HAVE_LIBKSTAT 1
13083 _ACEOF
13084
13085 LIBS="-lkstat $LIBS"
13086
13087 fi
13088
13089 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13090
13091 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13092 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13093 # to get the right answer into the cache.
13094 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13095 if test $ac_have_func = no; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13097 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13098 if ${ac_cv_lib_elf_elf_begin+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 ac_check_lib_save_LIBS=$LIBS
13102 LIBS="-lelf $LIBS"
13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104 /* end confdefs.h. */
13105
13106 /* Override any GCC internal prototype to avoid an error.
13107 Use char because int might match the return type of a GCC
13108 builtin and then its argument prototype would still apply. */
13109 #ifdef __cplusplus
13110 extern "C"
13111 #endif
13112 char elf_begin ();
13113 int
13114 main ()
13115 {
13116 return elf_begin ();
13117 ;
13118 return 0;
13119 }
13120 _ACEOF
13121 if ac_fn_c_try_link "$LINENO"; then :
13122 ac_cv_lib_elf_elf_begin=yes
13123 else
13124 ac_cv_lib_elf_elf_begin=no
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 LIBS=$ac_check_lib_save_LIBS
13129 fi
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13131 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13132 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
13133 LIBS="-lelf $LIBS"
13134 fi
13135
13136 fi
13137 if test $ac_have_func = no; then
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13139 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13140 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 ac_check_lib_save_LIBS=$LIBS
13144 LIBS="-lkvm $LIBS"
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13151 #ifdef __cplusplus
13152 extern "C"
13153 #endif
13154 char kvm_open ();
13155 int
13156 main ()
13157 {
13158 return kvm_open ();
13159 ;
13160 return 0;
13161 }
13162 _ACEOF
13163 if ac_fn_c_try_link "$LINENO"; then :
13164 ac_cv_lib_kvm_kvm_open=yes
13165 else
13166 ac_cv_lib_kvm_kvm_open=no
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13171 fi
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13173 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13174 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
13175 LIBS="-lkvm $LIBS"
13176 fi
13177
13178 # Check for the 4.4BSD definition of getloadavg.
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13180 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13181 if ${ac_cv_lib_util_getloadavg+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 ac_check_lib_save_LIBS=$LIBS
13185 LIBS="-lutil $LIBS"
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13188
13189 /* Override any GCC internal prototype to avoid an error.
13190 Use char because int might match the return type of a GCC
13191 builtin and then its argument prototype would still apply. */
13192 #ifdef __cplusplus
13193 extern "C"
13194 #endif
13195 char getloadavg ();
13196 int
13197 main ()
13198 {
13199 return getloadavg ();
13200 ;
13201 return 0;
13202 }
13203 _ACEOF
13204 if ac_fn_c_try_link "$LINENO"; then :
13205 ac_cv_lib_util_getloadavg=yes
13206 else
13207 ac_cv_lib_util_getloadavg=no
13208 fi
13209 rm -f core conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
13211 LIBS=$ac_check_lib_save_LIBS
13212 fi
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13214 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13215 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
13216 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13217 fi
13218
13219 fi
13220
13221 if test $ac_have_func = no; then
13222 # There is a commonly available library for RS/6000 AIX.
13223 # Since it is not a standard part of AIX, it might be installed locally.
13224 ac_getloadavg_LIBS=$LIBS
13225 LIBS="-L/usr/local/lib $LIBS"
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13227 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13228 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 ac_check_lib_save_LIBS=$LIBS
13232 LIBS="-lgetloadavg $LIBS"
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13239 #ifdef __cplusplus
13240 extern "C"
13241 #endif
13242 char getloadavg ();
13243 int
13244 main ()
13245 {
13246 return getloadavg ();
13247 ;
13248 return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 ac_cv_lib_getloadavg_getloadavg=yes
13253 else
13254 ac_cv_lib_getloadavg_getloadavg=no
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258 LIBS=$ac_check_lib_save_LIBS
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13261 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13262 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
13263 LIBS="-lgetloadavg $LIBS"
13264 else
13265 LIBS=$ac_getloadavg_LIBS
13266 fi
13267
13268 fi
13269
13270 # Make sure it is really in the library, if we think we found it,
13271 # otherwise set up the replacement function.
13272 for ac_func in getloadavg
13273 do :
13274 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13275 if test "x$ac_cv_func_getloadavg" = xyes; then :
13276 cat >>confdefs.h <<_ACEOF
13277 #define HAVE_GETLOADAVG 1
13278 _ACEOF
13279
13280 else
13281 case " $LIBOBJS " in
13282 *" getloadavg.$ac_objext "* ) ;;
13283 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13284 ;;
13285 esac
13286
13287
13288 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13289
13290 # Figure out what our getloadavg.c needs.
13291 ac_have_func=no
13292 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13293 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
13294 ac_have_func=yes
13295
13296 $as_echo "#define DGUX 1" >>confdefs.h
13297
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13299 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13300 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 ac_check_lib_save_LIBS=$LIBS
13304 LIBS="-ldgc $LIBS"
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13311 #ifdef __cplusplus
13312 extern "C"
13313 #endif
13314 char dg_sys_info ();
13315 int
13316 main ()
13317 {
13318 return dg_sys_info ();
13319 ;
13320 return 0;
13321 }
13322 _ACEOF
13323 if ac_fn_c_try_link "$LINENO"; then :
13324 ac_cv_lib_dgc_dg_sys_info=yes
13325 else
13326 ac_cv_lib_dgc_dg_sys_info=no
13327 fi
13328 rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13331 fi
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13333 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13334 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
13335 cat >>confdefs.h <<_ACEOF
13336 #define HAVE_LIBDGC 1
13337 _ACEOF
13338
13339 LIBS="-ldgc $LIBS"
13340
13341 fi
13342
13343 fi
13344
13345
13346
13347 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13348 if test "x$ac_cv_header_locale_h" = xyes; then :
13349
13350 fi
13351
13352
13353 for ac_func in setlocale
13354 do :
13355 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13356 if test "x$ac_cv_func_setlocale" = xyes; then :
13357 cat >>confdefs.h <<_ACEOF
13358 #define HAVE_SETLOCALE 1
13359 _ACEOF
13360
13361 fi
13362 done
13363
13364
13365 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13366 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13367 # Irix 4.0.5F has the header but not the library.
13368 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13369 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13370 ac_have_func=yes
13371
13372 $as_echo "#define SVR4 1" >>confdefs.h
13373
13374 fi
13375
13376 if test $ac_have_func = no; then
13377 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13378 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
13379 ac_have_func=yes
13380
13381 $as_echo "#define UMAX 1" >>confdefs.h
13382
13383
13384 $as_echo "#define UMAX4_3 1" >>confdefs.h
13385
13386 fi
13387
13388
13389 fi
13390
13391 if test $ac_have_func = no; then
13392 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13393 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
13394 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13395
13396 fi
13397
13398
13399 fi
13400
13401 if test $ac_have_func = no; then
13402 for ac_header in mach/mach.h
13403 do :
13404 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13405 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_MACH_MACH_H 1
13408 _ACEOF
13409
13410 fi
13411
13412 done
13413
13414 fi
13415
13416 for ac_header in nlist.h
13417 do :
13418 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13419 if test "x$ac_cv_header_nlist_h" = xyes; then :
13420 cat >>confdefs.h <<_ACEOF
13421 #define HAVE_NLIST_H 1
13422 _ACEOF
13423 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13424 "
13425 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
13426
13427 cat >>confdefs.h <<_ACEOF
13428 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13429 _ACEOF
13430
13431
13432 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13433
13434 fi
13435
13436
13437 fi
13438
13439 done
13440
13441 fi
13442 done
13443
13444
13445 # Some definitions of getloadavg require that the program be installed setgid.
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13447 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13448 if ${ac_cv_func_getloadavg_setgid+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13453 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13454 #ifdef LDAV_PRIVILEGED
13455 Yowza Am I SETGID yet
13456 #endif
13457 _ACEOF
13458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13459 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13460 ac_cv_func_getloadavg_setgid=yes
13461 else
13462 ac_cv_func_getloadavg_setgid=no
13463 fi
13464 rm -f conftest*
13465
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13468 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13469 if test $ac_cv_func_getloadavg_setgid = yes; then
13470 NEED_SETGID=true
13471
13472 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13473
13474 else
13475 NEED_SETGID=false
13476 fi
13477
13478 if test $ac_cv_func_getloadavg_setgid = yes; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13480 $as_echo_n "checking group of /dev/kmem... " >&6; }
13481 if ${ac_cv_group_kmem+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13485 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13486 # If we got an error (system does not support symlinks), try without -L.
13487 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13488 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13489 | sed -ne 's/[ ][ ]*/ /g;
13490 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13491 / /s/.* //;p;'`
13492
13493 fi
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13495 $as_echo "$ac_cv_group_kmem" >&6; }
13496 KMEM_GROUP=$ac_cv_group_kmem
13497 fi
13498 if test "x$ac_save_LIBS" = x; then
13499 GETLOADAVG_LIBS=$LIBS
13500 else
13501 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13502 fi
13503 LIBS=$ac_save_LIBS
13504
13505
13506
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13508 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13509 if ${ac_cv_sys_largefile_source+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 while :; do
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13515 #include <sys/types.h> /* for off_t */
13516 #include <stdio.h>
13517 int
13518 main ()
13519 {
13520 int (*fp) (FILE *, off_t, int) = fseeko;
13521 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13522 ;
13523 return 0;
13524 }
13525 _ACEOF
13526 if ac_fn_c_try_link "$LINENO"; then :
13527 ac_cv_sys_largefile_source=no; break
13528 fi
13529 rm -f core conftest.err conftest.$ac_objext \
13530 conftest$ac_exeext conftest.$ac_ext
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 #define _LARGEFILE_SOURCE 1
13534 #include <sys/types.h> /* for off_t */
13535 #include <stdio.h>
13536 int
13537 main ()
13538 {
13539 int (*fp) (FILE *, off_t, int) = fseeko;
13540 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13541 ;
13542 return 0;
13543 }
13544 _ACEOF
13545 if ac_fn_c_try_link "$LINENO"; then :
13546 ac_cv_sys_largefile_source=1; break
13547 fi
13548 rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550 ac_cv_sys_largefile_source=unknown
13551 break
13552 done
13553 fi
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13555 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13556 case $ac_cv_sys_largefile_source in #(
13557 no | unknown) ;;
13558 *)
13559 cat >>confdefs.h <<_ACEOF
13560 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13561 _ACEOF
13562 ;;
13563 esac
13564 rm -rf conftest*
13565
13566 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13567 # in glibc 2.1.3, but that breaks too many other things.
13568 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13569 if test $ac_cv_sys_largefile_source != unknown; then
13570
13571 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13572
13573 fi
13574
13575
13576 # Configure getopt.
13577 # getopt.m4 serial 10
13578
13579 # The getopt module assume you want GNU getopt, with getopt_long etc,
13580 # rather than vanilla POSIX getopt. This means your your code should
13581 # always include <getopt.h> for the getopt prototypes.
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593 # Prerequisites of lib/getopt*.
13594
13595
13596
13597
13598 GETOPT_H=
13599 for ac_header in getopt.h
13600 do :
13601 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13602 if test "x$ac_cv_header_getopt_h" = xyes; then :
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_GETOPT_H 1
13605 _ACEOF
13606
13607 else
13608 GETOPT_H=getopt.h
13609 fi
13610
13611 done
13612
13613 if test -z "$GETOPT_H"; then
13614 for ac_func in getopt_long_only
13615 do :
13616 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13617 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13618 cat >>confdefs.h <<_ACEOF
13619 #define HAVE_GETOPT_LONG_ONLY 1
13620 _ACEOF
13621
13622 else
13623 GETOPT_H=getopt.h
13624 fi
13625 done
13626
13627 fi
13628
13629 if test -z "$GETOPT_H"; then
13630 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
13631 "
13632 if test "x$ac_cv_have_decl_optreset" = xyes; then :
13633 GETOPT_H=getopt.h
13634 fi
13635
13636 fi
13637
13638 if test -z "$GETOPT_H"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13640 $as_echo_n "checking for working GNU getopt function... " >&6; }
13641 if ${gl_cv_func_gnu_getopt+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 if test "$cross_compiling" = yes; then :
13645 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
13646 "
13647 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
13648 gl_cv_func_gnu_getopt=no
13649 else
13650 gl_cv_func_gnu_getopt=yes
13651 fi
13652
13653 else
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 #include <getopt.h>
13657 int
13658 main ()
13659 {
13660
13661 char *myargv[3];
13662 myargv[0] = "conftest";
13663 myargv[1] = "-+";
13664 myargv[2] = 0;
13665 return getopt (2, myargv, "+a") != '?';
13666
13667 ;
13668 return 0;
13669 }
13670 _ACEOF
13671 if ac_fn_c_try_run "$LINENO"; then :
13672 gl_cv_func_gnu_getopt=yes
13673 else
13674 gl_cv_func_gnu_getopt=no
13675 fi
13676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13677 conftest.$ac_objext conftest.beam conftest.$ac_ext
13678 fi
13679
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
13682 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
13683 if test "$gl_cv_func_gnu_getopt" = "no"; then
13684 GETOPT_H=getopt.h
13685 fi
13686 fi
13687
13688
13689
13690 if test -n "$GETOPT_H"; then :
13691
13692
13693 GETOPT_H=getopt.h
13694
13695 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13696
13697
13698
13699 :
13700 GETOPTOBJS='getopt.o getopt1.o'
13701
13702 fi
13703
13704
13705
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13707 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13708 if ${ac_cv_func_getpgrp_void+:} false; then :
13709 $as_echo_n "(cached) " >&6
13710 else
13711 # Use it with a single arg.
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13714 $ac_includes_default
13715 int
13716 main ()
13717 {
13718 getpgrp (0);
13719 ;
13720 return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_c_try_compile "$LINENO"; then :
13724 ac_cv_func_getpgrp_void=no
13725 else
13726 ac_cv_func_getpgrp_void=yes
13727 fi
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729
13730 fi
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13732 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13733 if test $ac_cv_func_getpgrp_void = yes; then
13734
13735 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13736
13737 fi
13738
13739
13740 # Configure gnulib.
13741
13742
13743
13744
13745 LIBC_FATAL_STDERR_=1
13746 export LIBC_FATAL_STDERR_
13747
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13750 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13751 if ${gl_cv_func_c99_strtold+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756 /* On HP-UX before 11.23, strtold returns a struct instead of
13757 long double. Reject implementations like that, by requiring
13758 compatibility with the C99 prototype. */
13759 #include <stdlib.h>
13760 static long double (*p) (char const *, char **) = strtold;
13761 static long double
13762 test (char const *nptr, char **endptr)
13763 {
13764 long double r;
13765 r = strtold (nptr, endptr);
13766 return r;
13767 }
13768 int
13769 main ()
13770 {
13771 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13772 ;
13773 return 0;
13774 }
13775 _ACEOF
13776 if ac_fn_c_try_link "$LINENO"; then :
13777 gl_cv_func_c99_strtold=yes
13778 else
13779 gl_cv_func_c99_strtold=no
13780 fi
13781 rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
13783 fi
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13785 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13786 if test $gl_cv_func_c99_strtold = yes; then
13787
13788 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13789
13790 fi
13791
13792
13793 if false; then
13794 GL_COND_LIBTOOL_TRUE=
13795 GL_COND_LIBTOOL_FALSE='#'
13796 else
13797 GL_COND_LIBTOOL_TRUE='#'
13798 GL_COND_LIBTOOL_FALSE=
13799 fi
13800
13801 gl_cond_libtool=false
13802 gl_libdeps=
13803 gl_ltlibdeps=
13804 gl_m4_base='m4'
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814 gl_source_base='lib'
13815 # Code from module ftoastr:
13816
13817 # Code from module intprops:
13818 # End of code from modules
13819
13820
13821
13822
13823
13824
13825
13826 gltests_libdeps=
13827 gltests_ltlibdeps=
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837 gl_source_base='tests'
13838 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
13839
13840 gl_module_indicator_condition=$gltests_WITNESS
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850 LIBGNU_LIBDEPS="$gl_libdeps"
13851
13852 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13853
13854
13855
13856 for ac_func in strftime
13857 do :
13858 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13859 if test "x$ac_cv_func_strftime" = xyes; then :
13860 cat >>confdefs.h <<_ACEOF
13861 #define HAVE_STRFTIME 1
13862 _ACEOF
13863
13864 else
13865 # strftime is in -lintl on SCO UNIX.
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13867 $as_echo_n "checking for strftime in -lintl... " >&6; }
13868 if ${ac_cv_lib_intl_strftime+:} false; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871 ac_check_lib_save_LIBS=$LIBS
13872 LIBS="-lintl $LIBS"
13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h. */
13875
13876 /* Override any GCC internal prototype to avoid an error.
13877 Use char because int might match the return type of a GCC
13878 builtin and then its argument prototype would still apply. */
13879 #ifdef __cplusplus
13880 extern "C"
13881 #endif
13882 char strftime ();
13883 int
13884 main ()
13885 {
13886 return strftime ();
13887 ;
13888 return 0;
13889 }
13890 _ACEOF
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 ac_cv_lib_intl_strftime=yes
13893 else
13894 ac_cv_lib_intl_strftime=no
13895 fi
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898 LIBS=$ac_check_lib_save_LIBS
13899 fi
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13901 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13902 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13903 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13904
13905 LIBS="-lintl $LIBS"
13906 fi
13907
13908 fi
13909 done
13910
13911
13912 # UNIX98 PTYs.
13913 for ac_func in grantpt
13914 do :
13915 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13916 if test "x$ac_cv_func_grantpt" = xyes; then :
13917 cat >>confdefs.h <<_ACEOF
13918 #define HAVE_GRANTPT 1
13919 _ACEOF
13920
13921 fi
13922 done
13923
13924
13925 # PTY-related GNU extensions.
13926 for ac_func in getpt
13927 do :
13928 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13929 if test "x$ac_cv_func_getpt" = xyes; then :
13930 cat >>confdefs.h <<_ACEOF
13931 #define HAVE_GETPT 1
13932 _ACEOF
13933
13934 fi
13935 done
13936
13937
13938 # Check this now, so that we will NOT find the above functions in ncurses.
13939 # That is because we have not set up to link ncurses in lib-src.
13940 # It's better to believe a function is not available
13941 # than to expect to find it in ncurses.
13942 # Also we need tputs and friends to be able to build at all.
13943 have_tputs_et_al=true
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13945 $as_echo_n "checking for library containing tputs... " >&6; }
13946 if ${ac_cv_search_tputs+:} false; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949 ac_func_search_save_LIBS=$LIBS
13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951 /* end confdefs.h. */
13952
13953 /* Override any GCC internal prototype to avoid an error.
13954 Use char because int might match the return type of a GCC
13955 builtin and then its argument prototype would still apply. */
13956 #ifdef __cplusplus
13957 extern "C"
13958 #endif
13959 char tputs ();
13960 int
13961 main ()
13962 {
13963 return tputs ();
13964 ;
13965 return 0;
13966 }
13967 _ACEOF
13968 for ac_lib in '' ncurses terminfo termcap; do
13969 if test -z "$ac_lib"; then
13970 ac_res="none required"
13971 else
13972 ac_res=-l$ac_lib
13973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13974 fi
13975 if ac_fn_c_try_link "$LINENO"; then :
13976 ac_cv_search_tputs=$ac_res
13977 fi
13978 rm -f core conftest.err conftest.$ac_objext \
13979 conftest$ac_exeext
13980 if ${ac_cv_search_tputs+:} false; then :
13981 break
13982 fi
13983 done
13984 if ${ac_cv_search_tputs+:} false; then :
13985
13986 else
13987 ac_cv_search_tputs=no
13988 fi
13989 rm conftest.$ac_ext
13990 LIBS=$ac_func_search_save_LIBS
13991 fi
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13993 $as_echo "$ac_cv_search_tputs" >&6; }
13994 ac_res=$ac_cv_search_tputs
13995 if test "$ac_res" != no; then :
13996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13997
13998 else
13999 have_tputs_et_al=false
14000 fi
14001
14002 if test "$have_tputs_et_al" != true; then
14003 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
14004 Maybe some development libraries/packages are missing? Try installing
14005 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
14006 fi
14007 # Must define this when any termcap library is found.
14008
14009 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14010
14011 ## FIXME This was the cpp logic, but I am not sure it is right.
14012 ## The above test has not necessarily found libncurses.
14013 HAVE_LIBNCURSES=yes
14014
14015 ## Use terminfo instead of termcap?
14016 ## Note only system files NOT using terminfo are:
14017 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14018 ## darwin|gnu without ncurses.
14019 TERMINFO=no
14020 LIBS_TERMCAP=
14021 case "$opsys" in
14022 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14023 ## hpux10-20: Use the system provided termcap(3) library.
14024 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14025 ## is necessary. Otherwise Emacs dumps core when run -nw.
14026 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14027
14028 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14029 ## The ncurses library has been moved out of the System framework in
14030 ## Mac OS X 10.2. So if configure detects it, set the command-line
14031 ## option to use it.
14032 darwin|gnu*)
14033 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14034 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14035 TERMINFO=yes
14036 LIBS_TERMCAP="-lncurses"
14037 fi
14038 ;;
14039
14040 freebsd)
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14042 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14043 if ${emacs_cv_freebsd_terminfo+:} false; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 #include <osreldate.h>
14049 int
14050 main ()
14051 {
14052 #if __FreeBSD_version < 400000
14053 fail;
14054 #endif
14055
14056 ;
14057 return 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_link "$LINENO"; then :
14061 emacs_cv_freebsd_terminfo=yes
14062 else
14063 emacs_cv_freebsd_terminfo=no
14064 fi
14065 rm -f core conftest.err conftest.$ac_objext \
14066 conftest$ac_exeext conftest.$ac_ext
14067 fi
14068
14069
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14071 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14072
14073 if test $emacs_cv_freebsd_terminfo = yes; then
14074 TERMINFO=yes
14075 LIBS_TERMCAP="-lncurses"
14076 else
14077 LIBS_TERMCAP="-ltermcap"
14078 fi
14079 ;;
14080
14081 netbsd)
14082 if test $ac_cv_search_tputs = -lterminfo; then
14083 TERMINFO=yes
14084 LIBS_TERMCAP="-lterminfo"
14085 else
14086 LIBS_TERMCAP="-ltermcap"
14087 fi
14088 ;;
14089
14090 esac
14091
14092 case "$opsys" in
14093 ## hpux: Make sure we get select from libc rather than from libcurses
14094 ## because libcurses on HPUX 10.10 has a broken version of select.
14095 ## We used to use -lc -lcurses, but this may be cleaner.
14096 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14097
14098 openbsd) LIBS_TERMCAP="-lncurses" ;;
14099
14100 ## Must use system termcap, if we use any termcap. It does special things.
14101 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14102 esac
14103
14104 TERMCAP_OBJ=tparam.o
14105 if test $TERMINFO = yes; then
14106
14107 $as_echo "#define TERMINFO 1" >>confdefs.h
14108
14109
14110 ## Default used to be -ltermcap. Add a case above if need something else.
14111 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14112
14113 TERMCAP_OBJ=terminfo.o
14114 fi
14115
14116
14117
14118
14119 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14120 resolv=no
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123 #include <netinet/in.h>
14124 #include <arpa/nameser.h>
14125 #include <resolv.h>
14126 int
14127 main ()
14128 {
14129 return res_init();
14130 ;
14131 return 0;
14132 }
14133 _ACEOF
14134 if ac_fn_c_try_link "$LINENO"; then :
14135 have_res_init=yes
14136 else
14137 have_res_init=no
14138 fi
14139 rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141 if test "$have_res_init" = no; then
14142 OLIBS="$LIBS"
14143 LIBS="$LIBS -lresolv"
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14145 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 #include <netinet/in.h>
14149 #include <arpa/nameser.h>
14150 #include <resolv.h>
14151 int
14152 main ()
14153 {
14154 return res_init();
14155 ;
14156 return 0;
14157 }
14158 _ACEOF
14159 if ac_fn_c_try_link "$LINENO"; then :
14160 have_res_init=yes
14161 else
14162 have_res_init=no
14163 fi
14164 rm -f core conftest.err conftest.$ac_objext \
14165 conftest$ac_exeext conftest.$ac_ext
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14167 $as_echo "$have_res_init" >&6; }
14168 if test "$have_res_init" = yes ; then
14169 resolv=yes
14170 fi
14171 LIBS="$OLIBS"
14172 fi
14173
14174 if test "$have_res_init" = yes; then
14175
14176 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14177
14178 fi
14179
14180 # Do we need the Hesiod library to provide the support routines?
14181 LIBHESIOD=
14182 if test "$with_hesiod" != no ; then
14183 # Don't set $LIBS here -- see comments above. FIXME which comments?
14184 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14185 if test "x$ac_cv_func_res_send" = xyes; then :
14186
14187 else
14188 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14189 if test "x$ac_cv_func___res_send" = xyes; then :
14190
14191 else
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14193 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14194 if ${ac_cv_lib_resolv_res_send+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 ac_check_lib_save_LIBS=$LIBS
14198 LIBS="-lresolv $LIBS"
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201
14202 /* Override any GCC internal prototype to avoid an error.
14203 Use char because int might match the return type of a GCC
14204 builtin and then its argument prototype would still apply. */
14205 #ifdef __cplusplus
14206 extern "C"
14207 #endif
14208 char res_send ();
14209 int
14210 main ()
14211 {
14212 return res_send ();
14213 ;
14214 return 0;
14215 }
14216 _ACEOF
14217 if ac_fn_c_try_link "$LINENO"; then :
14218 ac_cv_lib_resolv_res_send=yes
14219 else
14220 ac_cv_lib_resolv_res_send=no
14221 fi
14222 rm -f core conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
14224 LIBS=$ac_check_lib_save_LIBS
14225 fi
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14227 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14228 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
14229 resolv=yes
14230 else
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14232 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14233 if ${ac_cv_lib_resolv___res_send+:} false; then :
14234 $as_echo_n "(cached) " >&6
14235 else
14236 ac_check_lib_save_LIBS=$LIBS
14237 LIBS="-lresolv $LIBS"
14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h. */
14240
14241 /* Override any GCC internal prototype to avoid an error.
14242 Use char because int might match the return type of a GCC
14243 builtin and then its argument prototype would still apply. */
14244 #ifdef __cplusplus
14245 extern "C"
14246 #endif
14247 char __res_send ();
14248 int
14249 main ()
14250 {
14251 return __res_send ();
14252 ;
14253 return 0;
14254 }
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 ac_cv_lib_resolv___res_send=yes
14258 else
14259 ac_cv_lib_resolv___res_send=no
14260 fi
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 LIBS=$ac_check_lib_save_LIBS
14264 fi
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14266 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14267 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
14268 resolv=yes
14269 fi
14270
14271 fi
14272
14273 fi
14274
14275 fi
14276
14277 if test "$resolv" = yes ; then
14278 RESOLVLIB=-lresolv
14279 else
14280 RESOLVLIB=
14281 fi
14282 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14283 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
14284
14285 else
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14287 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14288 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-lhesiod $RESOLVLIB $LIBS"
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295
14296 /* Override any GCC internal prototype to avoid an error.
14297 Use char because int might match the return type of a GCC
14298 builtin and then its argument prototype would still apply. */
14299 #ifdef __cplusplus
14300 extern "C"
14301 #endif
14302 char hes_getmailhost ();
14303 int
14304 main ()
14305 {
14306 return hes_getmailhost ();
14307 ;
14308 return 0;
14309 }
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"; then :
14312 ac_cv_lib_hesiod_hes_getmailhost=yes
14313 else
14314 ac_cv_lib_hesiod_hes_getmailhost=no
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext \
14317 conftest$ac_exeext conftest.$ac_ext
14318 LIBS=$ac_check_lib_save_LIBS
14319 fi
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14321 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14322 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
14323 hesiod=yes
14324 else
14325 :
14326 fi
14327
14328 fi
14329
14330
14331 if test x"$hesiod" = xyes; then
14332
14333 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14334
14335 LIBHESIOD=-lhesiod
14336 fi
14337 fi
14338
14339
14340 # Do we need libresolv (due to res_init or Hesiod)?
14341 if test "$resolv" = yes ; then
14342
14343 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14344
14345 LIBRESOLV=-lresolv
14346 else
14347 LIBRESOLV=
14348 fi
14349
14350
14351 # These tell us which Kerberos-related libraries to use.
14352 COM_ERRLIB=
14353 CRYPTOLIB=
14354 KRB5LIB=
14355 DESLIB=
14356 KRB4LIB=
14357
14358 if test "${with_kerberos}" != no; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14360 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14361 if ${ac_cv_lib_com_err_com_err+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 ac_check_lib_save_LIBS=$LIBS
14365 LIBS="-lcom_err $LIBS"
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368
14369 /* Override any GCC internal prototype to avoid an error.
14370 Use char because int might match the return type of a GCC
14371 builtin and then its argument prototype would still apply. */
14372 #ifdef __cplusplus
14373 extern "C"
14374 #endif
14375 char com_err ();
14376 int
14377 main ()
14378 {
14379 return com_err ();
14380 ;
14381 return 0;
14382 }
14383 _ACEOF
14384 if ac_fn_c_try_link "$LINENO"; then :
14385 ac_cv_lib_com_err_com_err=yes
14386 else
14387 ac_cv_lib_com_err_com_err=no
14388 fi
14389 rm -f core conftest.err conftest.$ac_objext \
14390 conftest$ac_exeext conftest.$ac_ext
14391 LIBS=$ac_check_lib_save_LIBS
14392 fi
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14394 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14395 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
14396 have_com_err=yes
14397 else
14398 have_com_err=no
14399 fi
14400
14401 if test $have_com_err = yes; then
14402 COM_ERRLIB=-lcom_err
14403 LIBS="$COM_ERRLIB $LIBS"
14404
14405 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14406
14407 fi
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14409 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14410 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 ac_check_lib_save_LIBS=$LIBS
14414 LIBS="-lcrypto $LIBS"
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14417
14418 /* Override any GCC internal prototype to avoid an error.
14419 Use char because int might match the return type of a GCC
14420 builtin and then its argument prototype would still apply. */
14421 #ifdef __cplusplus
14422 extern "C"
14423 #endif
14424 char mit_des_cbc_encrypt ();
14425 int
14426 main ()
14427 {
14428 return mit_des_cbc_encrypt ();
14429 ;
14430 return 0;
14431 }
14432 _ACEOF
14433 if ac_fn_c_try_link "$LINENO"; then :
14434 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14435 else
14436 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14437 fi
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14440 LIBS=$ac_check_lib_save_LIBS
14441 fi
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14443 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14444 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
14445 have_crypto=yes
14446 else
14447 have_crypto=no
14448 fi
14449
14450 if test $have_crypto = yes; then
14451 CRYPTOLIB=-lcrypto
14452 LIBS="$CRYPTOLIB $LIBS"
14453
14454 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14455
14456 fi
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14458 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14459 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462 ac_check_lib_save_LIBS=$LIBS
14463 LIBS="-lk5crypto $LIBS"
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14466
14467 /* Override any GCC internal prototype to avoid an error.
14468 Use char because int might match the return type of a GCC
14469 builtin and then its argument prototype would still apply. */
14470 #ifdef __cplusplus
14471 extern "C"
14472 #endif
14473 char mit_des_cbc_encrypt ();
14474 int
14475 main ()
14476 {
14477 return mit_des_cbc_encrypt ();
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 if ac_fn_c_try_link "$LINENO"; then :
14483 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14484 else
14485 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14486 fi
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14489 LIBS=$ac_check_lib_save_LIBS
14490 fi
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14492 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14493 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
14494 have_k5crypto=yes
14495 else
14496 have_k5crypto=no
14497 fi
14498
14499 if test $have_k5crypto = yes; then
14500 CRYPTOLIB=-lk5crypto
14501 LIBS="$CRYPTOLIB $LIBS"
14502
14503 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14504
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14507 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14508 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 ac_check_lib_save_LIBS=$LIBS
14512 LIBS="-lkrb5 $LIBS"
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14515
14516 /* Override any GCC internal prototype to avoid an error.
14517 Use char because int might match the return type of a GCC
14518 builtin and then its argument prototype would still apply. */
14519 #ifdef __cplusplus
14520 extern "C"
14521 #endif
14522 char krb5_init_context ();
14523 int
14524 main ()
14525 {
14526 return krb5_init_context ();
14527 ;
14528 return 0;
14529 }
14530 _ACEOF
14531 if ac_fn_c_try_link "$LINENO"; then :
14532 ac_cv_lib_krb5_krb5_init_context=yes
14533 else
14534 ac_cv_lib_krb5_krb5_init_context=no
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14539 fi
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14541 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14542 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
14543 have_krb5=yes
14544 else
14545 have_krb5=no
14546 fi
14547
14548 if test $have_krb5=yes; then
14549 KRB5LIB=-lkrb5
14550 LIBS="$KRB5LIB $LIBS"
14551
14552 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14553
14554 fi
14555 if test "${with_kerberos5}" = no; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14557 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14558 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560 else
14561 ac_check_lib_save_LIBS=$LIBS
14562 LIBS="-ldes425 $LIBS"
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14569 #ifdef __cplusplus
14570 extern "C"
14571 #endif
14572 char des_cbc_encrypt ();
14573 int
14574 main ()
14575 {
14576 return des_cbc_encrypt ();
14577 ;
14578 return 0;
14579 }
14580 _ACEOF
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_lib_des425_des_cbc_encrypt=yes
14583 else
14584 ac_cv_lib_des425_des_cbc_encrypt=no
14585 fi
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14589 fi
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14591 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14592 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
14593 have_des425=yes
14594 else
14595 have_des425=no
14596 fi
14597
14598 if test $have_des425 = yes; then
14599 DESLIB=-ldes425
14600 LIBS="$DESLIB $LIBS"
14601
14602 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14603
14604 else
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14606 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14607 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
14608 $as_echo_n "(cached) " >&6
14609 else
14610 ac_check_lib_save_LIBS=$LIBS
14611 LIBS="-ldes $LIBS"
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14614
14615 /* Override any GCC internal prototype to avoid an error.
14616 Use char because int might match the return type of a GCC
14617 builtin and then its argument prototype would still apply. */
14618 #ifdef __cplusplus
14619 extern "C"
14620 #endif
14621 char des_cbc_encrypt ();
14622 int
14623 main ()
14624 {
14625 return des_cbc_encrypt ();
14626 ;
14627 return 0;
14628 }
14629 _ACEOF
14630 if ac_fn_c_try_link "$LINENO"; then :
14631 ac_cv_lib_des_des_cbc_encrypt=yes
14632 else
14633 ac_cv_lib_des_des_cbc_encrypt=no
14634 fi
14635 rm -f core conftest.err conftest.$ac_objext \
14636 conftest$ac_exeext conftest.$ac_ext
14637 LIBS=$ac_check_lib_save_LIBS
14638 fi
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14640 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14641 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
14642 have_des=yes
14643 else
14644 have_des=no
14645 fi
14646
14647 if test $have_des = yes; then
14648 DESLIB=-ldes
14649 LIBS="$DESLIB $LIBS"
14650
14651 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14652
14653 fi
14654 fi
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14656 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14657 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 ac_check_lib_save_LIBS=$LIBS
14661 LIBS="-lkrb4 $LIBS"
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664
14665 /* Override any GCC internal prototype to avoid an error.
14666 Use char because int might match the return type of a GCC
14667 builtin and then its argument prototype would still apply. */
14668 #ifdef __cplusplus
14669 extern "C"
14670 #endif
14671 char krb_get_cred ();
14672 int
14673 main ()
14674 {
14675 return krb_get_cred ();
14676 ;
14677 return 0;
14678 }
14679 _ACEOF
14680 if ac_fn_c_try_link "$LINENO"; then :
14681 ac_cv_lib_krb4_krb_get_cred=yes
14682 else
14683 ac_cv_lib_krb4_krb_get_cred=no
14684 fi
14685 rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14688 fi
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14690 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14691 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
14692 have_krb4=yes
14693 else
14694 have_krb4=no
14695 fi
14696
14697 if test $have_krb4 = yes; then
14698 KRB4LIB=-lkrb4
14699 LIBS="$KRB4LIB $LIBS"
14700
14701 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14702
14703 else
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14705 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14706 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
14707 $as_echo_n "(cached) " >&6
14708 else
14709 ac_check_lib_save_LIBS=$LIBS
14710 LIBS="-lkrb $LIBS"
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713
14714 /* Override any GCC internal prototype to avoid an error.
14715 Use char because int might match the return type of a GCC
14716 builtin and then its argument prototype would still apply. */
14717 #ifdef __cplusplus
14718 extern "C"
14719 #endif
14720 char krb_get_cred ();
14721 int
14722 main ()
14723 {
14724 return krb_get_cred ();
14725 ;
14726 return 0;
14727 }
14728 _ACEOF
14729 if ac_fn_c_try_link "$LINENO"; then :
14730 ac_cv_lib_krb_krb_get_cred=yes
14731 else
14732 ac_cv_lib_krb_krb_get_cred=no
14733 fi
14734 rm -f core conftest.err conftest.$ac_objext \
14735 conftest$ac_exeext conftest.$ac_ext
14736 LIBS=$ac_check_lib_save_LIBS
14737 fi
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14739 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14740 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
14741 have_krb=yes
14742 else
14743 have_krb=no
14744 fi
14745
14746 if test $have_krb = yes; then
14747 KRB4LIB=-lkrb
14748 LIBS="$KRB4LIB $LIBS"
14749
14750 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14751
14752 fi
14753 fi
14754 fi
14755
14756 if test "${with_kerberos5}" != no; then
14757 for ac_header in krb5.h
14758 do :
14759 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14760 if test "x$ac_cv_header_krb5_h" = xyes; then :
14761 cat >>confdefs.h <<_ACEOF
14762 #define HAVE_KRB5_H 1
14763 _ACEOF
14764 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14765 "
14766 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
14767
14768 cat >>confdefs.h <<_ACEOF
14769 #define HAVE_KRB5_ERROR_TEXT 1
14770 _ACEOF
14771
14772
14773 fi
14774 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14775 "
14776 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
14777
14778 cat >>confdefs.h <<_ACEOF
14779 #define HAVE_KRB5_ERROR_E_TEXT 1
14780 _ACEOF
14781
14782
14783 fi
14784
14785 fi
14786
14787 done
14788
14789 else
14790 for ac_header in des.h
14791 do :
14792 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14793 if test "x$ac_cv_header_des_h" = xyes; then :
14794 cat >>confdefs.h <<_ACEOF
14795 #define HAVE_DES_H 1
14796 _ACEOF
14797
14798 else
14799 for ac_header in kerberosIV/des.h
14800 do :
14801 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14802 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
14803 cat >>confdefs.h <<_ACEOF
14804 #define HAVE_KERBEROSIV_DES_H 1
14805 _ACEOF
14806
14807 else
14808 for ac_header in kerberos/des.h
14809 do :
14810 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14811 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
14812 cat >>confdefs.h <<_ACEOF
14813 #define HAVE_KERBEROS_DES_H 1
14814 _ACEOF
14815
14816 fi
14817
14818 done
14819
14820 fi
14821
14822 done
14823
14824 fi
14825
14826 done
14827
14828 for ac_header in krb.h
14829 do :
14830 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14831 if test "x$ac_cv_header_krb_h" = xyes; then :
14832 cat >>confdefs.h <<_ACEOF
14833 #define HAVE_KRB_H 1
14834 _ACEOF
14835
14836 else
14837 for ac_header in kerberosIV/krb.h
14838 do :
14839 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14840 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
14841 cat >>confdefs.h <<_ACEOF
14842 #define HAVE_KERBEROSIV_KRB_H 1
14843 _ACEOF
14844
14845 else
14846 for ac_header in kerberos/krb.h
14847 do :
14848 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14849 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_KERBEROS_KRB_H 1
14852 _ACEOF
14853
14854 fi
14855
14856 done
14857
14858 fi
14859
14860 done
14861
14862 fi
14863
14864 done
14865
14866 fi
14867 for ac_header in com_err.h
14868 do :
14869 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14870 if test "x$ac_cv_header_com_err_h" = xyes; then :
14871 cat >>confdefs.h <<_ACEOF
14872 #define HAVE_COM_ERR_H 1
14873 _ACEOF
14874
14875 fi
14876
14877 done
14878
14879 fi
14880
14881
14882
14883
14884
14885
14886
14887 # Solaris requires -lintl if you want strerror (which calls dgettext)
14888 # to return localized messages.
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14890 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14891 if ${ac_cv_lib_intl_dgettext+:} false; then :
14892 $as_echo_n "(cached) " >&6
14893 else
14894 ac_check_lib_save_LIBS=$LIBS
14895 LIBS="-lintl $LIBS"
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14898
14899 /* Override any GCC internal prototype to avoid an error.
14900 Use char because int might match the return type of a GCC
14901 builtin and then its argument prototype would still apply. */
14902 #ifdef __cplusplus
14903 extern "C"
14904 #endif
14905 char dgettext ();
14906 int
14907 main ()
14908 {
14909 return dgettext ();
14910 ;
14911 return 0;
14912 }
14913 _ACEOF
14914 if ac_fn_c_try_link "$LINENO"; then :
14915 ac_cv_lib_intl_dgettext=yes
14916 else
14917 ac_cv_lib_intl_dgettext=no
14918 fi
14919 rm -f core conftest.err conftest.$ac_objext \
14920 conftest$ac_exeext conftest.$ac_ext
14921 LIBS=$ac_check_lib_save_LIBS
14922 fi
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14924 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14925 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_LIBINTL 1
14928 _ACEOF
14929
14930 LIBS="-lintl $LIBS"
14931
14932 fi
14933
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14936 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14937 if ${emacs_cv_localtime_cache+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 if test x$ac_cv_func_tzset = xyes; then
14941 if test "$cross_compiling" = yes; then :
14942 # If we have tzset, assume the worst when cross-compiling.
14943 emacs_cv_localtime_cache=yes
14944 else
14945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946 /* end confdefs.h. */
14947 #include <time.h>
14948 char TZ_GMT0[] = "TZ=GMT0";
14949 char TZ_PST8[] = "TZ=PST8";
14950 main()
14951 {
14952 time_t now = time ((time_t *) 0);
14953 int hour_GMT0, hour_unset;
14954 if (putenv (TZ_GMT0) != 0)
14955 exit (1);
14956 hour_GMT0 = localtime (&now)->tm_hour;
14957 unsetenv("TZ");
14958 hour_unset = localtime (&now)->tm_hour;
14959 if (putenv (TZ_PST8) != 0)
14960 exit (1);
14961 if (localtime (&now)->tm_hour == hour_GMT0)
14962 exit (1);
14963 unsetenv("TZ");
14964 if (localtime (&now)->tm_hour != hour_unset)
14965 exit (1);
14966 exit (0);
14967 }
14968 _ACEOF
14969 if ac_fn_c_try_run "$LINENO"; then :
14970 emacs_cv_localtime_cache=no
14971 else
14972 emacs_cv_localtime_cache=yes
14973 fi
14974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14975 conftest.$ac_objext conftest.beam conftest.$ac_ext
14976 fi
14977
14978 else
14979 # If we lack tzset, report that localtime does not cache TZ,
14980 # since we can't invalidate the cache if we don't have tzset.
14981 emacs_cv_localtime_cache=no
14982 fi
14983 fi
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14985 $as_echo "$emacs_cv_localtime_cache" >&6; }
14986 if test $emacs_cv_localtime_cache = yes; then
14987
14988 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14989
14990 fi
14991
14992 if test "x$HAVE_TIMEVAL" = xyes; then
14993 for ac_func in gettimeofday
14994 do :
14995 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14996 if test "x$ac_cv_func_gettimeofday" = xyes; then :
14997 cat >>confdefs.h <<_ACEOF
14998 #define HAVE_GETTIMEOFDAY 1
14999 _ACEOF
15000
15001 fi
15002 done
15003
15004 if test $ac_cv_func_gettimeofday = yes; then
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15006 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15007 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
15008 $as_echo_n "(cached) " >&6
15009 else
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15012
15013 #ifdef TIME_WITH_SYS_TIME
15014 #include <sys/time.h>
15015 #include <time.h>
15016 #else
15017 #ifdef HAVE_SYS_TIME_H
15018 #include <sys/time.h>
15019 #else
15020 #include <time.h>
15021 #endif
15022 #endif
15023 int
15024 main ()
15025 {
15026 struct timeval time;
15027 gettimeofday (&time, 0);
15028 ;
15029 return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033 emacs_cv_gettimeofday_two_arguments=yes
15034 else
15035 emacs_cv_gettimeofday_two_arguments=no
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 fi
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15040 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15041 if test $emacs_cv_gettimeofday_two_arguments = no; then
15042
15043 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15044
15045 fi
15046 fi
15047 fi
15048
15049 ok_so_far=yes
15050 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15051 if test "x$ac_cv_func_socket" = xyes; then :
15052
15053 else
15054 ok_so_far=no
15055 fi
15056
15057 if test $ok_so_far = yes; then
15058 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15059 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
15060
15061 else
15062 ok_so_far=no
15063 fi
15064
15065
15066 fi
15067 if test $ok_so_far = yes; then
15068 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15069 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
15070
15071 else
15072 ok_so_far=no
15073 fi
15074
15075
15076 fi
15077 if test $ok_so_far = yes; then
15078
15079 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15080
15081 fi
15082
15083 if test -f /usr/lpp/X11/bin/smt.exp; then
15084
15085 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15086
15087 fi
15088
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15090 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15091 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15093 $as_echo "yes" >&6; }
15094
15095 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15096
15097 else
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099 $as_echo "no" >&6; }
15100 fi
15101
15102 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15103 if test "x$ac_cv_type_pid_t" = xyes; then :
15104
15105 else
15106
15107 cat >>confdefs.h <<_ACEOF
15108 #define pid_t int
15109 _ACEOF
15110
15111 fi
15112
15113 for ac_header in vfork.h
15114 do :
15115 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15116 if test "x$ac_cv_header_vfork_h" = xyes; then :
15117 cat >>confdefs.h <<_ACEOF
15118 #define HAVE_VFORK_H 1
15119 _ACEOF
15120
15121 fi
15122
15123 done
15124
15125 for ac_func in fork vfork
15126 do :
15127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15130 cat >>confdefs.h <<_ACEOF
15131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15132 _ACEOF
15133
15134 fi
15135 done
15136
15137 if test "x$ac_cv_func_fork" = xyes; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15139 $as_echo_n "checking for working fork... " >&6; }
15140 if ${ac_cv_func_fork_works+:} false; then :
15141 $as_echo_n "(cached) " >&6
15142 else
15143 if test "$cross_compiling" = yes; then :
15144 ac_cv_func_fork_works=cross
15145 else
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 $ac_includes_default
15149 int
15150 main ()
15151 {
15152
15153 /* By Ruediger Kuhlmann. */
15154 return fork () < 0;
15155
15156 ;
15157 return 0;
15158 }
15159 _ACEOF
15160 if ac_fn_c_try_run "$LINENO"; then :
15161 ac_cv_func_fork_works=yes
15162 else
15163 ac_cv_func_fork_works=no
15164 fi
15165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15166 conftest.$ac_objext conftest.beam conftest.$ac_ext
15167 fi
15168
15169 fi
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15171 $as_echo "$ac_cv_func_fork_works" >&6; }
15172
15173 else
15174 ac_cv_func_fork_works=$ac_cv_func_fork
15175 fi
15176 if test "x$ac_cv_func_fork_works" = xcross; then
15177 case $host in
15178 *-*-amigaos* | *-*-msdosdjgpp*)
15179 # Override, as these systems have only a dummy fork() stub
15180 ac_cv_func_fork_works=no
15181 ;;
15182 *)
15183 ac_cv_func_fork_works=yes
15184 ;;
15185 esac
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15187 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15188 fi
15189 ac_cv_func_vfork_works=$ac_cv_func_vfork
15190 if test "x$ac_cv_func_vfork" = xyes; then
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15192 $as_echo_n "checking for working vfork... " >&6; }
15193 if ${ac_cv_func_vfork_works+:} false; then :
15194 $as_echo_n "(cached) " >&6
15195 else
15196 if test "$cross_compiling" = yes; then :
15197 ac_cv_func_vfork_works=cross
15198 else
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h. */
15201 /* Thanks to Paul Eggert for this test. */
15202 $ac_includes_default
15203 #include <sys/wait.h>
15204 #ifdef HAVE_VFORK_H
15205 # include <vfork.h>
15206 #endif
15207 /* On some sparc systems, changes by the child to local and incoming
15208 argument registers are propagated back to the parent. The compiler
15209 is told about this with #include <vfork.h>, but some compilers
15210 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15211 static variable whose address is put into a register that is
15212 clobbered by the vfork. */
15213 static void
15214 #ifdef __cplusplus
15215 sparc_address_test (int arg)
15216 # else
15217 sparc_address_test (arg) int arg;
15218 #endif
15219 {
15220 static pid_t child;
15221 if (!child) {
15222 child = vfork ();
15223 if (child < 0) {
15224 perror ("vfork");
15225 _exit(2);
15226 }
15227 if (!child) {
15228 arg = getpid();
15229 write(-1, "", 0);
15230 _exit (arg);
15231 }
15232 }
15233 }
15234
15235 int
15236 main ()
15237 {
15238 pid_t parent = getpid ();
15239 pid_t child;
15240
15241 sparc_address_test (0);
15242
15243 child = vfork ();
15244
15245 if (child == 0) {
15246 /* Here is another test for sparc vfork register problems. This
15247 test uses lots of local variables, at least as many local
15248 variables as main has allocated so far including compiler
15249 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15250 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15251 reuse the register of parent for one of the local variables,
15252 since it will think that parent can't possibly be used any more
15253 in this routine. Assigning to the local variable will thus
15254 munge parent in the parent process. */
15255 pid_t
15256 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15257 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15258 /* Convince the compiler that p..p7 are live; otherwise, it might
15259 use the same hardware register for all 8 local variables. */
15260 if (p != p1 || p != p2 || p != p3 || p != p4
15261 || p != p5 || p != p6 || p != p7)
15262 _exit(1);
15263
15264 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15265 from child file descriptors. If the child closes a descriptor
15266 before it execs or exits, this munges the parent's descriptor
15267 as well. Test for this by closing stdout in the child. */
15268 _exit(close(fileno(stdout)) != 0);
15269 } else {
15270 int status;
15271 struct stat st;
15272
15273 while (wait(&status) != child)
15274 ;
15275 return (
15276 /* Was there some problem with vforking? */
15277 child < 0
15278
15279 /* Did the child fail? (This shouldn't happen.) */
15280 || status
15281
15282 /* Did the vfork/compiler bug occur? */
15283 || parent != getpid()
15284
15285 /* Did the file descriptor bug occur? */
15286 || fstat(fileno(stdout), &st) != 0
15287 );
15288 }
15289 }
15290 _ACEOF
15291 if ac_fn_c_try_run "$LINENO"; then :
15292 ac_cv_func_vfork_works=yes
15293 else
15294 ac_cv_func_vfork_works=no
15295 fi
15296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15297 conftest.$ac_objext conftest.beam conftest.$ac_ext
15298 fi
15299
15300 fi
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15302 $as_echo "$ac_cv_func_vfork_works" >&6; }
15303
15304 fi;
15305 if test "x$ac_cv_func_fork_works" = xcross; then
15306 ac_cv_func_vfork_works=$ac_cv_func_vfork
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15308 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15309 fi
15310
15311 if test "x$ac_cv_func_vfork_works" = xyes; then
15312
15313 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15314
15315 else
15316
15317 $as_echo "#define vfork fork" >>confdefs.h
15318
15319 fi
15320 if test "x$ac_cv_func_fork_works" = xyes; then
15321
15322 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15323
15324 fi
15325
15326
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15328 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15329 if ${emacs_cv_langinfo_codeset+:} false; then :
15330 $as_echo_n "(cached) " >&6
15331 else
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334 #include <langinfo.h>
15335 int
15336 main ()
15337 {
15338 char* cs = nl_langinfo(CODESET);
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 if ac_fn_c_try_link "$LINENO"; then :
15344 emacs_cv_langinfo_codeset=yes
15345 else
15346 emacs_cv_langinfo_codeset=no
15347 fi
15348 rm -f core conftest.err conftest.$ac_objext \
15349 conftest$ac_exeext conftest.$ac_ext
15350
15351 fi
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15353 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15354 if test $emacs_cv_langinfo_codeset = yes; then
15355
15356 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15357
15358 fi
15359
15360 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15361 if test "x$ac_cv_type_size_t" = xyes; then :
15362
15363 cat >>confdefs.h <<_ACEOF
15364 #define HAVE_SIZE_T 1
15365 _ACEOF
15366
15367
15368 fi
15369
15370
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15372 $as_echo_n "checking for mbstate_t... " >&6; }
15373 if ${ac_cv_type_mbstate_t+:} false; then :
15374 $as_echo_n "(cached) " >&6
15375 else
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 $ac_includes_default
15379 # include <wchar.h>
15380 int
15381 main ()
15382 {
15383 mbstate_t x; return sizeof x;
15384 ;
15385 return 0;
15386 }
15387 _ACEOF
15388 if ac_fn_c_try_compile "$LINENO"; then :
15389 ac_cv_type_mbstate_t=yes
15390 else
15391 ac_cv_type_mbstate_t=no
15392 fi
15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 fi
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15396 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15397 if test $ac_cv_type_mbstate_t = yes; then
15398
15399 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15400
15401 else
15402
15403 $as_echo "#define mbstate_t int" >>confdefs.h
15404
15405 fi
15406
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
15408 $as_echo_n "checking for C restrict keyword... " >&6; }
15409 if ${emacs_cv_c_restrict+:} false; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15414 void fred (int *restrict x);
15415 int
15416 main ()
15417 {
15418
15419 ;
15420 return 0;
15421 }
15422 _ACEOF
15423 if ac_fn_c_try_compile "$LINENO"; then :
15424 emacs_cv_c_restrict=yes
15425 else
15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h. */
15428 void fred (int *__restrict x);
15429 int
15430 main ()
15431 {
15432
15433 ;
15434 return 0;
15435 }
15436 _ACEOF
15437 if ac_fn_c_try_compile "$LINENO"; then :
15438 emacs_cv_c_restrict=__restrict
15439 else
15440 emacs_cv_c_restrict=no
15441 fi
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 fi
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445 fi
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
15447 $as_echo "$emacs_cv_c_restrict" >&6; }
15448 case "$emacs_cv_c_restrict" in
15449 yes) emacs_restrict=restrict;;
15450 no) emacs_restrict="";;
15451 *) emacs_restrict="$emacs_cv_c_restrict";;
15452 esac
15453 if test "$emacs_restrict" != __restrict; then
15454
15455 cat >>confdefs.h <<_ACEOF
15456 #define __restrict $emacs_restrict
15457 _ACEOF
15458
15459 fi
15460
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15462 $as_echo_n "checking for C restricted array declarations... " >&6; }
15463 if ${emacs_cv_c_restrict_arr+:} false; then :
15464 $as_echo_n "(cached) " >&6
15465 else
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468 void fred (int x[__restrict]);
15469 int
15470 main ()
15471 {
15472
15473 ;
15474 return 0;
15475 }
15476 _ACEOF
15477 if ac_fn_c_try_compile "$LINENO"; then :
15478 emacs_cv_c_restrict_arr=yes
15479 else
15480 emacs_cv_c_restrict_arr=no
15481 fi
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15483 fi
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15485 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15486 if test "$emacs_cv_c_restrict_arr" = yes; then
15487
15488 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15489
15490 fi
15491
15492
15493
15494 # Set up the CFLAGS for real compilation, so we can substitute it.
15495 CFLAGS="$REAL_CFLAGS"
15496 CPPFLAGS="$REAL_CPPFLAGS"
15497
15498 ## Hack to detect a buggy GCC version.
15499 if test "x$GCC" = xyes \
15500 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15501 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15502 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15503 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15504 fi
15505
15506 #### Find out which version of Emacs this is.
15507 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
15508 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15509 if test x"${version}" = x; then
15510 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
15511 fi
15512 if test x"${version}" != x"$PACKAGE_VERSION"; then
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
15514 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
15515 fi
15516
15517 ### Specify what sort of things we'll be editing into Makefile and config.h.
15518 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15519
15520
15521 ## Unused?
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15543 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15544 ## end of LIBX_BASE, but nothing ever set it.
15545
15546
15547
15548
15549 ## Used in lwlib/Makefile.in.
15550
15551 if test -n "${machfile}"; then
15552 M_FILE="\$(srcdir)/${machfile}"
15553 else
15554 M_FILE=
15555 fi
15556 S_FILE="\$(srcdir)/${opsysfile}"
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568 cat >>confdefs.h <<_ACEOF
15569 #define EMACS_CONFIGURATION "${canonical}"
15570 _ACEOF
15571
15572
15573 cat >>confdefs.h <<_ACEOF
15574 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15575 _ACEOF
15576
15577 if test -n "$machfile"; then
15578
15579 cat >>confdefs.h <<_ACEOF
15580 #define config_machfile "${machfile}"
15581 _ACEOF
15582
15583 fi
15584
15585 cat >>confdefs.h <<_ACEOF
15586 #define config_opsysfile "${opsysfile}"
15587 _ACEOF
15588
15589
15590 XMENU_OBJ=
15591 XOBJ=
15592 FONT_OBJ=
15593 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15594
15595 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15596
15597 XMENU_OBJ=xmenu.o
15598 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15599 FONT_OBJ=xfont.o
15600 if test "$HAVE_XFT" = "yes"; then
15601 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15602 elif test "$HAVE_FREETYPE" = "yes"; then
15603 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15604 fi
15605
15606 fi
15607
15608
15609
15610
15611 WIDGET_OBJ=
15612 MOTIF_LIBW=
15613 if test "${USE_X_TOOLKIT}" != "none" ; then
15614 WIDGET_OBJ=widget.o
15615
15616 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15617
15618 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15619
15620 $as_echo "#define USE_LUCID 1" >>confdefs.h
15621
15622 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15623
15624 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15625
15626 MOTIF_LIBW=-lXm
15627 case "$opsys" in
15628 gnu-linux)
15629 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15630 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15631 ;;
15632
15633 unixware)
15634 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15635 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15636 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15637 ;;
15638
15639 aix4-2)
15640 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15641 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15642 ;;
15643 esac
15644 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15645 fi
15646 fi
15647
15648
15649 TOOLKIT_LIBW=
15650 case "$USE_X_TOOLKIT" in
15651 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15652 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15653 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15654 esac
15655
15656
15657 if test "$USE_X_TOOLKIT" = "none"; then
15658 LIBXT_OTHER="\$(LIBXSM)"
15659 OLDXMENU_TARGET="really-oldXMenu"
15660 else
15661 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15662 OLDXMENU_TARGET="really-lwlib"
15663 fi
15664
15665
15666 ## The X Menu stuff is present in the X10 distribution, but missing
15667 ## from X11. If we have X10, just use the installed library;
15668 ## otherwise, use our own copy.
15669 if test "${HAVE_X11}" = "yes" ; then
15670
15671 $as_echo "#define HAVE_X11 1" >>confdefs.h
15672
15673
15674 if test "$USE_X_TOOLKIT" = "none"; then
15675 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15676 else
15677 OLDXMENU="\${lwlibdir}/liblw.a"
15678 fi
15679 LIBXMENU="\$(OLDXMENU)"
15680 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15681 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15682 else
15683 ## For a syntactically valid Makefile; not actually used for anything.
15684 ## See comments in src/Makefile.in.
15685 OLDXMENU=nothing
15686 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15687 if test "${HAVE_X_WINDOWS}" = "yes"; then
15688 LIBXMENU="-lXMenu"
15689 else
15690 LIBXMENU=
15691 fi
15692 LIBX_OTHER=
15693 OLDXMENU_DEPS=
15694 fi
15695
15696 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15697 OLDXMENU_TARGET=
15698 OLDXMENU=nothing
15699 LIBXMENU=
15700 OLDXMENU_DEPS=
15701 fi
15702
15703
15704
15705
15706
15707
15708
15709 if test "${HAVE_MENUS}" = "yes" ; then
15710
15711 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15712
15713 fi
15714
15715 if test "${GNU_MALLOC}" = "yes" ; then
15716
15717 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15718
15719 fi
15720
15721 RALLOC_OBJ=
15722 if test "${REL_ALLOC}" = "yes" ; then
15723
15724 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15725
15726
15727 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15728 fi
15729
15730
15731 if test "$opsys" = "cygwin"; then
15732 CYGWIN_OBJ="sheap.o"
15733 ## Cygwin differs because of its unexec().
15734 PRE_ALLOC_OBJ=
15735 POST_ALLOC_OBJ=lastfile.o
15736 else
15737 CYGWIN_OBJ=
15738 PRE_ALLOC_OBJ=lastfile.o
15739 POST_ALLOC_OBJ=
15740 fi
15741
15742
15743
15744
15745
15746 case "$opsys" in
15747 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
15748
15749 darwin)
15750 ## The -headerpad option tells ld (see man page) to leave room at the
15751 ## end of the header for adding load commands. Needed for dumping.
15752 ## 0x690 is the total size of 30 segment load commands (at 56
15753 ## each); under Cocoa 31 commands are required.
15754 if test "$HAVE_NS" = "yes"; then
15755 libs_nsgui="-framework AppKit"
15756 headerpad_extra=6C8
15757 else
15758 libs_nsgui=
15759 headerpad_extra=690
15760 fi
15761 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
15762
15763 ## This is here because src/Makefile.in did some extra fiddling around
15764 ## with LD_SWITCH_SYSTEM. The cpp logic was:
15765 ## #ifndef LD_SWITCH_SYSTEM
15766 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
15767 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
15768 ## not using gcc, darwin system not on an alpha (ie darwin, since
15769 ## darwin + alpha does not occur).
15770 ## Because this was done in src/Makefile.in, the resulting part of
15771 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
15772 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
15773 ## rather than LD_SWITCH_SYSTEM.
15774 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
15775 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
15776 ;;
15777
15778 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
15779 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
15780 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
15781 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
15782 ## had different values in configure (in ac_link) and src/Makefile.in.
15783 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
15784 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
15785
15786 *) LD_SWITCH_SYSTEM_TEMACS= ;;
15787 esac
15788
15789 if test "$NS_IMPL_GNUSTEP" = "yes"; then
15790 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
15791 fi
15792
15793
15794
15795
15796 LD_FIRSTFLAG=
15797 ORDINARY_LINK=
15798 case "$opsys" in
15799 ## gnu: GNU needs its own crt0.
15800 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
15801
15802 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
15803 ## library search parth, i.e. it won't search /usr/lib for libc and
15804 ## friends. Using -nostartfiles instead avoids this problem, and
15805 ## will also work on earlier NetBSD releases.
15806 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
15807
15808 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
15809 ## MkLinux/LinuxPPC needs this.
15810 ## ibms390x only supports opsys = gnu-linux so it can be added here.
15811 gnu-*)
15812 case "$machine" in
15813 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
15814 esac
15815 ;;
15816 esac
15817
15818
15819 if test "x$ORDINARY_LINK" = "xyes"; then
15820
15821 LD_FIRSTFLAG=""
15822
15823 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
15824
15825
15826 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
15827 ## freebsd, gnu-* not on macppc|ibms390x.
15828 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
15829
15830 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
15831 ## places that are difficult to figure out at make time. Fortunately,
15832 ## these same versions allow you to pass arbitrary flags on to the
15833 ## linker, so there is no reason not to use it as a linker.
15834 ##
15835 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
15836 ## searching for libraries in its internal directories, so we have to
15837 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
15838 LD_FIRSTFLAG="-nostdlib"
15839 fi
15840
15841 ## FIXME? What setting of EDIT_LDFLAGS should this have?
15842 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
15843
15844
15845
15846
15847 ## FIXME? The logic here is not precisely the same as that above.
15848 ## There is no check here for a pre-defined LD_FIRSTFLAG.
15849 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
15850 LIB_GCC=
15851 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
15852
15853 case "$opsys" in
15854 freebsd|netbsd|openbsd) LIB_GCC= ;;
15855
15856 gnu-*)
15857 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
15858 ## build on ARM EABI under GNU/Linux. (Bug#5518)
15859 case $host_cpu in
15860 arm*)
15861 LIB_GCC="-lgcc_s"
15862 ;;
15863 *)
15864 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
15865 ## immediately undefine it again and redefine it to empty.
15866 ## Was the C_SWITCH_X_SITE part really necessary?
15867 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
15868 LIB_GCC=
15869 ;;
15870 esac
15871 ;;
15872
15873 ## Ask GCC where to find libgcc.a.
15874 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
15875 esac
15876 fi
15877
15878
15879 TOOLTIP_SUPPORT=
15880 WINDOW_SUPPORT=
15881 ## If we're using X11/GNUstep, define some consequences.
15882 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
15883
15884 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
15885
15886
15887 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
15888
15889 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
15890 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
15891
15892 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
15893 test "$HAVE_X_WINDOWS" = "yes" && \
15894 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
15895
15896 fi
15897
15898
15899
15900
15901
15902
15903
15904 #### Report on what we decided to do.
15905 #### Report GTK as a toolkit, even if it doesn't use Xt.
15906 #### It makes printing result more understandable as using GTK sets
15907 #### toolkit_scroll_bars to yes by default.
15908 if test "${HAVE_GTK}" = "yes"; then
15909 USE_X_TOOLKIT=GTK
15910 fi
15911
15912 and_machfile=
15913 if test -n "$machfile"; then
15914 and_machfile=" and \`${machfile}'"
15915 fi
15916
15917 echo "
15918 Configured for \`${canonical}'.
15919
15920 Where should the build process find the source code? ${srcdir}
15921 What operating system and machine description files should Emacs use?
15922 \`${opsysfile}'${and_machfile}
15923 What compiler should emacs be built with? ${CC} ${CFLAGS}
15924 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
15925 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
15926 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
15927 What window system should Emacs use? ${window_system}
15928 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
15929
15930 if test -n "${x_includes}"; then
15931 echo " Where do we find X Windows header files? ${x_includes}"
15932 else
15933 echo " Where do we find X Windows header files? Standard dirs"
15934 fi
15935 if test -n "${x_libraries}"; then
15936 echo " Where do we find X Windows libraries? ${x_libraries}"
15937 else
15938 echo " Where do we find X Windows libraries? Standard dirs"
15939 fi
15940
15941 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
15942 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
15943 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
15944 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
15945 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
15946 echo " Does Emacs use -lpng? ${HAVE_PNG}"
15947 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
15948 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
15949
15950 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
15951 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
15952 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
15953 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
15954 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
15955 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
15956
15957 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
15958 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
15959 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
15960 echo " Does Emacs use -lxft? ${HAVE_XFT}"
15961
15962 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15963 echo
15964
15965 if test $USE_XASSERTS = yes; then
15966 echo " Compiling with asserts turned on."
15967 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
15968 fi
15969
15970 echo
15971
15972 if test "$HAVE_NS" = "yes"; then
15973 echo
15974 echo "You must run \"make install\" in order to test the built application.
15975 The installed application will go to nextstep/Emacs.app and can be
15976 run or moved from there."
15977 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
15978 echo "The application will be fully self-contained."
15979 else
15980 echo "The lisp resources for the application will be installed under ${prefix}.
15981 You may need to run \"make install\" with sudo. The application will fail
15982 to run if these resources are not installed."
15983 fi
15984 echo
15985 fi
15986
15987
15988 # Remove any trailing slashes in these variables.
15989 test "${prefix}" != NONE &&
15990 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15991 test "${exec_prefix}" != NONE &&
15992 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15993
15994 ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
15995
15996 ac_config_commands="$ac_config_commands default"
15997
15998 cat >confcache <<\_ACEOF
15999 # This file is a shell script that caches the results of configure
16000 # tests run on this system so they can be shared between configure
16001 # scripts and configure runs, see configure's option --config-cache.
16002 # It is not useful on other systems. If it contains results you don't
16003 # want to keep, you may remove or edit it.
16004 #
16005 # config.status only pays attention to the cache file if you give it
16006 # the --recheck option to rerun configure.
16007 #
16008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16010 # following values.
16011
16012 _ACEOF
16013
16014 # The following way of writing the cache mishandles newlines in values,
16015 # but we know of no workaround that is simple, portable, and efficient.
16016 # So, we kill variables containing newlines.
16017 # Ultrix sh set writes to stderr and can't be redirected directly,
16018 # and sets the high bit in the cache file unless we assign to the vars.
16019 (
16020 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16021 eval ac_val=\$$ac_var
16022 case $ac_val in #(
16023 *${as_nl}*)
16024 case $ac_var in #(
16025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16027 esac
16028 case $ac_var in #(
16029 _ | IFS | as_nl) ;; #(
16030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16031 *) { eval $ac_var=; unset $ac_var;} ;;
16032 esac ;;
16033 esac
16034 done
16035
16036 (set) 2>&1 |
16037 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16038 *${as_nl}ac_space=\ *)
16039 # `set' does not quote correctly, so add quotes: double-quote
16040 # substitution turns \\\\ into \\, and sed turns \\ into \.
16041 sed -n \
16042 "s/'/'\\\\''/g;
16043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16044 ;; #(
16045 *)
16046 # `set' quotes correctly as required by POSIX, so do not add quotes.
16047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16048 ;;
16049 esac |
16050 sort
16051 ) |
16052 sed '
16053 /^ac_cv_env_/b end
16054 t clear
16055 :clear
16056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16057 t end
16058 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16059 :end' >>confcache
16060 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16061 if test -w "$cache_file"; then
16062 if test "x$cache_file" != "x/dev/null"; then
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16064 $as_echo "$as_me: updating cache $cache_file" >&6;}
16065 if test ! -f "$cache_file" || test -h "$cache_file"; then
16066 cat confcache >"$cache_file"
16067 else
16068 case $cache_file in #(
16069 */* | ?:*)
16070 mv -f confcache "$cache_file"$$ &&
16071 mv -f "$cache_file"$$ "$cache_file" ;; #(
16072 *)
16073 mv -f confcache "$cache_file" ;;
16074 esac
16075 fi
16076 fi
16077 else
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16079 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16080 fi
16081 fi
16082 rm -f confcache
16083
16084 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16085 # Let make expand exec_prefix.
16086 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16087
16088 DEFS=-DHAVE_CONFIG_H
16089
16090 ac_libobjs=
16091 ac_ltlibobjs=
16092 U=
16093 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16094 # 1. Remove the extension, and $U if already installed.
16095 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16096 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16097 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16098 # will be set to the directory where LIBOBJS objects are built.
16099 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16100 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16101 done
16102 LIBOBJS=$ac_libobjs
16103
16104 LTLIBOBJS=$ac_ltlibobjs
16105
16106
16107 if test -n "$EXEEXT"; then
16108 am__EXEEXT_TRUE=
16109 am__EXEEXT_FALSE='#'
16110 else
16111 am__EXEEXT_TRUE='#'
16112 am__EXEEXT_FALSE=
16113 fi
16114
16115 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16116 as_fn_error $? "conditional \"AMDEP\" was never defined.
16117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16118 fi
16119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16120 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16122 fi
16123
16124 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16125 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
16126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16127 fi
16128
16129 gl_libobjs=
16130 gl_ltlibobjs=
16131 if test -n "$gl_LIBOBJS"; then
16132 # Remove the extension.
16133 sed_drop_objext='s/\.o$//;s/\.obj$//'
16134 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16135 gl_libobjs="$gl_libobjs $i.$ac_objext"
16136 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16137 done
16138 fi
16139 gl_LIBOBJS=$gl_libobjs
16140
16141 gl_LTLIBOBJS=$gl_ltlibobjs
16142
16143
16144
16145 gltests_libobjs=
16146 gltests_ltlibobjs=
16147 if test -n "$gltests_LIBOBJS"; then
16148 # Remove the extension.
16149 sed_drop_objext='s/\.o$//;s/\.obj$//'
16150 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16151 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16152 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16153 done
16154 fi
16155 gltests_LIBOBJS=$gltests_libobjs
16156
16157 gltests_LTLIBOBJS=$gltests_ltlibobjs
16158
16159
16160
16161 : "${CONFIG_STATUS=./config.status}"
16162 ac_write_fail=0
16163 ac_clean_files_save=$ac_clean_files
16164 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16166 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16167 as_write_fail=0
16168 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16169 #! $SHELL
16170 # Generated by $as_me.
16171 # Run this file to recreate the current configuration.
16172 # Compiler output produced by configure, useful for debugging
16173 # configure, is in config.log if it exists.
16174
16175 debug=false
16176 ac_cs_recheck=false
16177 ac_cs_silent=false
16178
16179 SHELL=\${CONFIG_SHELL-$SHELL}
16180 export SHELL
16181 _ASEOF
16182 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16183 ## -------------------- ##
16184 ## M4sh Initialization. ##
16185 ## -------------------- ##
16186
16187 # Be more Bourne compatible
16188 DUALCASE=1; export DUALCASE # for MKS sh
16189 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16190 emulate sh
16191 NULLCMD=:
16192 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16193 # is contrary to our usage. Disable this feature.
16194 alias -g '${1+"$@"}'='"$@"'
16195 setopt NO_GLOB_SUBST
16196 else
16197 case `(set -o) 2>/dev/null` in #(
16198 *posix*) :
16199 set -o posix ;; #(
16200 *) :
16201 ;;
16202 esac
16203 fi
16204
16205
16206 as_nl='
16207 '
16208 export as_nl
16209 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16210 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16211 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16212 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16213 # Prefer a ksh shell builtin over an external printf program on Solaris,
16214 # but without wasting forks for bash or zsh.
16215 if test -z "$BASH_VERSION$ZSH_VERSION" \
16216 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16217 as_echo='print -r --'
16218 as_echo_n='print -rn --'
16219 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16220 as_echo='printf %s\n'
16221 as_echo_n='printf %s'
16222 else
16223 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16224 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16225 as_echo_n='/usr/ucb/echo -n'
16226 else
16227 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16228 as_echo_n_body='eval
16229 arg=$1;
16230 case $arg in #(
16231 *"$as_nl"*)
16232 expr "X$arg" : "X\\(.*\\)$as_nl";
16233 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16234 esac;
16235 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16236 '
16237 export as_echo_n_body
16238 as_echo_n='sh -c $as_echo_n_body as_echo'
16239 fi
16240 export as_echo_body
16241 as_echo='sh -c $as_echo_body as_echo'
16242 fi
16243
16244 # The user is always right.
16245 if test "${PATH_SEPARATOR+set}" != set; then
16246 PATH_SEPARATOR=:
16247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16248 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16249 PATH_SEPARATOR=';'
16250 }
16251 fi
16252
16253
16254 # IFS
16255 # We need space, tab and new line, in precisely that order. Quoting is
16256 # there to prevent editors from complaining about space-tab.
16257 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16258 # splitting by setting IFS to empty value.)
16259 IFS=" "" $as_nl"
16260
16261 # Find who we are. Look in the path if we contain no directory separator.
16262 as_myself=
16263 case $0 in #((
16264 *[\\/]* ) as_myself=$0 ;;
16265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16266 for as_dir in $PATH
16267 do
16268 IFS=$as_save_IFS
16269 test -z "$as_dir" && as_dir=.
16270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16271 done
16272 IFS=$as_save_IFS
16273
16274 ;;
16275 esac
16276 # We did not find ourselves, most probably we were run as `sh COMMAND'
16277 # in which case we are not to be found in the path.
16278 if test "x$as_myself" = x; then
16279 as_myself=$0
16280 fi
16281 if test ! -f "$as_myself"; then
16282 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16283 exit 1
16284 fi
16285
16286 # Unset variables that we do not need and which cause bugs (e.g. in
16287 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16288 # suppresses any "Segmentation fault" message there. '((' could
16289 # trigger a bug in pdksh 5.2.14.
16290 for as_var in BASH_ENV ENV MAIL MAILPATH
16291 do eval test x\${$as_var+set} = xset \
16292 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16293 done
16294 PS1='$ '
16295 PS2='> '
16296 PS4='+ '
16297
16298 # NLS nuisances.
16299 LC_ALL=C
16300 export LC_ALL
16301 LANGUAGE=C
16302 export LANGUAGE
16303
16304 # CDPATH.
16305 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16306
16307
16308 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16309 # ----------------------------------------
16310 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16311 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16312 # script with STATUS, using 1 if that was 0.
16313 as_fn_error ()
16314 {
16315 as_status=$1; test $as_status -eq 0 && as_status=1
16316 if test "$4"; then
16317 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16318 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16319 fi
16320 $as_echo "$as_me: error: $2" >&2
16321 as_fn_exit $as_status
16322 } # as_fn_error
16323
16324
16325 # as_fn_set_status STATUS
16326 # -----------------------
16327 # Set $? to STATUS, without forking.
16328 as_fn_set_status ()
16329 {
16330 return $1
16331 } # as_fn_set_status
16332
16333 # as_fn_exit STATUS
16334 # -----------------
16335 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16336 as_fn_exit ()
16337 {
16338 set +e
16339 as_fn_set_status $1
16340 exit $1
16341 } # as_fn_exit
16342
16343 # as_fn_unset VAR
16344 # ---------------
16345 # Portably unset VAR.
16346 as_fn_unset ()
16347 {
16348 { eval $1=; unset $1;}
16349 }
16350 as_unset=as_fn_unset
16351 # as_fn_append VAR VALUE
16352 # ----------------------
16353 # Append the text in VALUE to the end of the definition contained in VAR. Take
16354 # advantage of any shell optimizations that allow amortized linear growth over
16355 # repeated appends, instead of the typical quadratic growth present in naive
16356 # implementations.
16357 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16358 eval 'as_fn_append ()
16359 {
16360 eval $1+=\$2
16361 }'
16362 else
16363 as_fn_append ()
16364 {
16365 eval $1=\$$1\$2
16366 }
16367 fi # as_fn_append
16368
16369 # as_fn_arith ARG...
16370 # ------------------
16371 # Perform arithmetic evaluation on the ARGs, and store the result in the
16372 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16373 # must be portable across $(()) and expr.
16374 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16375 eval 'as_fn_arith ()
16376 {
16377 as_val=$(( $* ))
16378 }'
16379 else
16380 as_fn_arith ()
16381 {
16382 as_val=`expr "$@" || test $? -eq 1`
16383 }
16384 fi # as_fn_arith
16385
16386
16387 if expr a : '\(a\)' >/dev/null 2>&1 &&
16388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16389 as_expr=expr
16390 else
16391 as_expr=false
16392 fi
16393
16394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16395 as_basename=basename
16396 else
16397 as_basename=false
16398 fi
16399
16400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16401 as_dirname=dirname
16402 else
16403 as_dirname=false
16404 fi
16405
16406 as_me=`$as_basename -- "$0" ||
16407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16408 X"$0" : 'X\(//\)$' \| \
16409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16410 $as_echo X/"$0" |
16411 sed '/^.*\/\([^/][^/]*\)\/*$/{
16412 s//\1/
16413 q
16414 }
16415 /^X\/\(\/\/\)$/{
16416 s//\1/
16417 q
16418 }
16419 /^X\/\(\/\).*/{
16420 s//\1/
16421 q
16422 }
16423 s/.*/./; q'`
16424
16425 # Avoid depending upon Character Ranges.
16426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16429 as_cr_digits='0123456789'
16430 as_cr_alnum=$as_cr_Letters$as_cr_digits
16431
16432 ECHO_C= ECHO_N= ECHO_T=
16433 case `echo -n x` in #(((((
16434 -n*)
16435 case `echo 'xy\c'` in
16436 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16437 xy) ECHO_C='\c';;
16438 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16439 ECHO_T=' ';;
16440 esac;;
16441 *)
16442 ECHO_N='-n';;
16443 esac
16444
16445 rm -f conf$$ conf$$.exe conf$$.file
16446 if test -d conf$$.dir; then
16447 rm -f conf$$.dir/conf$$.file
16448 else
16449 rm -f conf$$.dir
16450 mkdir conf$$.dir 2>/dev/null
16451 fi
16452 if (echo >conf$$.file) 2>/dev/null; then
16453 if ln -s conf$$.file conf$$ 2>/dev/null; then
16454 as_ln_s='ln -s'
16455 # ... but there are two gotchas:
16456 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16457 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16458 # In both cases, we have to default to `cp -p'.
16459 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16460 as_ln_s='cp -p'
16461 elif ln conf$$.file conf$$ 2>/dev/null; then
16462 as_ln_s=ln
16463 else
16464 as_ln_s='cp -p'
16465 fi
16466 else
16467 as_ln_s='cp -p'
16468 fi
16469 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16470 rmdir conf$$.dir 2>/dev/null
16471
16472
16473 # as_fn_mkdir_p
16474 # -------------
16475 # Create "$as_dir" as a directory, including parents if necessary.
16476 as_fn_mkdir_p ()
16477 {
16478
16479 case $as_dir in #(
16480 -*) as_dir=./$as_dir;;
16481 esac
16482 test -d "$as_dir" || eval $as_mkdir_p || {
16483 as_dirs=
16484 while :; do
16485 case $as_dir in #(
16486 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16487 *) as_qdir=$as_dir;;
16488 esac
16489 as_dirs="'$as_qdir' $as_dirs"
16490 as_dir=`$as_dirname -- "$as_dir" ||
16491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16492 X"$as_dir" : 'X\(//\)[^/]' \| \
16493 X"$as_dir" : 'X\(//\)$' \| \
16494 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16495 $as_echo X"$as_dir" |
16496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16497 s//\1/
16498 q
16499 }
16500 /^X\(\/\/\)[^/].*/{
16501 s//\1/
16502 q
16503 }
16504 /^X\(\/\/\)$/{
16505 s//\1/
16506 q
16507 }
16508 /^X\(\/\).*/{
16509 s//\1/
16510 q
16511 }
16512 s/.*/./; q'`
16513 test -d "$as_dir" && break
16514 done
16515 test -z "$as_dirs" || eval "mkdir $as_dirs"
16516 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16517
16518
16519 } # as_fn_mkdir_p
16520 if mkdir -p . 2>/dev/null; then
16521 as_mkdir_p='mkdir -p "$as_dir"'
16522 else
16523 test -d ./-p && rmdir ./-p
16524 as_mkdir_p=false
16525 fi
16526
16527 if test -x / >/dev/null 2>&1; then
16528 as_test_x='test -x'
16529 else
16530 if ls -dL / >/dev/null 2>&1; then
16531 as_ls_L_option=L
16532 else
16533 as_ls_L_option=
16534 fi
16535 as_test_x='
16536 eval sh -c '\''
16537 if test -d "$1"; then
16538 test -d "$1/.";
16539 else
16540 case $1 in #(
16541 -*)set "./$1";;
16542 esac;
16543 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16544 ???[sx]*):;;*)false;;esac;fi
16545 '\'' sh
16546 '
16547 fi
16548 as_executable_p=$as_test_x
16549
16550 # Sed expression to map a string onto a valid CPP name.
16551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16552
16553 # Sed expression to map a string onto a valid variable name.
16554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16555
16556
16557 exec 6>&1
16558 ## ----------------------------------- ##
16559 ## Main body of $CONFIG_STATUS script. ##
16560 ## ----------------------------------- ##
16561 _ASEOF
16562 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16563
16564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16565 # Save the log message, to keep $0 and so on meaningful, and to
16566 # report actual input values of CONFIG_FILES etc. instead of their
16567 # values after options handling.
16568 ac_log="
16569 This file was extended by emacs $as_me 24.0.50, which was
16570 generated by GNU Autoconf 2.68. Invocation command line was
16571
16572 CONFIG_FILES = $CONFIG_FILES
16573 CONFIG_HEADERS = $CONFIG_HEADERS
16574 CONFIG_LINKS = $CONFIG_LINKS
16575 CONFIG_COMMANDS = $CONFIG_COMMANDS
16576 $ $0 $@
16577
16578 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16579 "
16580
16581 _ACEOF
16582
16583 case $ac_config_files in *"
16584 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16585 esac
16586
16587 case $ac_config_headers in *"
16588 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16589 esac
16590
16591
16592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16593 # Files that config.status was made for.
16594 config_files="$ac_config_files"
16595 config_headers="$ac_config_headers"
16596 config_commands="$ac_config_commands"
16597
16598 _ACEOF
16599
16600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601 ac_cs_usage="\
16602 \`$as_me' instantiates files and other configuration actions
16603 from templates according to the current configuration. Unless the files
16604 and actions are specified as TAGs, all are instantiated by default.
16605
16606 Usage: $0 [OPTION]... [TAG]...
16607
16608 -h, --help print this help, then exit
16609 -V, --version print version number and configuration settings, then exit
16610 --config print configuration, then exit
16611 -q, --quiet, --silent
16612 do not print progress messages
16613 -d, --debug don't remove temporary files
16614 --recheck update $as_me by reconfiguring in the same conditions
16615 --file=FILE[:TEMPLATE]
16616 instantiate the configuration file FILE
16617 --header=FILE[:TEMPLATE]
16618 instantiate the configuration header FILE
16619
16620 Configuration files:
16621 $config_files
16622
16623 Configuration headers:
16624 $config_headers
16625
16626 Configuration commands:
16627 $config_commands
16628
16629 Report bugs to the package provider."
16630
16631 _ACEOF
16632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16633 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16634 ac_cs_version="\\
16635 emacs config.status 24.0.50
16636 configured by $0, generated by GNU Autoconf 2.68,
16637 with options \\"\$ac_cs_config\\"
16638
16639 Copyright (C) 2010 Free Software Foundation, Inc.
16640 This config.status script is free software; the Free Software Foundation
16641 gives unlimited permission to copy, distribute and modify it."
16642
16643 ac_pwd='$ac_pwd'
16644 srcdir='$srcdir'
16645 INSTALL='$INSTALL'
16646 MKDIR_P='$MKDIR_P'
16647 AWK='$AWK'
16648 test -n "\$AWK" || AWK=awk
16649 _ACEOF
16650
16651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16652 # The default lists apply if the user does not specify any file.
16653 ac_need_defaults=:
16654 while test $# != 0
16655 do
16656 case $1 in
16657 --*=?*)
16658 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16659 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16660 ac_shift=:
16661 ;;
16662 --*=)
16663 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16664 ac_optarg=
16665 ac_shift=:
16666 ;;
16667 *)
16668 ac_option=$1
16669 ac_optarg=$2
16670 ac_shift=shift
16671 ;;
16672 esac
16673
16674 case $ac_option in
16675 # Handling of the options.
16676 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16677 ac_cs_recheck=: ;;
16678 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16679 $as_echo "$ac_cs_version"; exit ;;
16680 --config | --confi | --conf | --con | --co | --c )
16681 $as_echo "$ac_cs_config"; exit ;;
16682 --debug | --debu | --deb | --de | --d | -d )
16683 debug=: ;;
16684 --file | --fil | --fi | --f )
16685 $ac_shift
16686 case $ac_optarg in
16687 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16688 '') as_fn_error $? "missing file argument" ;;
16689 esac
16690 as_fn_append CONFIG_FILES " '$ac_optarg'"
16691 ac_need_defaults=false;;
16692 --header | --heade | --head | --hea )
16693 $ac_shift
16694 case $ac_optarg in
16695 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16696 esac
16697 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16698 ac_need_defaults=false;;
16699 --he | --h)
16700 # Conflict between --help and --header
16701 as_fn_error $? "ambiguous option: \`$1'
16702 Try \`$0 --help' for more information.";;
16703 --help | --hel | -h )
16704 $as_echo "$ac_cs_usage"; exit ;;
16705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16706 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16707 ac_cs_silent=: ;;
16708
16709 # This is an error.
16710 -*) as_fn_error $? "unrecognized option: \`$1'
16711 Try \`$0 --help' for more information." ;;
16712
16713 *) as_fn_append ac_config_targets " $1"
16714 ac_need_defaults=false ;;
16715
16716 esac
16717 shift
16718 done
16719
16720 ac_configure_extra_args=
16721
16722 if $ac_cs_silent; then
16723 exec 6>/dev/null
16724 ac_configure_extra_args="$ac_configure_extra_args --silent"
16725 fi
16726
16727 _ACEOF
16728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16729 if \$ac_cs_recheck; then
16730 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16731 shift
16732 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16733 CONFIG_SHELL='$SHELL'
16734 export CONFIG_SHELL
16735 exec "\$@"
16736 fi
16737
16738 _ACEOF
16739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16740 exec 5>>config.log
16741 {
16742 echo
16743 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16744 ## Running $as_me. ##
16745 _ASBOX
16746 $as_echo "$ac_log"
16747 } >&5
16748
16749 _ACEOF
16750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16751 #
16752 # INIT-COMMANDS
16753 #
16754 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16755 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
16756
16757 _ACEOF
16758
16759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16760
16761 # Handling of arguments.
16762 for ac_config_target in $ac_config_targets
16763 do
16764 case $ac_config_target in
16765 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16766 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16767 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16768 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16769 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
16770 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
16771 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
16772 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
16773 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
16774 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
16775 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16776 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
16777 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
16778 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
16779 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16780
16781 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16782 esac
16783 done
16784
16785
16786 # If the user did not use the arguments to specify the items to instantiate,
16787 # then the envvar interface is used. Set only those that are not.
16788 # We use the long form for the default assignment because of an extremely
16789 # bizarre bug on SunOS 4.1.3.
16790 if $ac_need_defaults; then
16791 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16792 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16793 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16794 fi
16795
16796 # Have a temporary directory for convenience. Make it in the build tree
16797 # simply because there is no reason against having it here, and in addition,
16798 # creating and moving files from /tmp can sometimes cause problems.
16799 # Hook for its removal unless debugging.
16800 # Note that there is a small window in which the directory will not be cleaned:
16801 # after its creation but before its name has been assigned to `$tmp'.
16802 $debug ||
16803 {
16804 tmp= ac_tmp=
16805 trap 'exit_status=$?
16806 : "${ac_tmp:=$tmp}"
16807 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16808 ' 0
16809 trap 'as_fn_exit 1' 1 2 13 15
16810 }
16811 # Create a (secure) tmp directory for tmp files.
16812
16813 {
16814 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16815 test -d "$tmp"
16816 } ||
16817 {
16818 tmp=./conf$$-$RANDOM
16819 (umask 077 && mkdir "$tmp")
16820 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16821 ac_tmp=$tmp
16822
16823 # Set up the scripts for CONFIG_FILES section.
16824 # No need to generate them if there are no CONFIG_FILES.
16825 # This happens for instance with `./config.status config.h'.
16826 if test -n "$CONFIG_FILES"; then
16827
16828 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16829 ac_cs_awk_getline=:
16830 ac_cs_awk_pipe_init=
16831 ac_cs_awk_read_file='
16832 while ((getline aline < (F[key])) > 0)
16833 print(aline)
16834 close(F[key])'
16835 ac_cs_awk_pipe_fini=
16836 else
16837 ac_cs_awk_getline=false
16838 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16839 ac_cs_awk_read_file='
16840 print "|#_!!_#|"
16841 print "cat " F[key] " &&"
16842 '$ac_cs_awk_pipe_init
16843 # The final `:' finishes the AND list.
16844 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16845 fi
16846 ac_cr=`echo X | tr X '\015'`
16847 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16848 # But we know of no other shell where ac_cr would be empty at this
16849 # point, so we can use a bashism as a fallback.
16850 if test "x$ac_cr" = x; then
16851 eval ac_cr=\$\'\\r\'
16852 fi
16853 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16854 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16855 ac_cs_awk_cr='\\r'
16856 else
16857 ac_cs_awk_cr=$ac_cr
16858 fi
16859
16860 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16861 _ACEOF
16862
16863 # Create commands to substitute file output variables.
16864 {
16865 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16866 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16867 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16868 echo "_ACAWK" &&
16869 echo "_ACEOF"
16870 } >conf$$files.sh &&
16871 . ./conf$$files.sh ||
16872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16873 rm -f conf$$files.sh
16874
16875 {
16876 echo "cat >conf$$subs.awk <<_ACEOF" &&
16877 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16878 echo "_ACEOF"
16879 } >conf$$subs.sh ||
16880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16881 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16882 ac_delim='%!_!# '
16883 for ac_last_try in false false false false false :; do
16884 . ./conf$$subs.sh ||
16885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16886
16887 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16888 if test $ac_delim_n = $ac_delim_num; then
16889 break
16890 elif $ac_last_try; then
16891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16892 else
16893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16894 fi
16895 done
16896 rm -f conf$$subs.sh
16897
16898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16900 _ACEOF
16901 sed -n '
16902 h
16903 s/^/S["/; s/!.*/"]=/
16904 p
16905 g
16906 s/^[^!]*!//
16907 :repl
16908 t repl
16909 s/'"$ac_delim"'$//
16910 t delim
16911 :nl
16912 h
16913 s/\(.\{148\}\)..*/\1/
16914 t more1
16915 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16916 p
16917 n
16918 b repl
16919 :more1
16920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16921 p
16922 g
16923 s/.\{148\}//
16924 t nl
16925 :delim
16926 h
16927 s/\(.\{148\}\)..*/\1/
16928 t more2
16929 s/["\\]/\\&/g; s/^/"/; s/$/"/
16930 p
16931 b
16932 :more2
16933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16934 p
16935 g
16936 s/.\{148\}//
16937 t delim
16938 ' <conf$$subs.awk | sed '
16939 /^[^""]/{
16940 N
16941 s/\n//
16942 }
16943 ' >>$CONFIG_STATUS || ac_write_fail=1
16944 rm -f conf$$subs.awk
16945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16946 _ACAWK
16947 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16948 for (key in S) S_is_set[key] = 1
16949 FS = "\a"
16950 \$ac_cs_awk_pipe_init
16951 }
16952 {
16953 line = $ 0
16954 nfields = split(line, field, "@")
16955 substed = 0
16956 len = length(field[1])
16957 for (i = 2; i < nfields; i++) {
16958 key = field[i]
16959 keylen = length(key)
16960 if (S_is_set[key]) {
16961 value = S[key]
16962 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16963 len += length(value) + length(field[++i])
16964 substed = 1
16965 } else
16966 len += 1 + keylen
16967 }
16968 if (nfields == 3 && !substed) {
16969 key = field[2]
16970 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16971 \$ac_cs_awk_read_file
16972 next
16973 }
16974 }
16975 print line
16976 }
16977 \$ac_cs_awk_pipe_fini
16978 _ACAWK
16979 _ACEOF
16980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16981 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16982 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16983 else
16984 cat
16985 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16986 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16987 _ACEOF
16988
16989 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16990 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16991 # trailing colons and then remove the whole line if VPATH becomes empty
16992 # (actually we leave an empty line to preserve line numbers).
16993 if test "x$srcdir" = x.; then
16994 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16995 h
16996 s///
16997 s/^/:/
16998 s/[ ]*$/:/
16999 s/:\$(srcdir):/:/g
17000 s/:\${srcdir}:/:/g
17001 s/:@srcdir@:/:/g
17002 s/^:*//
17003 s/:*$//
17004 x
17005 s/\(=[ ]*\).*/\1/
17006 G
17007 s/\n//
17008 s/^[^=]*=[ ]*$//
17009 }'
17010 fi
17011
17012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17013 fi # test -n "$CONFIG_FILES"
17014
17015 # Set up the scripts for CONFIG_HEADERS section.
17016 # No need to generate them if there are no CONFIG_HEADERS.
17017 # This happens for instance with `./config.status Makefile'.
17018 if test -n "$CONFIG_HEADERS"; then
17019 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17020 BEGIN {
17021 _ACEOF
17022
17023 # Transform confdefs.h into an awk script `defines.awk', embedded as
17024 # here-document in config.status, that substitutes the proper values into
17025 # config.h.in to produce config.h.
17026
17027 # Create a delimiter string that does not exist in confdefs.h, to ease
17028 # handling of long lines.
17029 ac_delim='%!_!# '
17030 for ac_last_try in false false :; do
17031 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17032 if test -z "$ac_tt"; then
17033 break
17034 elif $ac_last_try; then
17035 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17036 else
17037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17038 fi
17039 done
17040
17041 # For the awk script, D is an array of macro values keyed by name,
17042 # likewise P contains macro parameters if any. Preserve backslash
17043 # newline sequences.
17044
17045 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17046 sed -n '
17047 s/.\{148\}/&'"$ac_delim"'/g
17048 t rset
17049 :rset
17050 s/^[ ]*#[ ]*define[ ][ ]*/ /
17051 t def
17052 d
17053 :def
17054 s/\\$//
17055 t bsnl
17056 s/["\\]/\\&/g
17057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17058 D["\1"]=" \3"/p
17059 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17060 d
17061 :bsnl
17062 s/["\\]/\\&/g
17063 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17064 D["\1"]=" \3\\\\\\n"\\/p
17065 t cont
17066 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17067 t cont
17068 d
17069 :cont
17070 n
17071 s/.\{148\}/&'"$ac_delim"'/g
17072 t clear
17073 :clear
17074 s/\\$//
17075 t bsnlc
17076 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17077 d
17078 :bsnlc
17079 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17080 b cont
17081 ' <confdefs.h | sed '
17082 s/'"$ac_delim"'/"\\\
17083 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17084
17085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17086 for (key in D) D_is_set[key] = 1
17087 FS = "\a"
17088 }
17089 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17090 line = \$ 0
17091 split(line, arg, " ")
17092 if (arg[1] == "#") {
17093 defundef = arg[2]
17094 mac1 = arg[3]
17095 } else {
17096 defundef = substr(arg[1], 2)
17097 mac1 = arg[2]
17098 }
17099 split(mac1, mac2, "(") #)
17100 macro = mac2[1]
17101 prefix = substr(line, 1, index(line, defundef) - 1)
17102 if (D_is_set[macro]) {
17103 # Preserve the white space surrounding the "#".
17104 print prefix "define", macro P[macro] D[macro]
17105 next
17106 } else {
17107 # Replace #undef with comments. This is necessary, for example,
17108 # in the case of _POSIX_SOURCE, which is predefined and required
17109 # on some systems where configure will not decide to define it.
17110 if (defundef == "undef") {
17111 print "/*", prefix defundef, macro, "*/"
17112 next
17113 }
17114 }
17115 }
17116 { print }
17117 _ACAWK
17118 _ACEOF
17119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17121 fi # test -n "$CONFIG_HEADERS"
17122
17123
17124 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17125 shift
17126 for ac_tag
17127 do
17128 case $ac_tag in
17129 :[FHLC]) ac_mode=$ac_tag; continue;;
17130 esac
17131 case $ac_mode$ac_tag in
17132 :[FHL]*:*);;
17133 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17134 :[FH]-) ac_tag=-:-;;
17135 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17136 esac
17137 ac_save_IFS=$IFS
17138 IFS=:
17139 set x $ac_tag
17140 IFS=$ac_save_IFS
17141 shift
17142 ac_file=$1
17143 shift
17144
17145 case $ac_mode in
17146 :L) ac_source=$1;;
17147 :[FH])
17148 ac_file_inputs=
17149 for ac_f
17150 do
17151 case $ac_f in
17152 -) ac_f="$ac_tmp/stdin";;
17153 *) # Look for the file first in the build tree, then in the source tree
17154 # (if the path is not absolute). The absolute path cannot be DOS-style,
17155 # because $ac_f cannot contain `:'.
17156 test -f "$ac_f" ||
17157 case $ac_f in
17158 [\\/$]*) false;;
17159 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17160 esac ||
17161 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17162 esac
17163 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17164 as_fn_append ac_file_inputs " '$ac_f'"
17165 done
17166
17167 # Let's still pretend it is `configure' which instantiates (i.e., don't
17168 # use $as_me), people would be surprised to read:
17169 # /* config.h. Generated by config.status. */
17170 configure_input='Generated from '`
17171 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17172 `' by configure.'
17173 if test x"$ac_file" != x-; then
17174 configure_input="$ac_file. $configure_input"
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17176 $as_echo "$as_me: creating $ac_file" >&6;}
17177 fi
17178 # Neutralize special characters interpreted by sed in replacement strings.
17179 case $configure_input in #(
17180 *\&* | *\|* | *\\* )
17181 ac_sed_conf_input=`$as_echo "$configure_input" |
17182 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17183 *) ac_sed_conf_input=$configure_input;;
17184 esac
17185
17186 case $ac_tag in
17187 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17189 esac
17190 ;;
17191 esac
17192
17193 ac_dir=`$as_dirname -- "$ac_file" ||
17194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17195 X"$ac_file" : 'X\(//\)[^/]' \| \
17196 X"$ac_file" : 'X\(//\)$' \| \
17197 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17198 $as_echo X"$ac_file" |
17199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17200 s//\1/
17201 q
17202 }
17203 /^X\(\/\/\)[^/].*/{
17204 s//\1/
17205 q
17206 }
17207 /^X\(\/\/\)$/{
17208 s//\1/
17209 q
17210 }
17211 /^X\(\/\).*/{
17212 s//\1/
17213 q
17214 }
17215 s/.*/./; q'`
17216 as_dir="$ac_dir"; as_fn_mkdir_p
17217 ac_builddir=.
17218
17219 case "$ac_dir" in
17220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17221 *)
17222 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17223 # A ".." for each directory in $ac_dir_suffix.
17224 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17225 case $ac_top_builddir_sub in
17226 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17227 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17228 esac ;;
17229 esac
17230 ac_abs_top_builddir=$ac_pwd
17231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17232 # for backward compatibility:
17233 ac_top_builddir=$ac_top_build_prefix
17234
17235 case $srcdir in
17236 .) # We are building in place.
17237 ac_srcdir=.
17238 ac_top_srcdir=$ac_top_builddir_sub
17239 ac_abs_top_srcdir=$ac_pwd ;;
17240 [\\/]* | ?:[\\/]* ) # Absolute name.
17241 ac_srcdir=$srcdir$ac_dir_suffix;
17242 ac_top_srcdir=$srcdir
17243 ac_abs_top_srcdir=$srcdir ;;
17244 *) # Relative name.
17245 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17246 ac_top_srcdir=$ac_top_build_prefix$srcdir
17247 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17248 esac
17249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17250
17251
17252 case $ac_mode in
17253 :F)
17254 #
17255 # CONFIG_FILE
17256 #
17257
17258 case $INSTALL in
17259 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17260 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17261 esac
17262 ac_MKDIR_P=$MKDIR_P
17263 case $MKDIR_P in
17264 [\\/$]* | ?:[\\/]* ) ;;
17265 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17266 esac
17267 _ACEOF
17268
17269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17270 # If the template does not know about datarootdir, expand it.
17271 # FIXME: This hack should be removed a few years after 2.60.
17272 ac_datarootdir_hack=; ac_datarootdir_seen=
17273 ac_sed_dataroot='
17274 /datarootdir/ {
17275 p
17276 q
17277 }
17278 /@datadir@/p
17279 /@docdir@/p
17280 /@infodir@/p
17281 /@localedir@/p
17282 /@mandir@/p'
17283 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17284 *datarootdir*) ac_datarootdir_seen=yes;;
17285 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17287 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17288 _ACEOF
17289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17290 ac_datarootdir_hack='
17291 s&@datadir@&$datadir&g
17292 s&@docdir@&$docdir&g
17293 s&@infodir@&$infodir&g
17294 s&@localedir@&$localedir&g
17295 s&@mandir@&$mandir&g
17296 s&\\\${datarootdir}&$datarootdir&g' ;;
17297 esac
17298 _ACEOF
17299
17300 # Neutralize VPATH when `$srcdir' = `.'.
17301 # Shell code in configure.ac might set extrasub.
17302 # FIXME: do we really want to maintain this feature?
17303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17304 ac_sed_extra="$ac_vpsub
17305 $extrasub
17306 _ACEOF
17307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17308 :t
17309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17310 s|@configure_input@|$ac_sed_conf_input|;t t
17311 s&@top_builddir@&$ac_top_builddir_sub&;t t
17312 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17313 s&@srcdir@&$ac_srcdir&;t t
17314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17315 s&@top_srcdir@&$ac_top_srcdir&;t t
17316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17317 s&@builddir@&$ac_builddir&;t t
17318 s&@abs_builddir@&$ac_abs_builddir&;t t
17319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17320 s&@INSTALL@&$ac_INSTALL&;t t
17321 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17322 $ac_datarootdir_hack
17323 "
17324 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17325 if $ac_cs_awk_getline; then
17326 $AWK -f "$ac_tmp/subs.awk"
17327 else
17328 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17329 fi \
17330 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17331
17332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17333 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17335 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17337 which seems to be undefined. Please make sure it is defined" >&5
17338 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17339 which seems to be undefined. Please make sure it is defined" >&2;}
17340
17341 rm -f "$ac_tmp/stdin"
17342 case $ac_file in
17343 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17344 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17345 esac \
17346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17347 ;;
17348 :H)
17349 #
17350 # CONFIG_HEADER
17351 #
17352 if test x"$ac_file" != x-; then
17353 {
17354 $as_echo "/* $configure_input */" \
17355 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17356 } >"$ac_tmp/config.h" \
17357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17358 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17360 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17361 else
17362 rm -f "$ac_file"
17363 mv "$ac_tmp/config.h" "$ac_file" \
17364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17365 fi
17366 else
17367 $as_echo "/* $configure_input */" \
17368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17369 || as_fn_error $? "could not create -" "$LINENO" 5
17370 fi
17371 # Compute "$ac_file"'s index in $config_headers.
17372 _am_arg="$ac_file"
17373 _am_stamp_count=1
17374 for _am_header in $config_headers :; do
17375 case $_am_header in
17376 $_am_arg | $_am_arg:* )
17377 break ;;
17378 * )
17379 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17380 esac
17381 done
17382 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17383 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17384 X"$_am_arg" : 'X\(//\)[^/]' \| \
17385 X"$_am_arg" : 'X\(//\)$' \| \
17386 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17387 $as_echo X"$_am_arg" |
17388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17389 s//\1/
17390 q
17391 }
17392 /^X\(\/\/\)[^/].*/{
17393 s//\1/
17394 q
17395 }
17396 /^X\(\/\/\)$/{
17397 s//\1/
17398 q
17399 }
17400 /^X\(\/\).*/{
17401 s//\1/
17402 q
17403 }
17404 s/.*/./; q'`/stamp-h$_am_stamp_count
17405 ;;
17406
17407 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17408 $as_echo "$as_me: executing $ac_file commands" >&6;}
17409 ;;
17410 esac
17411
17412
17413 case $ac_file$ac_mode in
17414 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17415 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17416 # are listed without --file. Let's play safe and only enable the eval
17417 # if we detect the quoting.
17418 case $CONFIG_FILES in
17419 *\'*) eval set x "$CONFIG_FILES" ;;
17420 *) set x $CONFIG_FILES ;;
17421 esac
17422 shift
17423 for mf
17424 do
17425 # Strip MF so we end up with the name of the file.
17426 mf=`echo "$mf" | sed -e 's/:.*$//'`
17427 # Check whether this is an Automake generated Makefile or not.
17428 # We used to match only the files named `Makefile.in', but
17429 # some people rename them; so instead we look at the file content.
17430 # Grep'ing the first line is not enough: some people post-process
17431 # each Makefile.in and add a new line on top of each file to say so.
17432 # Grep'ing the whole file is not good either: AIX grep has a line
17433 # limit of 2048, but all sed's we know have understand at least 4000.
17434 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17435 dirpart=`$as_dirname -- "$mf" ||
17436 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17437 X"$mf" : 'X\(//\)[^/]' \| \
17438 X"$mf" : 'X\(//\)$' \| \
17439 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17440 $as_echo X"$mf" |
17441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17442 s//\1/
17443 q
17444 }
17445 /^X\(\/\/\)[^/].*/{
17446 s//\1/
17447 q
17448 }
17449 /^X\(\/\/\)$/{
17450 s//\1/
17451 q
17452 }
17453 /^X\(\/\).*/{
17454 s//\1/
17455 q
17456 }
17457 s/.*/./; q'`
17458 else
17459 continue
17460 fi
17461 # Extract the definition of DEPDIR, am__include, and am__quote
17462 # from the Makefile without running `make'.
17463 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17464 test -z "$DEPDIR" && continue
17465 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17466 test -z "am__include" && continue
17467 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17468 # When using ansi2knr, U may be empty or an underscore; expand it
17469 U=`sed -n 's/^U = //p' < "$mf"`
17470 # Find all dependency output files, they are included files with
17471 # $(DEPDIR) in their names. We invoke sed twice because it is the
17472 # simplest approach to changing $(DEPDIR) to its actual value in the
17473 # expansion.
17474 for file in `sed -n "
17475 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17476 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17477 # Make sure the directory exists.
17478 test -f "$dirpart/$file" && continue
17479 fdir=`$as_dirname -- "$file" ||
17480 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17481 X"$file" : 'X\(//\)[^/]' \| \
17482 X"$file" : 'X\(//\)$' \| \
17483 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17484 $as_echo X"$file" |
17485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17486 s//\1/
17487 q
17488 }
17489 /^X\(\/\/\)[^/].*/{
17490 s//\1/
17491 q
17492 }
17493 /^X\(\/\/\)$/{
17494 s//\1/
17495 q
17496 }
17497 /^X\(\/\).*/{
17498 s//\1/
17499 q
17500 }
17501 s/.*/./; q'`
17502 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17503 # echo "creating $dirpart/$file"
17504 echo '# dummy' > "$dirpart/$file"
17505 done
17506 done
17507 }
17508 ;;
17509 "default":C)
17510
17511 ### Make the necessary directories, if they don't exist.
17512 for dir in etc lisp ; do
17513 test -d ${dir} || mkdir ${dir}
17514 done
17515
17516 echo creating src/epaths.h
17517 ${MAKE-make} epaths-force
17518
17519 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
17520 echo creating src/.gdbinit
17521 echo source $srcdir/src/.gdbinit > src/.gdbinit
17522 fi
17523
17524 ;;
17525
17526 esac
17527 done # for ac_tag
17528
17529
17530 as_fn_exit 0
17531 _ACEOF
17532 ac_clean_files=$ac_clean_files_save
17533
17534 test $ac_write_fail = 0 ||
17535 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17536
17537
17538 # configure is writing to config.log, and then calls config.status.
17539 # config.status does its own redirection, appending to config.log.
17540 # Unfortunately, on DOS this fails, as config.log is still kept open
17541 # by configure, so config.status won't be able to write to it; its
17542 # output is simply discarded. So we exec the FD to /dev/null,
17543 # effectively closing config.log, so it can be properly (re)opened and
17544 # appended to by config.status. When coming back to configure, we
17545 # need to make the FD available again.
17546 if test "$no_create" != yes; then
17547 ac_cs_success=:
17548 ac_config_status_args=
17549 test "$silent" = yes &&
17550 ac_config_status_args="$ac_config_status_args --quiet"
17551 exec 5>/dev/null
17552 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17553 exec 5>>config.log
17554 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17555 # would make configure fail if this is the last instruction.
17556 $ac_cs_success || as_fn_exit 1
17557 fi
17558 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17560 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17561 fi
17562
17563