]> code.delx.au - gnu-emacs/blob - configure
Regenerate.
[gnu-emacs] / 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 mkdir_p="$MKDIR_P"
2947 case $mkdir_p in
2948 [\\/$]* | ?:[\\/]*) ;;
2949 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2950 esac
2951
2952 for ac_prog in gawk mawk nawk awk
2953 do
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_AWK+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$AWK"; then
2962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_AWK="$ac_prog"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 AWK=$ac_cv_prog_AWK
2982 if test -n "$AWK"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2984 $as_echo "$AWK" >&6; }
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 test -n "$AWK" && break
2992 done
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2995 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2996 set x ${MAKE-make}
2997 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2998 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 cat >conftest.make <<\_ACEOF
3002 SHELL = /bin/sh
3003 all:
3004 @echo '@@@%%%=$(MAKE)=@@@%%%'
3005 _ACEOF
3006 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3008 *@@@%%%=?*=@@@%%%*)
3009 eval ac_cv_prog_make_${ac_make}_set=yes;;
3010 *)
3011 eval ac_cv_prog_make_${ac_make}_set=no;;
3012 esac
3013 rm -f conftest.make
3014 fi
3015 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017 $as_echo "yes" >&6; }
3018 SET_MAKE=
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 SET_MAKE="MAKE=${MAKE-make}"
3023 fi
3024
3025 rm -rf .tst 2>/dev/null
3026 mkdir .tst 2>/dev/null
3027 if test -d .tst; then
3028 am__leading_dot=.
3029 else
3030 am__leading_dot=_
3031 fi
3032 rmdir .tst 2>/dev/null
3033
3034 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3035 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3036 # is not polluted with repeated "-I."
3037 am__isrc=' -I$(srcdir)'
3038 # test to see if srcdir already configured
3039 if test -f $srcdir/config.status; then
3040 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3041 fi
3042 fi
3043
3044 # test whether we have cygpath
3045 if test -z "$CYGPATH_W"; then
3046 if (cygpath --version) >/dev/null 2>/dev/null; then
3047 CYGPATH_W='cygpath -w'
3048 else
3049 CYGPATH_W=echo
3050 fi
3051 fi
3052
3053
3054 # Define the identity of the package.
3055 PACKAGE='emacs'
3056 VERSION='24.0.50'
3057
3058
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE "$PACKAGE"
3061 _ACEOF
3062
3063
3064 cat >>confdefs.h <<_ACEOF
3065 #define VERSION "$VERSION"
3066 _ACEOF
3067
3068 # Some tools Automake needs.
3069
3070 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3071
3072
3073 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3074
3075
3076 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3077
3078
3079 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3080
3081
3082 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3083
3084 # We need awk for the "check" target. The system "awk" is bad on
3085 # some platforms.
3086 # Always define AMTAR for backward compatibility.
3087
3088 AMTAR=${AMTAR-"${am_missing_run}tar"}
3089
3090 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3091
3092
3093
3094
3095
3096
3097
3098
3099 lispdir='${datadir}/emacs/${version}/lisp'
3100 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3101 '${datadir}/emacs/site-lisp'
3102 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3103 etcdir='${datadir}/emacs/${version}/etc'
3104 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3105 docdir='${datadir}/emacs/${version}/etc'
3106 gamedir='${localstatedir}/games/emacs'
3107
3108
3109
3110
3111 # Check whether --with-pop was given.
3112 if test "${with_pop+set}" = set; then :
3113 withval=$with_pop;
3114 else
3115 with_pop=yes
3116 fi
3117
3118 if test "$with_pop" = yes; then
3119 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3120
3121 fi
3122
3123
3124 # Check whether --with-kerberos was given.
3125 if test "${with_kerberos+set}" = set; then :
3126 withval=$with_kerberos;
3127 else
3128 with_kerberos=no
3129 fi
3130
3131 if test "$with_kerberos" != no; then
3132 $as_echo "#define KERBEROS 1" >>confdefs.h
3133
3134 fi
3135
3136
3137 # Check whether --with-kerberos5 was given.
3138 if test "${with_kerberos5+set}" = set; then :
3139 withval=$with_kerberos5;
3140 else
3141 with_kerberos5=no
3142 fi
3143
3144 if test "${with_kerberos5}" != no; then
3145 if test "${with_kerberos}" = no; then
3146 with_kerberos=yes
3147 $as_echo "#define KERBEROS 1" >>confdefs.h
3148
3149 fi
3150
3151 $as_echo "#define KERBEROS5 1" >>confdefs.h
3152
3153 fi
3154
3155
3156 # Check whether --with-hesiod was given.
3157 if test "${with_hesiod+set}" = set; then :
3158 withval=$with_hesiod;
3159 else
3160 with_hesiod=no
3161 fi
3162
3163 if test "$with_hesiod" != no; then
3164
3165 $as_echo "#define HESIOD 1" >>confdefs.h
3166
3167 fi
3168
3169
3170 # Check whether --with-mmdf was given.
3171 if test "${with_mmdf+set}" = set; then :
3172 withval=$with_mmdf;
3173 else
3174 with_mmdf=no
3175 fi
3176
3177 if test "$with_mmdf" != no; then
3178
3179 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3180
3181 fi
3182
3183
3184 # Check whether --with-mail-unlink was given.
3185 if test "${with_mail_unlink+set}" = set; then :
3186 withval=$with_mail_unlink;
3187 else
3188 with_mail_unlink=no
3189 fi
3190
3191 if test "$with_mail_unlink" != no; then
3192
3193 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3194
3195 fi
3196
3197
3198 # Check whether --with-mailhost was given.
3199 if test "${with_mailhost+set}" = set; then :
3200 withval=$with_mailhost;
3201 cat >>confdefs.h <<_ACEOF
3202 #define MAILHOST "$withval"
3203 _ACEOF
3204
3205 fi
3206
3207
3208
3209 # Check whether --with-sound was given.
3210 if test "${with_sound+set}" = set; then :
3211 withval=$with_sound;
3212 else
3213 with_sound=yes
3214 fi
3215
3216
3217
3218 # Check whether --with-sync-input was given.
3219 if test "${with_sync_input+set}" = set; then :
3220 withval=$with_sync_input;
3221 else
3222 with_sync_input=yes
3223 fi
3224
3225 if test "$with_sync_input" = yes; then
3226
3227 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3228
3229 fi
3230
3231
3232 # Check whether --with-x-toolkit was given.
3233 if test "${with_x_toolkit+set}" = set; then :
3234 withval=$with_x_toolkit; case "${withval}" in
3235 y | ye | yes ) val=gtk ;;
3236 n | no ) val=no ;;
3237 l | lu | luc | luci | lucid ) val=lucid ;;
3238 a | at | ath | athe | athen | athena ) val=athena ;;
3239 m | mo | mot | moti | motif ) val=motif ;;
3240 g | gt | gtk ) val=gtk ;;
3241 gtk3 ) val=gtk3 ;;
3242 * )
3243 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3244 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3245 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3246 ;;
3247 esac
3248 with_x_toolkit=$val
3249
3250 fi
3251
3252
3253
3254 # Check whether --with-xpm was given.
3255 if test "${with_xpm+set}" = set; then :
3256 withval=$with_xpm;
3257 else
3258 with_xpm=yes
3259 fi
3260
3261
3262 # Check whether --with-jpeg was given.
3263 if test "${with_jpeg+set}" = set; then :
3264 withval=$with_jpeg;
3265 else
3266 with_jpeg=yes
3267 fi
3268
3269
3270 # Check whether --with-tiff was given.
3271 if test "${with_tiff+set}" = set; then :
3272 withval=$with_tiff;
3273 else
3274 with_tiff=yes
3275 fi
3276
3277
3278 # Check whether --with-gif was given.
3279 if test "${with_gif+set}" = set; then :
3280 withval=$with_gif;
3281 else
3282 with_gif=yes
3283 fi
3284
3285
3286 # Check whether --with-png was given.
3287 if test "${with_png+set}" = set; then :
3288 withval=$with_png;
3289 else
3290 with_png=yes
3291 fi
3292
3293
3294 # Check whether --with-rsvg was given.
3295 if test "${with_rsvg+set}" = set; then :
3296 withval=$with_rsvg;
3297 else
3298 with_rsvg=yes
3299 fi
3300
3301
3302 # Check whether --with-xml2 was given.
3303 if test "${with_xml2+set}" = set; then :
3304 withval=$with_xml2;
3305 else
3306 with_xml2=yes
3307 fi
3308
3309
3310 # Check whether --with-imagemagick was given.
3311 if test "${with_imagemagick+set}" = set; then :
3312 withval=$with_imagemagick;
3313 else
3314 with_imagemagick=yes
3315 fi
3316
3317
3318
3319 # Check whether --with-xft was given.
3320 if test "${with_xft+set}" = set; then :
3321 withval=$with_xft;
3322 else
3323 with_xft=yes
3324 fi
3325
3326
3327 # Check whether --with-libotf was given.
3328 if test "${with_libotf+set}" = set; then :
3329 withval=$with_libotf;
3330 else
3331 with_libotf=yes
3332 fi
3333
3334
3335 # Check whether --with-m17n-flt was given.
3336 if test "${with_m17n_flt+set}" = set; then :
3337 withval=$with_m17n_flt;
3338 else
3339 with_m17n_flt=yes
3340 fi
3341
3342
3343
3344 # Check whether --with-toolkit-scroll-bars was given.
3345 if test "${with_toolkit_scroll_bars+set}" = set; then :
3346 withval=$with_toolkit_scroll_bars;
3347 else
3348 with_toolkit_scroll_bars=yes
3349 fi
3350
3351
3352 # Check whether --with-xaw3d was given.
3353 if test "${with_xaw3d+set}" = set; then :
3354 withval=$with_xaw3d;
3355 else
3356 with_xaw3d=yes
3357 fi
3358
3359
3360 # Check whether --with-xim was given.
3361 if test "${with_xim+set}" = set; then :
3362 withval=$with_xim;
3363 else
3364 with_xim=yes
3365 fi
3366
3367
3368 # Check whether --with-ns was given.
3369 if test "${with_ns+set}" = set; then :
3370 withval=$with_ns;
3371 else
3372 with_ns=no
3373 fi
3374
3375
3376
3377 # Check whether --with-gpm was given.
3378 if test "${with_gpm+set}" = set; then :
3379 withval=$with_gpm;
3380 else
3381 with_gpm=yes
3382 fi
3383
3384
3385 # Check whether --with-dbus was given.
3386 if test "${with_dbus+set}" = set; then :
3387 withval=$with_dbus;
3388 else
3389 with_dbus=yes
3390 fi
3391
3392
3393 # Check whether --with-gconf was given.
3394 if test "${with_gconf+set}" = set; then :
3395 withval=$with_gconf;
3396 else
3397 with_gconf=yes
3398 fi
3399
3400
3401 # Check whether --with-selinux was given.
3402 if test "${with_selinux+set}" = set; then :
3403 withval=$with_selinux;
3404 else
3405 with_selinux=yes
3406 fi
3407
3408
3409 # Check whether --with-gnutls was given.
3410 if test "${with_gnutls+set}" = set; then :
3411 withval=$with_gnutls;
3412 else
3413 with_gnutls=yes
3414 fi
3415
3416
3417 ## For the times when you want to build Emacs but don't have
3418 ## a suitable makeinfo, and can live without the manuals.
3419
3420 # Check whether --with-makeinfo was given.
3421 if test "${with_makeinfo+set}" = set; then :
3422 withval=$with_makeinfo;
3423 else
3424 with_makeinfo=yes
3425 fi
3426
3427
3428 ## This is an option because I do not know if all info/man support
3429 ## compressed files, nor how to test if they do so.
3430
3431 # Check whether --with-compress-info was given.
3432 if test "${with_compress_info+set}" = set; then :
3433 withval=$with_compress_info;
3434 else
3435 with_compress_info=yes
3436 fi
3437
3438 if test $with_compress_info = yes; then
3439 GZIP_INFO=yes
3440 else
3441 GZIP_INFO=
3442 fi
3443
3444
3445
3446 # Check whether --with-pkg-config-prog was given.
3447 if test "${with_pkg_config_prog+set}" = set; then :
3448 withval=$with_pkg_config_prog;
3449 fi
3450
3451 if test "X${with_pkg_config_prog}" != X; then
3452 if test "${with_pkg_config_prog}" != yes; then
3453 PKG_CONFIG="${with_pkg_config_prog}"
3454 fi
3455 fi
3456
3457 CRT_DIR=
3458
3459 # Check whether --with-crt-dir was given.
3460 if test "${with_crt_dir+set}" = set; then :
3461 withval=$with_crt_dir;
3462 fi
3463
3464 CRT_DIR="${with_crt_dir}"
3465
3466
3467 # Check whether --with-gameuser was given.
3468 if test "${with_gameuser+set}" = set; then :
3469 withval=$with_gameuser;
3470 fi
3471
3472 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3473 && gameuser="${with_gameuser}"
3474 test "X$gameuser" = X && gameuser=games
3475
3476
3477 # Check whether --with-gnustep-conf was given.
3478 if test "${with_gnustep_conf+set}" = set; then :
3479 withval=$with_gnustep_conf;
3480 fi
3481
3482 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3483 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3484 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3485 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3486
3487 # Check whether --enable-ns-self-contained was given.
3488 if test "${enable_ns_self_contained+set}" = set; then :
3489 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3490 else
3491 EN_NS_SELF_CONTAINED=yes
3492 fi
3493
3494
3495 # Check whether --enable-asserts was given.
3496 if test "${enable_asserts+set}" = set; then :
3497 enableval=$enable_asserts; USE_XASSERTS=$enableval
3498 else
3499 USE_XASSERTS=no
3500 fi
3501
3502
3503 # Check whether --enable-maintainer-mode was given.
3504 if test "${enable_maintainer_mode+set}" = set; then :
3505 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3506 else
3507 USE_MAINTAINER_MODE=no
3508 fi
3509
3510 if test $USE_MAINTAINER_MODE = yes; then
3511 MAINT=
3512 else
3513 MAINT=#
3514 fi
3515
3516
3517 # Check whether --enable-locallisppath was given.
3518 if test "${enable_locallisppath+set}" = set; then :
3519 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3520 locallisppath=
3521 elif test "${enableval}" != "yes"; then
3522 locallisppath=${enableval}
3523 fi
3524 fi
3525
3526
3527 # Check whether --enable-checking was given.
3528 if test "${enable_checking+set}" = set; then :
3529 enableval=$enable_checking; ac_checking_flags="${enableval}"
3530 fi
3531
3532 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3533 for check in $ac_checking_flags
3534 do
3535 case $check in
3536 # these set all the flags to specific states
3537 yes) ac_enable_checking=1 ;;
3538 no) ac_enable_checking= ;
3539 ac_gc_check_stringbytes= ;
3540 ac_gc_check_string_overrun= ;
3541 ac_gc_check_string_free_list= ;
3542 ac_xmalloc_overrun= ;
3543 ac_gc_check_cons_list= ;;
3544 all) ac_enable_checking=1 ;
3545 ac_gc_check_stringbytes=1 ;
3546 ac_gc_check_string_overrun=1 ;
3547 ac_gc_check_string_free_list=1 ;
3548 ac_xmalloc_overrun=1 ;
3549 ac_gc_check_cons_list=1 ;;
3550 # these enable particular checks
3551 stringbytes) ac_gc_check_stringbytes=1 ;;
3552 stringoverrun) ac_gc_check_string_overrun=1 ;;
3553 stringfreelist) ac_gc_check_string_free_list=1 ;;
3554 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3555 conslist) ac_gc_check_cons_list=1 ;;
3556 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3557 esac
3558 done
3559 IFS="$ac_save_IFS"
3560
3561 if test x$ac_enable_checking != x ; then
3562
3563 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3564
3565 fi
3566 if test x$ac_gc_check_stringbytes != x ; then
3567
3568 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3569
3570 fi
3571 if test x$ac_gc_check_stringoverrun != x ; then
3572
3573 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3574
3575 fi
3576 if test x$ac_gc_check_string_free_list != x ; then
3577
3578 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3579
3580 fi
3581 if test x$ac_xmalloc_overrun != x ; then
3582
3583 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3584
3585 fi
3586 if test x$ac_gc_check_cons_list != x ; then
3587
3588 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3589
3590 fi
3591
3592 # Check whether --enable-use-lisp-union-type was given.
3593 if test "${enable_use_lisp_union_type+set}" = set; then :
3594 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3595
3596 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3597
3598 fi
3599 fi
3600
3601
3602
3603 # Check whether --enable-profiling was given.
3604 if test "${enable_profiling+set}" = set; then :
3605 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3606 fi
3607
3608 if test x$ac_enable_profiling != x ; then
3609 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3610 else
3611 PROFILING_CFLAGS=
3612 fi
3613
3614
3615 # Check whether --enable-autodepend was given.
3616 if test "${enable_autodepend+set}" = set; then :
3617 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3618 else
3619 ac_enable_autodepend=yes
3620 fi
3621
3622
3623 #### Make srcdir absolute, if it isn't already. It's important to
3624 #### avoid running the path through pwd unnecessarily, since pwd can
3625 #### give you automounter prefixes, which can go away. We do all this
3626 #### so Emacs can find its files when run uninstalled.
3627 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3628 unset CDPATH
3629 case "${srcdir}" in
3630 /* ) ;;
3631 . )
3632 ## We may be able to use the $PWD environment variable to make this
3633 ## absolute. But sometimes PWD is inaccurate.
3634 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3635 ## but that tested only for a well-formed and valid PWD,
3636 ## it did not object when PWD was well-formed and valid but just wrong.
3637 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3638 then
3639 srcdir="$PWD"
3640 else
3641 srcdir="`(cd ${srcdir}; pwd)`"
3642 fi
3643 ;;
3644 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3645 esac
3646
3647 #### Check if the source directory already has a configured system in it.
3648 if test `pwd` != `(cd ${srcdir} && pwd)` \
3649 && test -f "${srcdir}/src/config.h" ; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3651 as a build directory right now; it has been configured in its own
3652 right. To configure in another directory as well, you MUST
3653 use GNU make. If you do not have GNU make, then you must
3654 now do \`make distclean' in ${srcdir},
3655 and then run $0 again." >&5
3656 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3657 as a build directory right now; it has been configured in its own
3658 right. To configure in another directory as well, you MUST
3659 use GNU make. If you do not have GNU make, then you must
3660 now do \`make distclean' in ${srcdir},
3661 and then run $0 again." >&2;}
3662 fi
3663
3664 #### Given the configuration name, set machfile and opsysfile to the
3665 #### names of the m/*.h and s/*.h files we should use.
3666
3667 ### Canonicalize the configuration name.
3668
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3672
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3674 $as_echo_n "checking build system type... " >&6; }
3675 if ${ac_cv_build+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_build_alias=$build_alias
3679 test "x$ac_build_alias" = x &&
3680 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3681 test "x$ac_build_alias" = x &&
3682 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3683 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3684 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3685
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3688 $as_echo "$ac_cv_build" >&6; }
3689 case $ac_cv_build in
3690 *-*-*) ;;
3691 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3692 esac
3693 build=$ac_cv_build
3694 ac_save_IFS=$IFS; IFS='-'
3695 set x $ac_cv_build
3696 shift
3697 build_cpu=$1
3698 build_vendor=$2
3699 shift; shift
3700 # Remember, the first character of IFS is used to create $*,
3701 # except with old shells:
3702 build_os=$*
3703 IFS=$ac_save_IFS
3704 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3705
3706
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3708 $as_echo_n "checking host system type... " >&6; }
3709 if ${ac_cv_host+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test "x$host_alias" = x; then
3713 ac_cv_host=$ac_cv_build
3714 else
3715 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3716 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3717 fi
3718
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3721 $as_echo "$ac_cv_host" >&6; }
3722 case $ac_cv_host in
3723 *-*-*) ;;
3724 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3725 esac
3726 host=$ac_cv_host
3727 ac_save_IFS=$IFS; IFS='-'
3728 set x $ac_cv_host
3729 shift
3730 host_cpu=$1
3731 host_vendor=$2
3732 shift; shift
3733 # Remember, the first character of IFS is used to create $*,
3734 # except with old shells:
3735 host_os=$*
3736 IFS=$ac_save_IFS
3737 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3738
3739
3740 canonical=$host
3741 configuration=${host_alias-${build_alias-$host}}
3742
3743
3744
3745 ### If you add support for a new configuration, add code to this
3746 ### switch statement to recognize your configuration name and select
3747 ### the appropriate operating system and machine description files.
3748
3749 ### You would hope that you could choose an m/*.h file pretty much
3750 ### based on the machine portion of the configuration name, and an s/*.h
3751 ### file based on the operating system portion. However, it turns out
3752 ### that each m/*.h file is pretty manufacturer-specific - for
3753 ### example mips.h is MIPS
3754 ### So we basically have to have a special case for each
3755 ### configuration name.
3756 ###
3757 ### As far as handling version numbers on operating systems is
3758 ### concerned, make sure things will fail in a fixable way. If
3759 ### /etc/MACHINES doesn't say anything about version numbers, be
3760 ### prepared to handle anything reasonably. If version numbers
3761 ### matter, be sure /etc/MACHINES says something about it.
3762
3763 machine='' opsys='' unported=no
3764 case "${canonical}" in
3765
3766 ## GNU/Linux ports
3767 *-*-linux-gnu*)
3768 opsys=gnu-linux
3769 case ${canonical} in
3770 alpha*) machine=alpha ;;
3771 s390-*) machine=ibms390 ;;
3772 s390x-*) machine=ibms390x ;;
3773 powerpc*) machine=macppc ;;
3774 sparc*) machine=sparc ;;
3775 ia64*) machine=ia64 ;;
3776 m68k*) machine=m68k ;;
3777 x86_64*) machine=amdx86-64 ;;
3778 esac
3779 ;;
3780
3781 ## FreeBSD ports
3782 *-*-freebsd* )
3783 opsys=freebsd
3784 case "${canonical}" in
3785 alpha*) machine=alpha ;;
3786 amd64-*|x86_64-*) machine=amdx86-64 ;;
3787 ia64-*) machine=ia64 ;;
3788 i[3456]86-*) machine=intel386 ;;
3789 powerpc-*) machine=macppc ;;
3790 sparc-*) machine=sparc ;;
3791 sparc64-*) machine=sparc ;;
3792 esac
3793 ;;
3794
3795 ## FreeBSD kernel + glibc based userland
3796 *-*-kfreebsd*gnu* )
3797 opsys=gnu-kfreebsd
3798 case "${canonical}" in
3799 alpha*) machine=alpha ;;
3800 amd64-*|x86_64-*) machine=amdx86-64 ;;
3801 ia64-*) machine=ia64 ;;
3802 i[3456]86-*) machine=intel386 ;;
3803 powerpc-*) machine=macppc ;;
3804 sparc-*) machine=sparc ;;
3805 sparc64-*) machine=sparc ;;
3806 esac
3807 ;;
3808
3809 ## NetBSD ports
3810 *-*-netbsd* )
3811 opsys=netbsd
3812 case "${canonical}" in
3813 alpha*) machine=alpha ;;
3814 x86_64-*) machine=amdx86-64 ;;
3815 i[3456]86-*) machine=intel386 ;;
3816 m68k-*) machine=m68k ;;
3817 powerpc-*) machine=macppc ;;
3818 sparc*-) machine=sparc ;;
3819 vax-*) machine=vax ;;
3820 esac
3821 ;;
3822
3823 ## OpenBSD ports
3824 *-*-openbsd* )
3825 opsys=openbsd
3826 case "${canonical}" in
3827 alpha*) machine=alpha ;;
3828 x86_64-*) machine=amdx86-64 ;;
3829 i386-*) machine=intel386 ;;
3830 powerpc-*) machine=macppc ;;
3831 sparc*) machine=sparc ;;
3832 vax-*) machine=vax ;;
3833 esac
3834 ;;
3835
3836 ## Apple Darwin / Mac OS X
3837 *-apple-darwin* )
3838 case "${canonical}" in
3839 i[3456]86-* ) machine=intel386 ;;
3840 powerpc-* ) machine=macppc ;;
3841 x86_64-* ) machine=amdx86-64 ;;
3842 * ) unported=yes ;;
3843 esac
3844 opsys=darwin
3845 # Define CPP as follows to make autoconf work correctly.
3846 CPP="${CC-cc} -E -no-cpp-precomp"
3847 # Use fink packages if available.
3848 if test -d /sw/include && test -d /sw/lib; then
3849 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3850 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3851 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3852 fi
3853 ;;
3854
3855 ## HP 9000 series 700 and 800, running HP/UX
3856 hppa*-hp-hpux10.2* )
3857 opsys=hpux10-20
3858 ;;
3859 hppa*-hp-hpux1[1-9]* )
3860 opsys=hpux11
3861 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3862 ;;
3863
3864 ## IBM machines
3865 rs6000-ibm-aix4.[23]* )
3866 machine=ibmrs6000 opsys=aix4-2
3867 ;;
3868 powerpc-ibm-aix4.[23]* )
3869 machine=ibmrs6000 opsys=aix4-2
3870 ;;
3871 rs6000-ibm-aix[56]* )
3872 machine=ibmrs6000 opsys=aix4-2
3873 ;;
3874 powerpc-ibm-aix[56]* )
3875 machine=ibmrs6000 opsys=aix4-2
3876 ;;
3877
3878 ## Silicon Graphics machines
3879 ## Iris 4D
3880 mips-sgi-irix6.5 )
3881 machine=iris4d opsys=irix6-5
3882 # Without defining _LANGUAGE_C, things get masked out in the headers
3883 # so that, for instance, grepping for `free' in stdlib.h fails and
3884 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3885 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3886 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3887 ;;
3888
3889 ## Suns
3890 *-sun-solaris* \
3891 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3892 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3893 case "${canonical}" in
3894 i[3456]86-*-* ) machine=intel386 ;;
3895 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3896 sparc* ) machine=sparc ;;
3897 * ) unported=yes ;;
3898 esac
3899 case "${canonical}" in
3900 *-sunos5.6* | *-solaris2.6* )
3901 opsys=sol2-6
3902 NON_GNU_CPP=/usr/ccs/lib/cpp
3903 RANLIB="ar -ts"
3904 ;;
3905 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3906 opsys=sol2-6
3907 emacs_check_sunpro_c=yes
3908 NON_GNU_CPP=/usr/ccs/lib/cpp
3909 ;;
3910 *-sunos5* | *-solaris* )
3911 opsys=sol2-10
3912 emacs_check_sunpro_c=yes
3913 NON_GNU_CPP=/usr/ccs/lib/cpp
3914 ;;
3915 esac
3916 ## Watch out for a compiler that we know will not work.
3917 case "${canonical}" in
3918 *-solaris* | *-sunos5* )
3919 if [ "x$CC" = x/usr/ucb/cc ]; then
3920 ## /usr/ucb/cc doesn't work;
3921 ## we should find some other compiler that does work.
3922 unset CC
3923 fi
3924 ;;
3925 *) ;;
3926 esac
3927 ;;
3928
3929 ## Intel 386 machines where we don't care about the manufacturer.
3930 i[3456]86-*-* )
3931 machine=intel386
3932 case "${canonical}" in
3933 *-cygwin ) opsys=cygwin ;;
3934 *-darwin* ) opsys=darwin
3935 CPP="${CC-cc} -E -no-cpp-precomp"
3936 ;;
3937 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3938 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3939 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3940 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3941 esac
3942 ;;
3943
3944 * )
3945 unported=yes
3946 ;;
3947 esac
3948
3949 ### If the code above didn't choose an operating system, just choose
3950 ### an operating system based on the configuration name. You really
3951 ### only want to use this when you have no idea what the right
3952 ### operating system is; if you know what operating systems a machine
3953 ### runs, it's cleaner to make it explicit in the case statement
3954 ### above.
3955 if test x"${opsys}" = x; then
3956 case "${canonical}" in
3957 *-gnu* ) opsys=gnu ;;
3958 * )
3959 unported=yes
3960 ;;
3961 esac
3962 fi
3963
3964
3965
3966 if test $unported = yes; then
3967 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3968 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3969 fi
3970
3971 if test -n "$machine"; then
3972 machfile="m/${machine}.h"
3973 else
3974 machfile=
3975 fi
3976 opsysfile="s/${opsys}.h"
3977
3978
3979 #### Choose a compiler.
3980 test -n "$CC" && cc_specified=yes
3981
3982 # Save the value of CFLAGS that the user specified.
3983 SPECIFIED_CFLAGS="$CFLAGS"
3984
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990 if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if ${ac_cv_prog_CC+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -n "$CC"; then
3999 ac_cv_prog_CC="$CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4011 fi
4012 done
4013 done
4014 IFS=$as_save_IFS
4015
4016 fi
4017 fi
4018 CC=$ac_cv_prog_CC
4019 if test -n "$CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4021 $as_echo "$CC" >&6; }
4022 else
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4025 fi
4026
4027
4028 fi
4029 if test -z "$ac_cv_prog_CC"; then
4030 ac_ct_CC=$CC
4031 # Extract the first word of "gcc", so it can be a program name with args.
4032 set dummy gcc; ac_word=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -n "$ac_ct_CC"; then
4039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_ac_ct_CC="gcc"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4051 fi
4052 done
4053 done
4054 IFS=$as_save_IFS
4055
4056 fi
4057 fi
4058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059 if test -n "$ac_ct_CC"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4061 $as_echo "$ac_ct_CC" >&6; }
4062 else
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4065 fi
4066
4067 if test "x$ac_ct_CC" = x; then
4068 CC=""
4069 else
4070 case $cross_compiling:$ac_tool_warned in
4071 yes:)
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4074 ac_tool_warned=yes ;;
4075 esac
4076 CC=$ac_ct_CC
4077 fi
4078 else
4079 CC="$ac_cv_prog_CC"
4080 fi
4081
4082 if test -z "$CC"; then
4083 if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}cc; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_prog_CC="${ac_tool_prefix}cc"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 break 2
4104 fi
4105 done
4106 done
4107 IFS=$as_save_IFS
4108
4109 fi
4110 fi
4111 CC=$ac_cv_prog_CC
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4115 else
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4118 fi
4119
4120
4121 fi
4122 fi
4123 if test -z "$CC"; then
4124 # Extract the first word of "cc", so it can be a program name with args.
4125 set dummy cc; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_CC+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4133 else
4134 ac_prog_rejected=no
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4143 ac_prog_rejected=yes
4144 continue
4145 fi
4146 ac_cv_prog_CC="cc"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150 done
4151 done
4152 IFS=$as_save_IFS
4153
4154 if test $ac_prog_rejected = yes; then
4155 # We found a bogon in the path, so make sure we never use it.
4156 set dummy $ac_cv_prog_CC
4157 shift
4158 if test $# != 0; then
4159 # We chose a different compiler from the bogus one.
4160 # However, it has the same basename, so the bogon will be chosen
4161 # first if we set CC to just the basename; use the full file name.
4162 shift
4163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4164 fi
4165 fi
4166 fi
4167 fi
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178 fi
4179 if test -z "$CC"; then
4180 if test -n "$ac_tool_prefix"; then
4181 for ac_prog in cl.exe
4182 do
4183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_CC+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 if test -n "$CC"; then
4191 ac_cv_prog_CC="$CC" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204 done
4205 done
4206 IFS=$as_save_IFS
4207
4208 fi
4209 fi
4210 CC=$ac_cv_prog_CC
4211 if test -n "$CC"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4213 $as_echo "$CC" >&6; }
4214 else
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4217 fi
4218
4219
4220 test -n "$CC" && break
4221 done
4222 fi
4223 if test -z "$CC"; then
4224 ac_ct_CC=$CC
4225 for ac_prog in cl.exe
4226 do
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -n "$ac_ct_CC"; then
4235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_prog_ac_ct_CC="$ac_prog"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4247 fi
4248 done
4249 done
4250 IFS=$as_save_IFS
4251
4252 fi
4253 fi
4254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4255 if test -n "$ac_ct_CC"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4257 $as_echo "$ac_ct_CC" >&6; }
4258 else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 fi
4262
4263
4264 test -n "$ac_ct_CC" && break
4265 done
4266
4267 if test "x$ac_ct_CC" = x; then
4268 CC=""
4269 else
4270 case $cross_compiling:$ac_tool_warned in
4271 yes:)
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4274 ac_tool_warned=yes ;;
4275 esac
4276 CC=$ac_ct_CC
4277 fi
4278 fi
4279
4280 fi
4281
4282
4283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error $? "no acceptable C compiler found in \$PATH
4286 See \`config.log' for more details" "$LINENO" 5; }
4287
4288 # Provide some information about the compiler.
4289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4290 set X $ac_compile
4291 ac_compiler=$2
4292 for ac_option in --version -v -V -qversion; do
4293 { { ac_try="$ac_compiler $ac_option >&5"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4301 ac_status=$?
4302 if test -s conftest.err; then
4303 sed '10a\
4304 ... rest of stderr output deleted ...
4305 10q' conftest.err >conftest.er1
4306 cat conftest.er1 >&5
4307 fi
4308 rm -f conftest.er1 conftest.err
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }
4311 done
4312
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315
4316 int
4317 main ()
4318 {
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 ac_clean_files_save=$ac_clean_files
4325 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4326 # Try to create an executable without -o first, disregard a.out.
4327 # It will help us diagnose broken compilers, and finding out an intuition
4328 # of exeext.
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4330 $as_echo_n "checking whether the C compiler works... " >&6; }
4331 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4332
4333 # The possible output files:
4334 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4335
4336 ac_rmfiles=
4337 for ac_file in $ac_files
4338 do
4339 case $ac_file in
4340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4341 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4342 esac
4343 done
4344 rm -f $ac_rmfiles
4345
4346 if { { ac_try="$ac_link_default"
4347 case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350 esac
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_link_default") 2>&5
4354 ac_status=$?
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }; then :
4357 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4358 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4359 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4360 # so that the user can short-circuit this test for compilers unknown to
4361 # Autoconf.
4362 for ac_file in $ac_files ''
4363 do
4364 test -f "$ac_file" || continue
4365 case $ac_file in
4366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4367 ;;
4368 [ab].out )
4369 # We found the default executable, but exeext='' is most
4370 # certainly right.
4371 break;;
4372 *.* )
4373 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4374 then :; else
4375 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4376 fi
4377 # We set ac_cv_exeext here because the later test for it is not
4378 # safe: cross compilers may not add the suffix if given an `-o'
4379 # argument, so we may need to know it at that point already.
4380 # Even if this section looks crufty: it has the advantage of
4381 # actually working.
4382 break;;
4383 * )
4384 break;;
4385 esac
4386 done
4387 test "$ac_cv_exeext" = no && ac_cv_exeext=
4388
4389 else
4390 ac_file=''
4391 fi
4392 if test -z "$ac_file"; then :
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 $as_echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4400 as_fn_error 77 "C compiler cannot create executables
4401 See \`config.log' for more details" "$LINENO" 5; }
4402 else
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4404 $as_echo "yes" >&6; }
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4407 $as_echo_n "checking for C compiler default output file name... " >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4409 $as_echo "$ac_file" >&6; }
4410 ac_exeext=$ac_cv_exeext
4411
4412 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4413 ac_clean_files=$ac_clean_files_save
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4415 $as_echo_n "checking for suffix of executables... " >&6; }
4416 if { { ac_try="$ac_link"
4417 case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420 esac
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 $as_echo "$ac_try_echo"; } >&5
4423 (eval "$ac_link") 2>&5
4424 ac_status=$?
4425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426 test $ac_status = 0; }; then :
4427 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4428 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4429 # work properly (i.e., refer to `conftest.exe'), while it won't with
4430 # `rm'.
4431 for ac_file in conftest.exe conftest conftest.*; do
4432 test -f "$ac_file" || continue
4433 case $ac_file in
4434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4435 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4436 break;;
4437 * ) break;;
4438 esac
4439 done
4440 else
4441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4444 See \`config.log' for more details" "$LINENO" 5; }
4445 fi
4446 rm -f conftest conftest$ac_cv_exeext
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4448 $as_echo "$ac_cv_exeext" >&6; }
4449
4450 rm -f conftest.$ac_ext
4451 EXEEXT=$ac_cv_exeext
4452 ac_exeext=$EXEEXT
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 #include <stdio.h>
4456 int
4457 main ()
4458 {
4459 FILE *f = fopen ("conftest.out", "w");
4460 return ferror (f) || fclose (f) != 0;
4461
4462 ;
4463 return 0;
4464 }
4465 _ACEOF
4466 ac_clean_files="$ac_clean_files conftest.out"
4467 # Check that the compiler produces executables we can run. If not, either
4468 # the compiler is broken, or we cross compile.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4470 $as_echo_n "checking whether we are cross compiling... " >&6; }
4471 if test "$cross_compiling" != yes; then
4472 { { ac_try="$ac_link"
4473 case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_link") 2>&5
4480 ac_status=$?
4481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }
4483 if { ac_try='./conftest$ac_cv_exeext'
4484 { { case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_try") 2>&5
4491 ac_status=$?
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; }; then
4494 cross_compiling=no
4495 else
4496 if test "$cross_compiling" = maybe; then
4497 cross_compiling=yes
4498 else
4499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501 as_fn_error $? "cannot run C compiled programs.
4502 If you meant to cross compile, use \`--host'.
4503 See \`config.log' for more details" "$LINENO" 5; }
4504 fi
4505 fi
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4508 $as_echo "$cross_compiling" >&6; }
4509
4510 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4511 ac_clean_files=$ac_clean_files_save
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4513 $as_echo_n "checking for suffix of object files... " >&6; }
4514 if ${ac_cv_objext+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519
4520 int
4521 main ()
4522 {
4523
4524 ;
4525 return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.o conftest.obj
4529 if { { ac_try="$ac_compile"
4530 case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535 $as_echo "$ac_try_echo"; } >&5
4536 (eval "$ac_compile") 2>&5
4537 ac_status=$?
4538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539 test $ac_status = 0; }; then :
4540 for ac_file in conftest.o conftest.obj conftest.*; do
4541 test -f "$ac_file" || continue;
4542 case $ac_file in
4543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4544 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4545 break;;
4546 esac
4547 done
4548 else
4549 $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4554 as_fn_error $? "cannot compute suffix of object files: cannot compile
4555 See \`config.log' for more details" "$LINENO" 5; }
4556 fi
4557 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4560 $as_echo "$ac_cv_objext" >&6; }
4561 OBJEXT=$ac_cv_objext
4562 ac_objext=$OBJEXT
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4564 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4565 if ${ac_cv_c_compiler_gnu+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570
4571 int
4572 main ()
4573 {
4574 #ifndef __GNUC__
4575 choke me
4576 #endif
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 ac_compiler_gnu=yes
4584 else
4585 ac_compiler_gnu=no
4586 fi
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4589
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4592 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4593 if test $ac_compiler_gnu = yes; then
4594 GCC=yes
4595 else
4596 GCC=
4597 fi
4598 ac_test_CFLAGS=${CFLAGS+set}
4599 ac_save_CFLAGS=$CFLAGS
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4601 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4602 if ${ac_cv_prog_cc_g+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 ac_save_c_werror_flag=$ac_c_werror_flag
4606 ac_c_werror_flag=yes
4607 ac_cv_prog_cc_g=no
4608 CFLAGS="-g"
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4611
4612 int
4613 main ()
4614 {
4615
4616 ;
4617 return 0;
4618 }
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_prog_cc_g=yes
4622 else
4623 CFLAGS=""
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626
4627 int
4628 main ()
4629 {
4630
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636
4637 else
4638 ac_c_werror_flag=$ac_save_c_werror_flag
4639 CFLAGS="-g"
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642
4643 int
4644 main ()
4645 {
4646
4647 ;
4648 return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4652 ac_cv_prog_cc_g=yes
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 fi
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 fi
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 ac_c_werror_flag=$ac_save_c_werror_flag
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4662 $as_echo "$ac_cv_prog_cc_g" >&6; }
4663 if test "$ac_test_CFLAGS" = set; then
4664 CFLAGS=$ac_save_CFLAGS
4665 elif test $ac_cv_prog_cc_g = yes; then
4666 if test "$GCC" = yes; then
4667 CFLAGS="-g -O2"
4668 else
4669 CFLAGS="-g"
4670 fi
4671 else
4672 if test "$GCC" = yes; then
4673 CFLAGS="-O2"
4674 else
4675 CFLAGS=
4676 fi
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4679 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4680 if ${ac_cv_prog_cc_c89+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 ac_cv_prog_cc_c89=no
4684 ac_save_CC=$CC
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <stdarg.h>
4688 #include <stdio.h>
4689 #include <sys/types.h>
4690 #include <sys/stat.h>
4691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4692 struct buf { int x; };
4693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4694 static char *e (p, i)
4695 char **p;
4696 int i;
4697 {
4698 return p[i];
4699 }
4700 static char *f (char * (*g) (char **, int), char **p, ...)
4701 {
4702 char *s;
4703 va_list v;
4704 va_start (v,p);
4705 s = g (p, va_arg (v,int));
4706 va_end (v);
4707 return s;
4708 }
4709
4710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4711 function prototypes and stuff, but not '\xHH' hex character constants.
4712 These don't provoke an error unfortunately, instead are silently treated
4713 as 'x'. The following induces an error, until -std is added to get
4714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4715 array size at least. It's necessary to write '\x00'==0 to get something
4716 that's true only with -std. */
4717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4718
4719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4720 inside strings and character constants. */
4721 #define FOO(x) 'x'
4722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4723
4724 int test (int i, double x);
4725 struct s1 {int (*f) (int a);};
4726 struct s2 {int (*f) (double a);};
4727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4728 int argc;
4729 char **argv;
4730 int
4731 main ()
4732 {
4733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4740 do
4741 CC="$ac_save_CC $ac_arg"
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_prog_cc_c89=$ac_arg
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext
4746 test "x$ac_cv_prog_cc_c89" != "xno" && break
4747 done
4748 rm -f conftest.$ac_ext
4749 CC=$ac_save_CC
4750
4751 fi
4752 # AC_CACHE_VAL
4753 case "x$ac_cv_prog_cc_c89" in
4754 x)
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4756 $as_echo "none needed" >&6; } ;;
4757 xno)
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4759 $as_echo "unsupported" >&6; } ;;
4760 *)
4761 CC="$CC $ac_cv_prog_cc_c89"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4763 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4764 esac
4765 if test "x$ac_cv_prog_cc_c89" != xno; then :
4766
4767 fi
4768
4769 ac_ext=c
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774 DEPDIR="${am__leading_dot}deps"
4775
4776 ac_config_commands="$ac_config_commands depfiles"
4777
4778
4779 am_make=${MAKE-make}
4780 cat > confinc << 'END'
4781 am__doit:
4782 @echo this is the am__doit target
4783 .PHONY: am__doit
4784 END
4785 # If we don't find an include directive, just comment out the code.
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4787 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4788 am__include="#"
4789 am__quote=
4790 _am_result=none
4791 # First try GNU make style include.
4792 echo "include confinc" > confmf
4793 # Ignore all kinds of additional output from `make'.
4794 case `$am_make -s -f confmf 2> /dev/null` in #(
4795 *the\ am__doit\ target*)
4796 am__include=include
4797 am__quote=
4798 _am_result=GNU
4799 ;;
4800 esac
4801 # Now try BSD make style include.
4802 if test "$am__include" = "#"; then
4803 echo '.include "confinc"' > confmf
4804 case `$am_make -s -f confmf 2> /dev/null` in #(
4805 *the\ am__doit\ target*)
4806 am__include=.include
4807 am__quote="\""
4808 _am_result=BSD
4809 ;;
4810 esac
4811 fi
4812
4813
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4815 $as_echo "$_am_result" >&6; }
4816 rm -f confinc confmf
4817
4818 # Check whether --enable-dependency-tracking was given.
4819 if test "${enable_dependency_tracking+set}" = set; then :
4820 enableval=$enable_dependency_tracking;
4821 fi
4822
4823 if test "x$enable_dependency_tracking" != xno; then
4824 am_depcomp="$ac_aux_dir/depcomp"
4825 AMDEPBACKSLASH='\'
4826 fi
4827 if test "x$enable_dependency_tracking" != xno; then
4828 AMDEP_TRUE=
4829 AMDEP_FALSE='#'
4830 else
4831 AMDEP_TRUE='#'
4832 AMDEP_FALSE=
4833 fi
4834
4835
4836
4837 depcc="$CC" am_compiler_list=
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4840 $as_echo_n "checking dependency style of $depcc... " >&6; }
4841 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845 # We make a subdir and do the tests there. Otherwise we can end up
4846 # making bogus files that we don't know about and never remove. For
4847 # instance it was reported that on HP-UX the gcc test will end up
4848 # making a dummy file named `D' -- because `-MD' means `put the output
4849 # in D'.
4850 mkdir conftest.dir
4851 # Copy depcomp to subdir because otherwise we won't find it if we're
4852 # using a relative directory.
4853 cp "$am_depcomp" conftest.dir
4854 cd conftest.dir
4855 # We will build objects and dependencies in a subdirectory because
4856 # it helps to detect inapplicable dependency modes. For instance
4857 # both Tru64's cc and ICC support -MD to output dependencies as a
4858 # side effect of compilation, but ICC will put the dependencies in
4859 # the current directory while Tru64 will put them in the object
4860 # directory.
4861 mkdir sub
4862
4863 am_cv_CC_dependencies_compiler_type=none
4864 if test "$am_compiler_list" = ""; then
4865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4866 fi
4867 am__universal=false
4868 case " $depcc " in #(
4869 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4870 esac
4871
4872 for depmode in $am_compiler_list; do
4873 # Setup a source with many dependencies, because some compilers
4874 # like to wrap large dependency lists on column 80 (with \), and
4875 # we should not choose a depcomp mode which is confused by this.
4876 #
4877 # We need to recreate these files for each test, as the compiler may
4878 # overwrite some of them when testing with obscure command lines.
4879 # This happens at least with the AIX C compiler.
4880 : > sub/conftest.c
4881 for i in 1 2 3 4 5 6; do
4882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4883 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4884 # Solaris 8's {/usr,}/bin/sh.
4885 touch sub/conftst$i.h
4886 done
4887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4888
4889 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4890 # mode. It turns out that the SunPro C++ compiler does not properly
4891 # handle `-M -o', and we need to detect this. Also, some Intel
4892 # versions had trouble with output in subdirs
4893 am__obj=sub/conftest.${OBJEXT-o}
4894 am__minus_obj="-o $am__obj"
4895 case $depmode in
4896 gcc)
4897 # This depmode causes a compiler race in universal mode.
4898 test "$am__universal" = false || continue
4899 ;;
4900 nosideeffect)
4901 # after this tag, mechanisms are not by side-effect, so they'll
4902 # only be used when explicitly requested
4903 if test "x$enable_dependency_tracking" = xyes; then
4904 continue
4905 else
4906 break
4907 fi
4908 ;;
4909 msvisualcpp | msvcmsys)
4910 # This compiler won't grok `-c -o', but also, the minuso test has
4911 # not run yet. These depmodes are late enough in the game, and
4912 # so weak that their functioning should not be impacted.
4913 am__obj=conftest.${OBJEXT-o}
4914 am__minus_obj=
4915 ;;
4916 none) break ;;
4917 esac
4918 if depmode=$depmode \
4919 source=sub/conftest.c object=$am__obj \
4920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4922 >/dev/null 2>conftest.err &&
4923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4927 # icc doesn't choke on unknown options, it will just issue warnings
4928 # or remarks (even with -Werror). So we grep stderr for any message
4929 # that says an option was ignored or not supported.
4930 # When given -MP, icc 7.0 and 7.1 complain thusly:
4931 # icc: Command line warning: ignoring option '-M'; no argument required
4932 # The diagnosis changed in icc 8.0:
4933 # icc: Command line remark: option '-MP' not supported
4934 if (grep 'ignoring option' conftest.err ||
4935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4936 am_cv_CC_dependencies_compiler_type=$depmode
4937 break
4938 fi
4939 fi
4940 done
4941
4942 cd ..
4943 rm -rf conftest.dir
4944 else
4945 am_cv_CC_dependencies_compiler_type=none
4946 fi
4947
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4950 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4951 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4952
4953 if
4954 test "x$enable_dependency_tracking" != xno \
4955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4956 am__fastdepCC_TRUE=
4957 am__fastdepCC_FALSE='#'
4958 else
4959 am__fastdepCC_TRUE='#'
4960 am__fastdepCC_FALSE=
4961 fi
4962
4963
4964 if test "x$CC" != xcc; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4966 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4969 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4970 fi
4971 set dummy $CC; ac_cc=`$as_echo "$2" |
4972 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4973 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978
4979 int
4980 main ()
4981 {
4982
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 # Make sure it works both with $CC and with simple cc.
4988 # We do the test twice because some compilers refuse to overwrite an
4989 # existing .o file with -o, though they will create one.
4990 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4991 rm -f conftest2.*
4992 if { { case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995 esac
4996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4997 $as_echo "$ac_try_echo"; } >&5
4998 (eval "$ac_try") 2>&5
4999 ac_status=$?
5000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; } &&
5002 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5007 $as_echo "$ac_try_echo"; } >&5
5008 (eval "$ac_try") 2>&5
5009 ac_status=$?
5010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5011 test $ac_status = 0; };
5012 then
5013 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5014 if test "x$CC" != xcc; then
5015 # Test first that cc exists at all.
5016 if { ac_try='cc -c conftest.$ac_ext >&5'
5017 { { case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5020 esac
5021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5022 $as_echo "$ac_try_echo"; } >&5
5023 (eval "$ac_try") 2>&5
5024 ac_status=$?
5025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5026 test $ac_status = 0; }; }; then
5027 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5028 rm -f conftest2.*
5029 if { { case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032 esac
5033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5034 $as_echo "$ac_try_echo"; } >&5
5035 (eval "$ac_try") 2>&5
5036 ac_status=$?
5037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5038 test $ac_status = 0; } &&
5039 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044 $as_echo "$ac_try_echo"; } >&5
5045 (eval "$ac_try") 2>&5
5046 ac_status=$?
5047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; };
5049 then
5050 # cc works too.
5051 :
5052 else
5053 # cc exists but doesn't like -o.
5054 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5055 fi
5056 fi
5057 fi
5058 else
5059 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5060 fi
5061 rm -f core conftest*
5062
5063 fi
5064 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5066 $as_echo "yes" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5070
5071 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5072
5073 fi
5074
5075 # FIXME: we rely on the cache variable name because
5076 # there is no other way.
5077 set dummy $CC
5078 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5079 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5080 if test "$am_t" != yes; then
5081 # Losing compiler, so override with the script.
5082 # FIXME: It is wrong to rewrite CC.
5083 # But if we don't then we get into trouble of one sort or another.
5084 # A longer-term fix would be to have automake use am__CC in this case,
5085 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5086 CC="$am_aux_dir/compile $CC"
5087 fi
5088
5089
5090
5091 # Initialize gnulib right after verifying that the C compiler works.
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_RANLIB+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -n "$RANLIB"; then
5101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 RANLIB=$ac_cv_prog_RANLIB
5121 if test -n "$RANLIB"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5123 $as_echo "$RANLIB" >&6; }
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 fi
5131 if test -z "$ac_cv_prog_RANLIB"; then
5132 ac_ct_RANLIB=$RANLIB
5133 # Extract the first word of "ranlib", so it can be a program name with args.
5134 set dummy ranlib; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$ac_ct_RANLIB"; then
5141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_prog_ac_ct_RANLIB="ranlib"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5161 if test -n "$ac_ct_RANLIB"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5163 $as_echo "$ac_ct_RANLIB" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169 if test "x$ac_ct_RANLIB" = x; then
5170 RANLIB=":"
5171 else
5172 case $cross_compiling:$ac_tool_warned in
5173 yes:)
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5177 esac
5178 RANLIB=$ac_ct_RANLIB
5179 fi
5180 else
5181 RANLIB="$ac_cv_prog_RANLIB"
5182 fi
5183
5184
5185
5186 # Code from module dummy:
5187
5188
5189 # On Suns, sometimes $CPP names a directory.
5190 if test -n "$CPP" && test -d "$CPP"; then
5191 CPP=
5192 fi
5193
5194 ## If not using gcc, and on Solaris, and no CPP specified, see if
5195 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5196 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5197 test x"$CPP" = x; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5199 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5200
5201 if ${emacs_cv_sunpro_c+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206
5207 int
5208 main ()
5209 {
5210 #ifndef __SUNPRO_C
5211 fail;
5212 #endif
5213
5214 ;
5215 return 0;
5216 }
5217 _ACEOF
5218 if ac_fn_c_try_link "$LINENO"; then :
5219 emacs_cv_sunpro_c=yes
5220 else
5221 emacs_cv_sunpro_c=no
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext \
5224 conftest$ac_exeext conftest.$ac_ext
5225 fi
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5228 $as_echo "$emacs_cv_sunpro_c" >&6; }
5229
5230 if test x"$emacs_cv_sunpro_c" = xyes; then
5231 NON_GNU_CPP="$CC -E -Xs"
5232 fi
5233 fi
5234
5235 #### Some systems specify a CPP to use unless we are using GCC.
5236 #### Now that we know whether we are using GCC, we can decide whether
5237 #### to use that one.
5238 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5239 then
5240 CPP="$NON_GNU_CPP"
5241 fi
5242
5243 #### Some systems specify a CC to use unless we are using GCC.
5244 #### Now that we know whether we are using GCC, we can decide whether
5245 #### to use that one.
5246 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5247 test x$cc_specified != xyes
5248 then
5249 CC="$NON_GNU_CC"
5250 fi
5251
5252 if test x$GCC = xyes; then
5253 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5254 else
5255 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5256 fi
5257
5258 ac_ext=c
5259 ac_cpp='$CPP $CPPFLAGS'
5260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5264 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5265 # On Suns, sometimes $CPP names a directory.
5266 if test -n "$CPP" && test -d "$CPP"; then
5267 CPP=
5268 fi
5269 if test -z "$CPP"; then
5270 if ${ac_cv_prog_CPP+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 # Double quotes because CPP needs to be expanded
5274 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5275 do
5276 ac_preproc_ok=false
5277 for ac_c_preproc_warn_flag in '' yes
5278 do
5279 # Use a header file that comes with gcc, so configuring glibc
5280 # with a fresh cross-compiler works.
5281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5282 # <limits.h> exists even on freestanding compilers.
5283 # On the NeXT, cc -E runs the code through the compiler's parser,
5284 # not just through cpp. "Syntax error" is here to catch this case.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #ifdef __STDC__
5288 # include <limits.h>
5289 #else
5290 # include <assert.h>
5291 #endif
5292 Syntax error
5293 _ACEOF
5294 if ac_fn_c_try_cpp "$LINENO"; then :
5295
5296 else
5297 # Broken: fails on valid input.
5298 continue
5299 fi
5300 rm -f conftest.err conftest.i conftest.$ac_ext
5301
5302 # OK, works on sane cases. Now check whether nonexistent headers
5303 # can be detected and how.
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <ac_nonexistent.h>
5307 _ACEOF
5308 if ac_fn_c_try_cpp "$LINENO"; then :
5309 # Broken: success on invalid input.
5310 continue
5311 else
5312 # Passes both tests.
5313 ac_preproc_ok=:
5314 break
5315 fi
5316 rm -f conftest.err conftest.i conftest.$ac_ext
5317
5318 done
5319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5320 rm -f conftest.i conftest.err conftest.$ac_ext
5321 if $ac_preproc_ok; then :
5322 break
5323 fi
5324
5325 done
5326 ac_cv_prog_CPP=$CPP
5327
5328 fi
5329 CPP=$ac_cv_prog_CPP
5330 else
5331 ac_cv_prog_CPP=$CPP
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5334 $as_echo "$CPP" >&6; }
5335 ac_preproc_ok=false
5336 for ac_c_preproc_warn_flag in '' yes
5337 do
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 # <limits.h> exists even on freestanding compilers.
5342 # On the NeXT, cc -E runs the code through the compiler's parser,
5343 # not just through cpp. "Syntax error" is here to catch this case.
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #ifdef __STDC__
5347 # include <limits.h>
5348 #else
5349 # include <assert.h>
5350 #endif
5351 Syntax error
5352 _ACEOF
5353 if ac_fn_c_try_cpp "$LINENO"; then :
5354
5355 else
5356 # Broken: fails on valid input.
5357 continue
5358 fi
5359 rm -f conftest.err conftest.i conftest.$ac_ext
5360
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 #include <ac_nonexistent.h>
5366 _ACEOF
5367 if ac_fn_c_try_cpp "$LINENO"; then :
5368 # Broken: success on invalid input.
5369 continue
5370 else
5371 # Passes both tests.
5372 ac_preproc_ok=:
5373 break
5374 fi
5375 rm -f conftest.err conftest.i conftest.$ac_ext
5376
5377 done
5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5379 rm -f conftest.i conftest.err conftest.$ac_ext
5380 if $ac_preproc_ok; then :
5381
5382 else
5383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5385 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5386 See \`config.log' for more details" "$LINENO" 5; }
5387 fi
5388
5389 ac_ext=c
5390 ac_cpp='$CPP $CPPFLAGS'
5391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5398 if ${ac_cv_path_GREP+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -z "$GREP"; then
5402 ac_path_GREP_found=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5406 do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_prog in grep ggrep; do
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5412 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5413 # Check for GNU ac_path_GREP and select it if it is found.
5414 # Check for GNU $ac_path_GREP
5415 case `"$ac_path_GREP" --version 2>&1` in
5416 *GNU*)
5417 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5418 *)
5419 ac_count=0
5420 $as_echo_n 0123456789 >"conftest.in"
5421 while :
5422 do
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'GREP' >> "conftest.nl"
5427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5429 as_fn_arith $ac_count + 1 && ac_count=$as_val
5430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_GREP="$ac_path_GREP"
5433 ac_path_GREP_max=$ac_count
5434 fi
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5437 done
5438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5439 esac
5440
5441 $ac_path_GREP_found && break 3
5442 done
5443 done
5444 done
5445 IFS=$as_save_IFS
5446 if test -z "$ac_cv_path_GREP"; then
5447 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5448 fi
5449 else
5450 ac_cv_path_GREP=$GREP
5451 fi
5452
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5455 $as_echo "$ac_cv_path_GREP" >&6; }
5456 GREP="$ac_cv_path_GREP"
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5460 $as_echo_n "checking for egrep... " >&6; }
5461 if ${ac_cv_path_EGREP+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5465 then ac_cv_path_EGREP="$GREP -E"
5466 else
5467 if test -z "$EGREP"; then
5468 ac_path_EGREP_found=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_prog in egrep; do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5478 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5479 # Check for GNU ac_path_EGREP and select it if it is found.
5480 # Check for GNU $ac_path_EGREP
5481 case `"$ac_path_EGREP" --version 2>&1` in
5482 *GNU*)
5483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5484 *)
5485 ac_count=0
5486 $as_echo_n 0123456789 >"conftest.in"
5487 while :
5488 do
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo 'EGREP' >> "conftest.nl"
5493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5495 as_fn_arith $ac_count + 1 && ac_count=$as_val
5496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_EGREP="$ac_path_EGREP"
5499 ac_path_EGREP_max=$ac_count
5500 fi
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5503 done
5504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5505 esac
5506
5507 $ac_path_EGREP_found && break 3
5508 done
5509 done
5510 done
5511 IFS=$as_save_IFS
5512 if test -z "$ac_cv_path_EGREP"; then
5513 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5514 fi
5515 else
5516 ac_cv_path_EGREP=$EGREP
5517 fi
5518
5519 fi
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5522 $as_echo "$ac_cv_path_EGREP" >&6; }
5523 EGREP="$ac_cv_path_EGREP"
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5527 $as_echo_n "checking for ANSI C header files... " >&6; }
5528 if ${ac_cv_header_stdc+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include <stdlib.h>
5534 #include <stdarg.h>
5535 #include <string.h>
5536 #include <float.h>
5537
5538 int
5539 main ()
5540 {
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 ac_cv_header_stdc=yes
5548 else
5549 ac_cv_header_stdc=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552
5553 if test $ac_cv_header_stdc = yes; then
5554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 #include <string.h>
5558
5559 _ACEOF
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561 $EGREP "memchr" >/dev/null 2>&1; then :
5562
5563 else
5564 ac_cv_header_stdc=no
5565 fi
5566 rm -f conftest*
5567
5568 fi
5569
5570 if test $ac_cv_header_stdc = yes; then
5571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <stdlib.h>
5575
5576 _ACEOF
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "free" >/dev/null 2>&1; then :
5579
5580 else
5581 ac_cv_header_stdc=no
5582 fi
5583 rm -f conftest*
5584
5585 fi
5586
5587 if test $ac_cv_header_stdc = yes; then
5588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589 if test "$cross_compiling" = yes; then :
5590 :
5591 else
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <ctype.h>
5595 #include <stdlib.h>
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5599 #else
5600 # define ISLOWER(c) \
5601 (('a' <= (c) && (c) <= 'i') \
5602 || ('j' <= (c) && (c) <= 'r') \
5603 || ('s' <= (c) && (c) <= 'z'))
5604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5605 #endif
5606
5607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5608 int
5609 main ()
5610 {
5611 int i;
5612 for (i = 0; i < 256; i++)
5613 if (XOR (islower (i), ISLOWER (i))
5614 || toupper (i) != TOUPPER (i))
5615 return 2;
5616 return 0;
5617 }
5618 _ACEOF
5619 if ac_fn_c_try_run "$LINENO"; then :
5620
5621 else
5622 ac_cv_header_stdc=no
5623 fi
5624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5625 conftest.$ac_objext conftest.beam conftest.$ac_ext
5626 fi
5627
5628 fi
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5631 $as_echo "$ac_cv_header_stdc" >&6; }
5632 if test $ac_cv_header_stdc = yes; then
5633
5634 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5635
5636 fi
5637
5638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5639 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5640 inttypes.h stdint.h unistd.h
5641 do :
5642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5644 "
5645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5646 cat >>confdefs.h <<_ACEOF
5647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5648 _ACEOF
5649
5650 fi
5651
5652 done
5653
5654
5655
5656 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5657 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5658 MINIX=yes
5659 else
5660 MINIX=
5661 fi
5662
5663
5664 if test "$MINIX" = yes; then
5665
5666 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5667
5668
5669 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5670
5671
5672 $as_echo "#define _MINIX 1" >>confdefs.h
5673
5674 fi
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5678 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5679 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684
5685 # define __EXTENSIONS__ 1
5686 $ac_includes_default
5687 int
5688 main ()
5689 {
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_safe_to_define___extensions__=yes
5697 else
5698 ac_cv_safe_to_define___extensions__=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5703 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5704 test $ac_cv_safe_to_define___extensions__ = yes &&
5705 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5706
5707 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5708
5709 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5710
5711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5712
5713 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5714
5715
5716
5717 ### Use -Wno-pointer-sign if the compiler supports it
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5719 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5720 SAVE_CFLAGS="$CFLAGS"
5721 CFLAGS="$CFLAGS -Wno-pointer-sign"
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724
5725 int
5726 main ()
5727 {
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 has_option=yes
5735 else
5736 has_option=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 if test $has_option = yes; then
5740 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5743 $as_echo "$has_option" >&6; }
5744 CFLAGS="$SAVE_CFLAGS"
5745 unset has_option
5746 unset SAVE_CFLAGS
5747
5748 ### Use -Wdeclaration-after-statement if the compiler supports it
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5750 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5751 SAVE_CFLAGS="$CFLAGS"
5752 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755
5756 int
5757 main ()
5758 {
5759
5760 ;
5761 return 0;
5762 }
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 has_option=yes
5766 else
5767 has_option=no
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 if test $has_option = yes; then
5771 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5774 $as_echo "$has_option" >&6; }
5775 CFLAGS="$SAVE_CFLAGS"
5776 unset has_option
5777 unset SAVE_CFLAGS
5778
5779 ### Use -Wold-style-definition if the compiler supports it
5780 # This can be removed when conversion to standard C is finished.
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5782 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5783 SAVE_CFLAGS="$CFLAGS"
5784 CFLAGS="$CFLAGS -Wold-style-definition"
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787
5788 int
5789 main ()
5790 {
5791
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 if ac_fn_c_try_compile "$LINENO"; then :
5797 has_option=yes
5798 else
5799 has_option=no
5800 fi
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802 if test $has_option = yes; then
5803 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5806 $as_echo "$has_option" >&6; }
5807 CFLAGS="$SAVE_CFLAGS"
5808 unset has_option
5809 unset SAVE_CFLAGS
5810
5811 ### Use -Wimplicit-function-declaration if the compiler supports it
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5813 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5814 SAVE_CFLAGS="$CFLAGS"
5815 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818
5819 int
5820 main ()
5821 {
5822
5823 ;
5824 return 0;
5825 }
5826 _ACEOF
5827 if ac_fn_c_try_compile "$LINENO"; then :
5828 has_option=yes
5829 else
5830 has_option=no
5831 fi
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 if test $has_option = yes; then
5834 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5837 $as_echo "$has_option" >&6; }
5838 CFLAGS="$SAVE_CFLAGS"
5839 unset has_option
5840 unset SAVE_CFLAGS
5841
5842
5843
5844
5845 #### Some other nice autoconf tests.
5846
5847 ac_ext=c
5848 ac_cpp='$CPP $CPPFLAGS'
5849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5853 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5854 # On Suns, sometimes $CPP names a directory.
5855 if test -n "$CPP" && test -d "$CPP"; then
5856 CPP=
5857 fi
5858 if test -z "$CPP"; then
5859 if ${ac_cv_prog_CPP+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 # Double quotes because CPP needs to be expanded
5863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5864 do
5865 ac_preproc_ok=false
5866 for ac_c_preproc_warn_flag in '' yes
5867 do
5868 # Use a header file that comes with gcc, so configuring glibc
5869 # with a fresh cross-compiler works.
5870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5871 # <limits.h> exists even on freestanding compilers.
5872 # On the NeXT, cc -E runs the code through the compiler's parser,
5873 # not just through cpp. "Syntax error" is here to catch this case.
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #ifdef __STDC__
5877 # include <limits.h>
5878 #else
5879 # include <assert.h>
5880 #endif
5881 Syntax error
5882 _ACEOF
5883 if ac_fn_c_try_cpp "$LINENO"; then :
5884
5885 else
5886 # Broken: fails on valid input.
5887 continue
5888 fi
5889 rm -f conftest.err conftest.i conftest.$ac_ext
5890
5891 # OK, works on sane cases. Now check whether nonexistent headers
5892 # can be detected and how.
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #include <ac_nonexistent.h>
5896 _ACEOF
5897 if ac_fn_c_try_cpp "$LINENO"; then :
5898 # Broken: success on invalid input.
5899 continue
5900 else
5901 # Passes both tests.
5902 ac_preproc_ok=:
5903 break
5904 fi
5905 rm -f conftest.err conftest.i conftest.$ac_ext
5906
5907 done
5908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5909 rm -f conftest.i conftest.err conftest.$ac_ext
5910 if $ac_preproc_ok; then :
5911 break
5912 fi
5913
5914 done
5915 ac_cv_prog_CPP=$CPP
5916
5917 fi
5918 CPP=$ac_cv_prog_CPP
5919 else
5920 ac_cv_prog_CPP=$CPP
5921 fi
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5923 $as_echo "$CPP" >&6; }
5924 ac_preproc_ok=false
5925 for ac_c_preproc_warn_flag in '' yes
5926 do
5927 # Use a header file that comes with gcc, so configuring glibc
5928 # with a fresh cross-compiler works.
5929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930 # <limits.h> exists even on freestanding compilers.
5931 # On the NeXT, cc -E runs the code through the compiler's parser,
5932 # not just through cpp. "Syntax error" is here to catch this case.
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #ifdef __STDC__
5936 # include <limits.h>
5937 #else
5938 # include <assert.h>
5939 #endif
5940 Syntax error
5941 _ACEOF
5942 if ac_fn_c_try_cpp "$LINENO"; then :
5943
5944 else
5945 # Broken: fails on valid input.
5946 continue
5947 fi
5948 rm -f conftest.err conftest.i conftest.$ac_ext
5949
5950 # OK, works on sane cases. Now check whether nonexistent headers
5951 # can be detected and how.
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 #include <ac_nonexistent.h>
5955 _ACEOF
5956 if ac_fn_c_try_cpp "$LINENO"; then :
5957 # Broken: success on invalid input.
5958 continue
5959 else
5960 # Passes both tests.
5961 ac_preproc_ok=:
5962 break
5963 fi
5964 rm -f conftest.err conftest.i conftest.$ac_ext
5965
5966 done
5967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5968 rm -f conftest.i conftest.err conftest.$ac_ext
5969 if $ac_preproc_ok; then :
5970
5971 else
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5975 See \`config.log' for more details" "$LINENO" 5; }
5976 fi
5977
5978 ac_ext=c
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
5984
5985 if test "x$RANLIB" = x; then
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_RANLIB+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$RANLIB"; then
5995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 RANLIB=$ac_cv_prog_RANLIB
6015 if test -n "$RANLIB"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6017 $as_echo "$RANLIB" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022
6023
6024 fi
6025 if test -z "$ac_cv_prog_RANLIB"; then
6026 ac_ct_RANLIB=$RANLIB
6027 # Extract the first word of "ranlib", so it can be a program name with args.
6028 set dummy ranlib; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 if test -n "$ac_ct_RANLIB"; then
6035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_ac_ct_RANLIB="ranlib"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048 done
6049 done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6055 if test -n "$ac_ct_RANLIB"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6057 $as_echo "$ac_ct_RANLIB" >&6; }
6058 else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6061 fi
6062
6063 if test "x$ac_ct_RANLIB" = x; then
6064 RANLIB=":"
6065 else
6066 case $cross_compiling:$ac_tool_warned in
6067 yes:)
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned=yes ;;
6071 esac
6072 RANLIB=$ac_ct_RANLIB
6073 fi
6074 else
6075 RANLIB="$ac_cv_prog_RANLIB"
6076 fi
6077
6078 fi
6079
6080 ## Although we're running on an amd64 kernel, we're actually compiling for
6081 ## the x86 architecture. The user should probably have provided an
6082 ## explicit --build to `configure', but if everything else than the kernel
6083 ## is running in i386 mode, we can help them out.
6084 if test "$machine" = "amdx86-64"; then
6085 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6086 if test "x$ac_cv_have_decl_i386" = xyes; then :
6087
6088 fi
6089
6090 if test "$ac_cv_have_decl_i386" = "yes"; then
6091 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6092 machine=intel386
6093 machfile="m/${machine}.h"
6094 fi
6095 fi
6096
6097 # Extract the first word of "install-info", so it can be a program name with args.
6098 set dummy install-info; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 case $INSTALL_INFO in
6105 [\\/]* | ?:[\\/]*)
6106 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6107 ;;
6108 *)
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 ;;
6125 esac
6126 fi
6127 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6128 if test -n "$INSTALL_INFO"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6130 $as_echo "$INSTALL_INFO" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6134 fi
6135
6136
6137 # Extract the first word of "install-info", so it can be a program name with args.
6138 set dummy install-info; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 case $INSTALL_INFO in
6145 [\\/]* | ?:[\\/]*)
6146 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6147 ;;
6148 *)
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in /usr/sbin
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 ;;
6165 esac
6166 fi
6167 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6168 if test -n "$INSTALL_INFO"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6170 $as_echo "$INSTALL_INFO" >&6; }
6171 else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6174 fi
6175
6176
6177 # Extract the first word of "install-info", so it can be a program name with args.
6178 set dummy install-info; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 case $INSTALL_INFO in
6185 [\\/]* | ?:[\\/]*)
6186 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6187 ;;
6188 *)
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in /sbin
6191 do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6205 ;;
6206 esac
6207 fi
6208 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6209 if test -n "$INSTALL_INFO"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6211 $as_echo "$INSTALL_INFO" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 # Extract the first word of "gzip", so it can be a program name with args.
6219 set dummy gzip; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if ${ac_cv_path_GZIP_PROG+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 case $GZIP_PROG in
6226 [\\/]* | ?:[\\/]*)
6227 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6228 ;;
6229 *)
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241 done
6242 done
6243 IFS=$as_save_IFS
6244
6245 ;;
6246 esac
6247 fi
6248 GZIP_PROG=$ac_cv_path_GZIP_PROG
6249 if test -n "$GZIP_PROG"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6251 $as_echo "$GZIP_PROG" >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257
6258
6259
6260 ## Need makeinfo >= 4.6 (?) to build the manuals.
6261 # Extract the first word of "makeinfo", so it can be a program name with args.
6262 set dummy makeinfo; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_path_MAKEINFO+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 case $MAKEINFO in
6269 [\\/]* | ?:[\\/]*)
6270 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6271 ;;
6272 *)
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6289 ;;
6290 esac
6291 fi
6292 MAKEINFO=$ac_cv_path_MAKEINFO
6293 if test -n "$MAKEINFO"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6295 $as_echo "$MAKEINFO" >&6; }
6296 else
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299 fi
6300
6301
6302 if test "$MAKEINFO" != "no" && \
6303 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
6304 MAKEINFO=no
6305 fi
6306
6307 ## Makeinfo is unusual. For a released Emacs, the manuals are
6308 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6309 ## therefore in the category of "special tools" not normally required, which
6310 ## configure does not have to check for (eg autoconf itself).
6311 ## In a Bazaar checkout on the other hand, the manuals are not included.
6312 ## So makeinfo is a requirement to build from Bazaar, and configure
6313 ## should test for it as it does for any other build requirement.
6314 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6315 ## with pre-built manuals, from a Bazaar checkout.
6316 HAVE_MAKEINFO=yes
6317
6318 if test "$MAKEINFO" = "no"; then
6319 MAKEINFO=makeinfo
6320 if test "x${with_makeinfo}" = "xno"; then
6321 HAVE_MAKEINFO=no
6322 elif test ! -e $srcdir/info/emacs; then
6323 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6324 source tree does not seem to have pre-built manuals in the \`info' directory.
6325 Either install a suitable version of makeinfo, or re-run configure
6326 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6327 fi
6328 fi
6329
6330
6331
6332 if test x$GCC = xyes; then
6333 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6334 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6335 else
6336 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6337 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6338 fi
6339
6340
6341 late_LDFLAGS=$LDFLAGS
6342 if test x$GCC = xyes; then
6343 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6344 else
6345 LDFLAGS="$LDFLAGS -znocombreloc"
6346 fi
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6349 $as_echo_n "checking for -znocombreloc... " >&6; }
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352
6353 int
6354 main ()
6355 {
6356
6357 ;
6358 return 0;
6359 }
6360 _ACEOF
6361 if ac_fn_c_try_link "$LINENO"; then :
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6363 $as_echo "yes" >&6; }
6364 else
6365 LDFLAGS=$late_LDFLAGS
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext \
6370 conftest$ac_exeext conftest.$ac_ext
6371
6372
6373 # The value of CPP is a quoted variable reference, so we need to do this
6374 # to get its actual value...
6375 CPP=`eval "echo $CPP"`
6376
6377
6378 CANNOT_DUMP=no
6379 case "$opsys" in
6380 your-opsys-here)
6381 CANNOT_DUMP=yes
6382
6383 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6384
6385 ;;
6386 esac
6387
6388
6389
6390 UNEXEC_OBJ=unexelf.o
6391 case "$opsys" in
6392 # MSDOS uses unexcoff.o
6393 # MSWindows uses unexw32.o
6394 aix4-2)
6395 UNEXEC_OBJ=unexaix.o
6396 ;;
6397 cygwin)
6398 UNEXEC_OBJ=unexcw.o
6399 ;;
6400 darwin)
6401 UNEXEC_OBJ=unexmacosx.o
6402 ;;
6403 hpux10-20 | hpux11)
6404 UNEXEC_OBJ=unexhp9k800.o
6405 ;;
6406 sol2-10)
6407 # Use the Solaris dldump() function, called from unexsol.c, to dump
6408 # emacs, instead of the generic ELF dump code found in unexelf.c.
6409 # The resulting binary has a complete symbol table, and is better
6410 # for debugging and other observability tools (debuggers, pstack, etc).
6411 #
6412 # If you encounter a problem using dldump(), please consider sending
6413 # a message to the OpenSolaris tools-linking mailing list:
6414 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6415 #
6416 # It is likely that dldump() works with older Solaris too, but this has
6417 # not been tested, so for now this change is for Solaris 10 or newer.
6418 UNEXEC_OBJ=unexsol.o
6419 ;;
6420 esac
6421
6422 LD_SWITCH_SYSTEM=
6423 case "$opsys" in
6424 freebsd)
6425 ## Let `ld' find image libs and similar things in /usr/local/lib.
6426 ## The system compiler, GCC, has apparently been modified to not
6427 ## look there, contrary to what a stock GCC would do.
6428 LD_SWITCH_SYSTEM=-L/usr/local/lib
6429 ;;
6430
6431 gnu-linux)
6432 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6433 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6434 ;;
6435
6436 netbsd)
6437 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6438 ;;
6439
6440 openbsd)
6441 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6442 ## otherwise Emacs dumps core on elf systems.
6443 LD_SWITCH_SYSTEM="-Z"
6444 ;;
6445 esac
6446
6447
6448 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6449
6450 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6451 ## which has not been defined yet. When this was handled with cpp,
6452 ## it was expanded to null when configure sourced the s/*.h file.
6453 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6454 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6455 ## (or somesuch), but because it is supposed to go at the _front_
6456 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6457 ## Compare with the gnu-linux case below, which added to the end
6458 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6459 ## LD_SWITCH_SYSTEM_TEMACS.
6460 case "$opsys" in
6461 netbsd|openbsd)
6462 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6463 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6464 esac
6465
6466
6467 C_SWITCH_MACHINE=
6468 if test "$machine" = "alpha"; then
6469 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6470 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6471
6472 fi
6473
6474 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6475 ## With ELF, make sure that all common symbols get allocated to in the
6476 ## data section. Otherwise, the dump of temacs may miss variables in
6477 ## the shared library that have been initialized. For example, with
6478 ## GNU libc, __malloc_initialized would normally be resolved to the
6479 ## shared library's .bss section, which is fatal.
6480 if test "x$GCC" = "xyes"; then
6481 C_SWITCH_MACHINE="-fno-common"
6482 else
6483 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6484 fi
6485 else
6486 UNEXEC_OBJ=unexalpha.o
6487 fi
6488 fi
6489
6490
6491
6492
6493 C_SWITCH_SYSTEM=
6494 ## Some programs in src produce warnings saying certain subprograms
6495 ## are too complex and need a MAXMEM value greater than 2000 for
6496 ## additional optimization. --nils@exp-math.uni-essen.de
6497 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6498 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6499 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6500 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6501
6502
6503
6504 LIBS_SYSTEM=
6505 case "$opsys" in
6506 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6507 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6508
6509 freebsd) LIBS_SYSTEM="-lutil" ;;
6510
6511 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6512
6513 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6514
6515 ## Motif needs -lgen.
6516 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6517 esac
6518
6519
6520
6521 ### Make sure subsequent tests use flags consistent with the build flags.
6522
6523 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6524 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6525 else
6526 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6527 fi
6528
6529
6530
6531 # Check whether --enable-largefile was given.
6532 if test "${enable_largefile+set}" = set; then :
6533 enableval=$enable_largefile;
6534 fi
6535
6536 if test "$enable_largefile" != no; then
6537
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6539 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6540 if ${ac_cv_sys_largefile_CC+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 ac_cv_sys_largefile_CC=no
6544 if test "$GCC" != yes; then
6545 ac_save_CC=$CC
6546 while :; do
6547 # IRIX 6.2 and later do not support large files by default,
6548 # so use the C compiler's -n32 option if that helps.
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #include <sys/types.h>
6552 /* Check that off_t can represent 2**63 - 1 correctly.
6553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6554 since some C++ compilers masquerading as C compilers
6555 incorrectly reject 9223372036854775807. */
6556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6558 && LARGE_OFF_T % 2147483647 == 1)
6559 ? 1 : -1];
6560 int
6561 main ()
6562 {
6563
6564 ;
6565 return 0;
6566 }
6567 _ACEOF
6568 if ac_fn_c_try_compile "$LINENO"; then :
6569 break
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext
6572 CC="$CC -n32"
6573 if ac_fn_c_try_compile "$LINENO"; then :
6574 ac_cv_sys_largefile_CC=' -n32'; break
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext
6577 break
6578 done
6579 CC=$ac_save_CC
6580 rm -f conftest.$ac_ext
6581 fi
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6584 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6585 if test "$ac_cv_sys_largefile_CC" != no; then
6586 CC=$CC$ac_cv_sys_largefile_CC
6587 fi
6588
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6590 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6591 if ${ac_cv_sys_file_offset_bits+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 while :; do
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #include <sys/types.h>
6598 /* Check that off_t can represent 2**63 - 1 correctly.
6599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6600 since some C++ compilers masquerading as C compilers
6601 incorrectly reject 9223372036854775807. */
6602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6604 && LARGE_OFF_T % 2147483647 == 1)
6605 ? 1 : -1];
6606 int
6607 main ()
6608 {
6609
6610 ;
6611 return 0;
6612 }
6613 _ACEOF
6614 if ac_fn_c_try_compile "$LINENO"; then :
6615 ac_cv_sys_file_offset_bits=no; break
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #define _FILE_OFFSET_BITS 64
6621 #include <sys/types.h>
6622 /* Check that off_t can represent 2**63 - 1 correctly.
6623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6624 since some C++ compilers masquerading as C compilers
6625 incorrectly reject 9223372036854775807. */
6626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6628 && LARGE_OFF_T % 2147483647 == 1)
6629 ? 1 : -1];
6630 int
6631 main ()
6632 {
6633
6634 ;
6635 return 0;
6636 }
6637 _ACEOF
6638 if ac_fn_c_try_compile "$LINENO"; then :
6639 ac_cv_sys_file_offset_bits=64; break
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 ac_cv_sys_file_offset_bits=unknown
6643 break
6644 done
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6647 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6648 case $ac_cv_sys_file_offset_bits in #(
6649 no | unknown) ;;
6650 *)
6651 cat >>confdefs.h <<_ACEOF
6652 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6653 _ACEOF
6654 ;;
6655 esac
6656 rm -rf conftest*
6657 if test $ac_cv_sys_file_offset_bits = unknown; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6659 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6660 if ${ac_cv_sys_large_files+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 while :; do
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #include <sys/types.h>
6667 /* Check that off_t can represent 2**63 - 1 correctly.
6668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6669 since some C++ compilers masquerading as C compilers
6670 incorrectly reject 9223372036854775807. */
6671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6673 && LARGE_OFF_T % 2147483647 == 1)
6674 ? 1 : -1];
6675 int
6676 main ()
6677 {
6678
6679 ;
6680 return 0;
6681 }
6682 _ACEOF
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684 ac_cv_sys_large_files=no; break
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #define _LARGE_FILES 1
6690 #include <sys/types.h>
6691 /* Check that off_t can represent 2**63 - 1 correctly.
6692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6693 since some C++ compilers masquerading as C compilers
6694 incorrectly reject 9223372036854775807. */
6695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6697 && LARGE_OFF_T % 2147483647 == 1)
6698 ? 1 : -1];
6699 int
6700 main ()
6701 {
6702
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_sys_large_files=1; break
6709 fi
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 ac_cv_sys_large_files=unknown
6712 break
6713 done
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6716 $as_echo "$ac_cv_sys_large_files" >&6; }
6717 case $ac_cv_sys_large_files in #(
6718 no | unknown) ;;
6719 *)
6720 cat >>confdefs.h <<_ACEOF
6721 #define _LARGE_FILES $ac_cv_sys_large_files
6722 _ACEOF
6723 ;;
6724 esac
6725 rm -rf conftest*
6726 fi
6727 fi
6728
6729
6730
6731 ## If user specified a crt-dir, use that unconditionally.
6732 if test "X$CRT_DIR" = "X"; then
6733
6734 case "$canonical" in
6735 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6736 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6737 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6738 ## For anything else (eg /usr/lib32), it is up the user to specify
6739 ## the location (bug#5655).
6740 ## Test for crtn.o, not just the directory, because sometimes the
6741 ## directory exists but does not have the relevant files (bug#1287).
6742 ## FIXME better to test for binary compatibility somehow.
6743 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6744 ;;
6745
6746 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6747 esac
6748
6749 case "$opsys" in
6750 hpux10-20) CRT_DIR=/lib ;;
6751 esac
6752
6753 ## Default is /usr/lib.
6754 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6755
6756 else
6757
6758 ## Some platforms don't use any of these files, so it is not
6759 ## appropriate to put this test outside the if block.
6760 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6761 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
6762
6763 fi
6764
6765
6766
6767 LIB_MATH=-lm
6768 LIB_STANDARD=
6769 START_FILES=
6770
6771 case $opsys in
6772 cygwin )
6773 LIB_MATH=
6774 START_FILES='pre-crt0.o'
6775 ;;
6776 darwin )
6777 ## Adding -lm confuses the dynamic linker, so omit it.
6778 LIB_MATH=
6779 START_FILES='pre-crt0.o'
6780 ;;
6781 freebsd )
6782 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6783 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6784 ;;
6785 gnu-linux | gnu-kfreebsd )
6786 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6787 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6788 ;;
6789 hpux10-20 | hpux11 )
6790 LIB_STANDARD=-lc
6791 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6792 ;;
6793 netbsd | openbsd )
6794 if test -f $CRT_DIR/crti.o; then
6795 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6796 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6797 else
6798 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6799 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6800 fi
6801 ;;
6802 esac
6803
6804
6805
6806
6807
6808
6809
6810 if test "${with_sound}" != "no"; then
6811 # Sound support for GNU/Linux and the free BSDs.
6812 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6813 do :
6814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6815 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6817 cat >>confdefs.h <<_ACEOF
6818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6819 _ACEOF
6820 have_sound_header=yes
6821 fi
6822
6823 done
6824
6825 # Emulation library used on NetBSD.
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6827 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6828 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 ac_check_lib_save_LIBS=$LIBS
6832 LIBS="-lossaudio $LIBS"
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835
6836 /* Override any GCC internal prototype to avoid an error.
6837 Use char because int might match the return type of a GCC
6838 builtin and then its argument prototype would still apply. */
6839 #ifdef __cplusplus
6840 extern "C"
6841 #endif
6842 char _oss_ioctl ();
6843 int
6844 main ()
6845 {
6846 return _oss_ioctl ();
6847 ;
6848 return 0;
6849 }
6850 _ACEOF
6851 if ac_fn_c_try_link "$LINENO"; then :
6852 ac_cv_lib_ossaudio__oss_ioctl=yes
6853 else
6854 ac_cv_lib_ossaudio__oss_ioctl=no
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858 LIBS=$ac_check_lib_save_LIBS
6859 fi
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6861 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6862 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6863 LIBSOUND=-lossaudio
6864 else
6865 LIBSOUND=
6866 fi
6867
6868
6869
6870 ALSA_REQUIRED=1.0.0
6871 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6872
6873 succeeded=no
6874
6875 # Extract the first word of "pkg-config", so it can be a program name with args.
6876 set dummy pkg-config; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 case $PKG_CONFIG in
6883 [\\/]* | ?:[\\/]*)
6884 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6885 ;;
6886 *)
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6903 ;;
6904 esac
6905 fi
6906 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6907 if test -n "$PKG_CONFIG"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6909 $as_echo "$PKG_CONFIG" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915
6916
6917 if test "$PKG_CONFIG" = "no" ; then
6918 HAVE_ALSA=no
6919 else
6920 PKG_CONFIG_MIN_VERSION=0.9.0
6921 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6923 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6924
6925 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6927 $as_echo "yes" >&6; }
6928 succeeded=yes
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6931 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6932 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6934 $as_echo "$ALSA_CFLAGS" >&6; }
6935
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6937 $as_echo_n "checking ALSA_LIBS... " >&6; }
6938 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6940 $as_echo "$ALSA_LIBS" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 ALSA_CFLAGS=""
6945 ALSA_LIBS=""
6946 ## If we have a custom action on failure, don't print errors, but
6947 ## do set a variable so people can do so.
6948 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6949
6950 fi
6951
6952
6953
6954 else
6955 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6956 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6957 fi
6958 fi
6959
6960 if test $succeeded = yes; then
6961 HAVE_ALSA=yes
6962 else
6963 HAVE_ALSA=no
6964 fi
6965
6966 if test $HAVE_ALSA = yes; then
6967 SAVE_CFLAGS="$CFLAGS"
6968 SAVE_LDFLAGS="$LDFLAGS"
6969 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6970 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973 #include <asoundlib.h>
6974 int
6975 main ()
6976 {
6977 snd_lib_error_set_handler (0);
6978 ;
6979 return 0;
6980 }
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983 emacs_alsa_normal=yes
6984 else
6985 emacs_alsa_normal=no
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 if test "$emacs_alsa_normal" != yes; then
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #include <alsa/asoundlib.h>
6992 int
6993 main ()
6994 {
6995 snd_lib_error_set_handler (0);
6996 ;
6997 return 0;
6998 }
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 emacs_alsa_subdir=yes
7002 else
7003 emacs_alsa_subdir=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 if test "$emacs_alsa_subdir" != yes; then
7007 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7008 fi
7009 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7010 fi
7011
7012 CFLAGS="$SAVE_CFLAGS"
7013 LDFLAGS="$SAVE_LDFLAGS"
7014 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7015 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7016
7017 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7018
7019 fi
7020
7021 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7022 case "$opsys" in
7023 gnu-linux|freebsd|netbsd)
7024
7025 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7026
7027 ;;
7028 esac
7029 fi
7030
7031
7032 fi
7033
7034 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7035 linux/version.h sys/systeminfo.h limits.h \
7036 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7037 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7038 sys/utsname.h pwd.h utmp.h dirent.h util.h
7039 do :
7040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7043 cat >>confdefs.h <<_ACEOF
7044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7045 _ACEOF
7046
7047 fi
7048
7049 done
7050
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7053 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 #include <sys/personality.h>
7057 int
7058 main ()
7059 {
7060 personality (PER_LINUX32)
7061 ;
7062 return 0;
7063 }
7064 _ACEOF
7065 if ac_fn_c_try_compile "$LINENO"; then :
7066 emacs_cv_personality_linux32=yes
7067 else
7068 emacs_cv_personality_linux32=no
7069 fi
7070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7072 $as_echo "$emacs_cv_personality_linux32" >&6; }
7073
7074 if test $emacs_cv_personality_linux32 = yes; then
7075
7076 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7077
7078 fi
7079
7080 for ac_header in term.h
7081 do :
7082 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7083 if test "x$ac_cv_header_term_h" = xyes; then :
7084 cat >>confdefs.h <<_ACEOF
7085 #define HAVE_TERM_H 1
7086 _ACEOF
7087
7088 fi
7089
7090 done
7091
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7093 $as_echo_n "checking for ANSI C header files... " >&6; }
7094 if ${ac_cv_header_stdc+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #include <stdlib.h>
7100 #include <stdarg.h>
7101 #include <string.h>
7102 #include <float.h>
7103
7104 int
7105 main ()
7106 {
7107
7108 ;
7109 return 0;
7110 }
7111 _ACEOF
7112 if ac_fn_c_try_compile "$LINENO"; then :
7113 ac_cv_header_stdc=yes
7114 else
7115 ac_cv_header_stdc=no
7116 fi
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118
7119 if test $ac_cv_header_stdc = yes; then
7120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 #include <string.h>
7124
7125 _ACEOF
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "memchr" >/dev/null 2>&1; then :
7128
7129 else
7130 ac_cv_header_stdc=no
7131 fi
7132 rm -f conftest*
7133
7134 fi
7135
7136 if test $ac_cv_header_stdc = yes; then
7137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 #include <stdlib.h>
7141
7142 _ACEOF
7143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7144 $EGREP "free" >/dev/null 2>&1; then :
7145
7146 else
7147 ac_cv_header_stdc=no
7148 fi
7149 rm -f conftest*
7150
7151 fi
7152
7153 if test $ac_cv_header_stdc = yes; then
7154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7155 if test "$cross_compiling" = yes; then :
7156 :
7157 else
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 #include <ctype.h>
7161 #include <stdlib.h>
7162 #if ((' ' & 0x0FF) == 0x020)
7163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7165 #else
7166 # define ISLOWER(c) \
7167 (('a' <= (c) && (c) <= 'i') \
7168 || ('j' <= (c) && (c) <= 'r') \
7169 || ('s' <= (c) && (c) <= 'z'))
7170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7171 #endif
7172
7173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7174 int
7175 main ()
7176 {
7177 int i;
7178 for (i = 0; i < 256; i++)
7179 if (XOR (islower (i), ISLOWER (i))
7180 || toupper (i) != TOUPPER (i))
7181 return 2;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_run "$LINENO"; then :
7186
7187 else
7188 ac_cv_header_stdc=no
7189 fi
7190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7191 conftest.$ac_objext conftest.beam conftest.$ac_ext
7192 fi
7193
7194 fi
7195 fi
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7197 $as_echo "$ac_cv_header_stdc" >&6; }
7198 if test $ac_cv_header_stdc = yes; then
7199
7200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7201
7202 fi
7203
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7205 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7206 if ${ac_cv_header_time+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 #include <sys/types.h>
7212 #include <sys/time.h>
7213 #include <time.h>
7214
7215 int
7216 main ()
7217 {
7218 if ((struct tm *) 0)
7219 return 0;
7220 ;
7221 return 0;
7222 }
7223 _ACEOF
7224 if ac_fn_c_try_compile "$LINENO"; then :
7225 ac_cv_header_time=yes
7226 else
7227 ac_cv_header_time=no
7228 fi
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 fi
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7232 $as_echo "$ac_cv_header_time" >&6; }
7233 if test $ac_cv_header_time = yes; then
7234
7235 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7236
7237 fi
7238
7239 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7240 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7241 ac_have_decl=1
7242 else
7243 ac_have_decl=0
7244 fi
7245
7246 cat >>confdefs.h <<_ACEOF
7247 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7248 _ACEOF
7249
7250 if test $ac_cv_have_decl_sys_siglist != yes; then
7251 # For Tru64, at least:
7252 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7253 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7254 ac_have_decl=1
7255 else
7256 ac_have_decl=0
7257 fi
7258
7259 cat >>confdefs.h <<_ACEOF
7260 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7261 _ACEOF
7262
7263 if test $ac_cv_have_decl___sys_siglist = yes; then
7264
7265 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7266
7267 fi
7268 fi
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7270 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7271 if ${ac_cv_header_sys_wait_h+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <sys/types.h>
7277 #include <sys/wait.h>
7278 #ifndef WEXITSTATUS
7279 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7280 #endif
7281 #ifndef WIFEXITED
7282 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7283 #endif
7284
7285 int
7286 main ()
7287 {
7288 int s;
7289 wait (&s);
7290 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7291 ;
7292 return 0;
7293 }
7294 _ACEOF
7295 if ac_fn_c_try_compile "$LINENO"; then :
7296 ac_cv_header_sys_wait_h=yes
7297 else
7298 ac_cv_header_sys_wait_h=no
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 fi
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7303 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7304 if test $ac_cv_header_sys_wait_h = yes; then
7305
7306 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7307
7308 fi
7309
7310
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7312 $as_echo_n "checking for struct utimbuf... " >&6; }
7313 if ${emacs_cv_struct_utimbuf+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 #ifdef TIME_WITH_SYS_TIME
7319 #include <sys/time.h>
7320 #include <time.h>
7321 #else
7322 #ifdef HAVE_SYS_TIME_H
7323 #include <sys/time.h>
7324 #else
7325 #include <time.h>
7326 #endif
7327 #endif
7328 #ifdef HAVE_UTIME_H
7329 #include <utime.h>
7330 #endif
7331 int
7332 main ()
7333 {
7334 static struct utimbuf x; x.actime = x.modtime;
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 if ac_fn_c_try_compile "$LINENO"; then :
7340 emacs_cv_struct_utimbuf=yes
7341 else
7342 emacs_cv_struct_utimbuf=no
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 fi
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7347 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7348 if test $emacs_cv_struct_utimbuf = yes; then
7349
7350 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7351
7352 fi
7353
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7355 $as_echo_n "checking return type of signal handlers... " >&6; }
7356 if ${ac_cv_type_signal+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 #include <sys/types.h>
7362 #include <signal.h>
7363
7364 int
7365 main ()
7366 {
7367 return *(signal (0, 0)) (0) == 1;
7368 ;
7369 return 0;
7370 }
7371 _ACEOF
7372 if ac_fn_c_try_compile "$LINENO"; then :
7373 ac_cv_type_signal=int
7374 else
7375 ac_cv_type_signal=void
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 fi
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7380 $as_echo "$ac_cv_type_signal" >&6; }
7381
7382 cat >>confdefs.h <<_ACEOF
7383 #define RETSIGTYPE $ac_cv_type_signal
7384 _ACEOF
7385
7386
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7389 $as_echo_n "checking for speed_t... " >&6; }
7390 if ${emacs_cv_speed_t+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 #include <termios.h>
7396 int
7397 main ()
7398 {
7399 speed_t x = 1;
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 if ac_fn_c_try_compile "$LINENO"; then :
7405 emacs_cv_speed_t=yes
7406 else
7407 emacs_cv_speed_t=no
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7412 $as_echo "$emacs_cv_speed_t" >&6; }
7413 if test $emacs_cv_speed_t = yes; then
7414
7415 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7416
7417 fi
7418
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7420 $as_echo_n "checking for struct timeval... " >&6; }
7421 if ${emacs_cv_struct_timeval+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 #ifdef TIME_WITH_SYS_TIME
7427 #include <sys/time.h>
7428 #include <time.h>
7429 #else
7430 #ifdef HAVE_SYS_TIME_H
7431 #include <sys/time.h>
7432 #else
7433 #include <time.h>
7434 #endif
7435 #endif
7436 int
7437 main ()
7438 {
7439 static struct timeval x; x.tv_sec = x.tv_usec;
7440 ;
7441 return 0;
7442 }
7443 _ACEOF
7444 if ac_fn_c_try_compile "$LINENO"; then :
7445 emacs_cv_struct_timeval=yes
7446 else
7447 emacs_cv_struct_timeval=no
7448 fi
7449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7452 $as_echo "$emacs_cv_struct_timeval" >&6; }
7453 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7454 if test $emacs_cv_struct_timeval = yes; then
7455
7456 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7457
7458 fi
7459
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7461 $as_echo_n "checking for struct exception... " >&6; }
7462 if ${emacs_cv_struct_exception+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 #include <math.h>
7468 int
7469 main ()
7470 {
7471 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 emacs_cv_struct_exception=yes
7478 else
7479 emacs_cv_struct_exception=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7484 $as_echo "$emacs_cv_struct_exception" >&6; }
7485 HAVE_EXCEPTION=$emacs_cv_struct_exception
7486 if test $emacs_cv_struct_exception != yes; then
7487
7488 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7489
7490 fi
7491
7492 for ac_header in sys/socket.h
7493 do :
7494 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7495 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7496 cat >>confdefs.h <<_ACEOF
7497 #define HAVE_SYS_SOCKET_H 1
7498 _ACEOF
7499
7500 fi
7501
7502 done
7503
7504 for ac_header in net/if.h
7505 do :
7506 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7507 #if HAVE_SYS_SOCKET_H
7508 #include <sys/socket.h>
7509 #endif
7510 "
7511 if test "x$ac_cv_header_net_if_h" = xyes; then :
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_NET_IF_H 1
7514 _ACEOF
7515
7516 fi
7517
7518 done
7519
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7522 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7523 if ${ac_cv_struct_tm+:} false; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 #include <sys/types.h>
7529 #include <time.h>
7530
7531 int
7532 main ()
7533 {
7534 struct tm tm;
7535 int *p = &tm.tm_sec;
7536 return !p;
7537 ;
7538 return 0;
7539 }
7540 _ACEOF
7541 if ac_fn_c_try_compile "$LINENO"; then :
7542 ac_cv_struct_tm=time.h
7543 else
7544 ac_cv_struct_tm=sys/time.h
7545 fi
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7549 $as_echo "$ac_cv_struct_tm" >&6; }
7550 if test $ac_cv_struct_tm = sys/time.h; then
7551
7552 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7553
7554 fi
7555
7556 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7557 #include <$ac_cv_struct_tm>
7558
7559 "
7560 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7561
7562 cat >>confdefs.h <<_ACEOF
7563 #define HAVE_STRUCT_TM_TM_ZONE 1
7564 _ACEOF
7565
7566
7567 fi
7568
7569 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7570
7571 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7572
7573 else
7574 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7575 "
7576 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7577 ac_have_decl=1
7578 else
7579 ac_have_decl=0
7580 fi
7581
7582 cat >>confdefs.h <<_ACEOF
7583 #define HAVE_DECL_TZNAME $ac_have_decl
7584 _ACEOF
7585
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7587 $as_echo_n "checking for tzname... " >&6; }
7588 if ${ac_cv_var_tzname+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 #include <time.h>
7594 #if !HAVE_DECL_TZNAME
7595 extern char *tzname[];
7596 #endif
7597
7598 int
7599 main ()
7600 {
7601 return tzname[0][0];
7602 ;
7603 return 0;
7604 }
7605 _ACEOF
7606 if ac_fn_c_try_link "$LINENO"; then :
7607 ac_cv_var_tzname=yes
7608 else
7609 ac_cv_var_tzname=no
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext conftest.$ac_ext
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7615 $as_echo "$ac_cv_var_tzname" >&6; }
7616 if test $ac_cv_var_tzname = yes; then
7617
7618 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7619
7620 fi
7621 fi
7622
7623 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7624 "
7625 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7626
7627 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7628
7629 fi
7630
7631 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7632 #if HAVE_SYS_SOCKET_H
7633 #include <sys/socket.h>
7634 #endif
7635 #if HAVE_NET_IF_H
7636 #include <net/if.h>
7637 #endif
7638 "
7639 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
7640
7641 cat >>confdefs.h <<_ACEOF
7642 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7643 _ACEOF
7644
7645
7646 fi
7647 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7648 #if HAVE_SYS_SOCKET_H
7649 #include <sys/socket.h>
7650 #endif
7651 #if HAVE_NET_IF_H
7652 #include <net/if.h>
7653 #endif
7654 "
7655 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
7656
7657 cat >>confdefs.h <<_ACEOF
7658 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7659 _ACEOF
7660
7661
7662 fi
7663 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7664 #if HAVE_SYS_SOCKET_H
7665 #include <sys/socket.h>
7666 #endif
7667 #if HAVE_NET_IF_H
7668 #include <net/if.h>
7669 #endif
7670 "
7671 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
7672
7673 cat >>confdefs.h <<_ACEOF
7674 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7675 _ACEOF
7676
7677
7678 fi
7679 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7680 #if HAVE_SYS_SOCKET_H
7681 #include <sys/socket.h>
7682 #endif
7683 #if HAVE_NET_IF_H
7684 #include <net/if.h>
7685 #endif
7686 "
7687 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
7688
7689 cat >>confdefs.h <<_ACEOF
7690 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7691 _ACEOF
7692
7693
7694 fi
7695 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7696 #if HAVE_SYS_SOCKET_H
7697 #include <sys/socket.h>
7698 #endif
7699 #if HAVE_NET_IF_H
7700 #include <net/if.h>
7701 #endif
7702 "
7703 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
7704
7705 cat >>confdefs.h <<_ACEOF
7706 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7707 _ACEOF
7708
7709
7710 fi
7711
7712
7713
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7715 $as_echo_n "checking for function prototypes... " >&6; }
7716 if test "$ac_cv_prog_cc_c89" != no; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7718 $as_echo "yes" >&6; }
7719
7720 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7721
7722
7723 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7724
7725 else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7731 $as_echo_n "checking for working volatile... " >&6; }
7732 if ${ac_cv_c_volatile+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737
7738 int
7739 main ()
7740 {
7741
7742 volatile int x;
7743 int * volatile y = (int *) 0;
7744 return !x && !y;
7745 ;
7746 return 0;
7747 }
7748 _ACEOF
7749 if ac_fn_c_try_compile "$LINENO"; then :
7750 ac_cv_c_volatile=yes
7751 else
7752 ac_cv_c_volatile=no
7753 fi
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7757 $as_echo "$ac_cv_c_volatile" >&6; }
7758 if test $ac_cv_c_volatile = no; then
7759
7760 $as_echo "#define volatile /**/" >>confdefs.h
7761
7762 fi
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7765 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7766 if ${ac_cv_c_const+:} false; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7771
7772 int
7773 main ()
7774 {
7775 /* FIXME: Include the comments suggested by Paul. */
7776 #ifndef __cplusplus
7777 /* Ultrix mips cc rejects this. */
7778 typedef int charset[2];
7779 const charset cs;
7780 /* SunOS 4.1.1 cc rejects this. */
7781 char const *const *pcpcc;
7782 char **ppc;
7783 /* NEC SVR4.0.2 mips cc rejects this. */
7784 struct point {int x, y;};
7785 static struct point const zero = {0,0};
7786 /* AIX XL C 1.02.0.0 rejects this.
7787 It does not let you subtract one const X* pointer from another in
7788 an arm of an if-expression whose if-part is not a constant
7789 expression */
7790 const char *g = "string";
7791 pcpcc = &g + (g ? g-g : 0);
7792 /* HPUX 7.0 cc rejects these. */
7793 ++pcpcc;
7794 ppc = (char**) pcpcc;
7795 pcpcc = (char const *const *) ppc;
7796 { /* SCO 3.2v4 cc rejects this. */
7797 char *t;
7798 char const *s = 0 ? (char *) 0 : (char const *) 0;
7799
7800 *t++ = 0;
7801 if (s) return 0;
7802 }
7803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7804 int x[] = {25, 17};
7805 const int *foo = &x[0];
7806 ++foo;
7807 }
7808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7809 typedef const int *iptr;
7810 iptr p = 0;
7811 ++p;
7812 }
7813 { /* AIX XL C 1.02.0.0 rejects this saying
7814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7815 struct s { int j; const int *ap[3]; };
7816 struct s *b; b->j = 5;
7817 }
7818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7819 const int foo = 10;
7820 if (!foo) return 0;
7821 }
7822 return !cs[0] && !zero.x;
7823 #endif
7824
7825 ;
7826 return 0;
7827 }
7828 _ACEOF
7829 if ac_fn_c_try_compile "$LINENO"; then :
7830 ac_cv_c_const=yes
7831 else
7832 ac_cv_c_const=no
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7837 $as_echo "$ac_cv_c_const" >&6; }
7838 if test $ac_cv_c_const = no; then
7839
7840 $as_echo "#define const /**/" >>confdefs.h
7841
7842 fi
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7845 $as_echo_n "checking for void * support... " >&6; }
7846 if ${emacs_cv_void_star+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851
7852 int
7853 main ()
7854 {
7855 void * foo;
7856 ;
7857 return 0;
7858 }
7859 _ACEOF
7860 if ac_fn_c_try_compile "$LINENO"; then :
7861 emacs_cv_void_star=yes
7862 else
7863 emacs_cv_void_star=no
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7868 $as_echo "$emacs_cv_void_star" >&6; }
7869 if test $emacs_cv_void_star = yes; then
7870 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7871
7872 else
7873 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7874
7875 fi
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7878 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7879 if ${ac_cv_c_bigendian+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 ac_cv_c_bigendian=unknown
7883 # See if we're dealing with a universal compiler.
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886 #ifndef __APPLE_CC__
7887 not a universal capable compiler
7888 #endif
7889 typedef int dummy;
7890
7891 _ACEOF
7892 if ac_fn_c_try_compile "$LINENO"; then :
7893
7894 # Check for potential -arch flags. It is not universal unless
7895 # there are at least two -arch flags with different values.
7896 ac_arch=
7897 ac_prev=
7898 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7899 if test -n "$ac_prev"; then
7900 case $ac_word in
7901 i?86 | x86_64 | ppc | ppc64)
7902 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7903 ac_arch=$ac_word
7904 else
7905 ac_cv_c_bigendian=universal
7906 break
7907 fi
7908 ;;
7909 esac
7910 ac_prev=
7911 elif test "x$ac_word" = "x-arch"; then
7912 ac_prev=arch
7913 fi
7914 done
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917 if test $ac_cv_c_bigendian = unknown; then
7918 # See if sys/param.h defines the BYTE_ORDER macro.
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 #include <sys/types.h>
7922 #include <sys/param.h>
7923
7924 int
7925 main ()
7926 {
7927 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7928 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7929 && LITTLE_ENDIAN)
7930 bogus endian macros
7931 #endif
7932
7933 ;
7934 return 0;
7935 }
7936 _ACEOF
7937 if ac_fn_c_try_compile "$LINENO"; then :
7938 # It does; now see whether it defined to BIG_ENDIAN or not.
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941 #include <sys/types.h>
7942 #include <sys/param.h>
7943
7944 int
7945 main ()
7946 {
7947 #if BYTE_ORDER != BIG_ENDIAN
7948 not big endian
7949 #endif
7950
7951 ;
7952 return 0;
7953 }
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 ac_cv_c_bigendian=yes
7957 else
7958 ac_cv_c_bigendian=no
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 fi
7964 if test $ac_cv_c_bigendian = unknown; then
7965 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7968 #include <limits.h>
7969
7970 int
7971 main ()
7972 {
7973 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7974 bogus endian macros
7975 #endif
7976
7977 ;
7978 return 0;
7979 }
7980 _ACEOF
7981 if ac_fn_c_try_compile "$LINENO"; then :
7982 # It does; now see whether it defined to _BIG_ENDIAN or not.
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #include <limits.h>
7986
7987 int
7988 main ()
7989 {
7990 #ifndef _BIG_ENDIAN
7991 not big endian
7992 #endif
7993
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 ac_cv_c_bigendian=yes
8000 else
8001 ac_cv_c_bigendian=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 fi
8007 if test $ac_cv_c_bigendian = unknown; then
8008 # Compile a test program.
8009 if test "$cross_compiling" = yes; then :
8010 # Try to guess by grepping values from an object file.
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 short int ascii_mm[] =
8014 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8015 short int ascii_ii[] =
8016 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8017 int use_ascii (int i) {
8018 return ascii_mm[i] + ascii_ii[i];
8019 }
8020 short int ebcdic_ii[] =
8021 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8022 short int ebcdic_mm[] =
8023 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8024 int use_ebcdic (int i) {
8025 return ebcdic_mm[i] + ebcdic_ii[i];
8026 }
8027 extern int foo;
8028
8029 int
8030 main ()
8031 {
8032 return use_ascii (foo) == use_ebcdic (foo);
8033 ;
8034 return 0;
8035 }
8036 _ACEOF
8037 if ac_fn_c_try_compile "$LINENO"; then :
8038 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8039 ac_cv_c_bigendian=yes
8040 fi
8041 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8042 if test "$ac_cv_c_bigendian" = unknown; then
8043 ac_cv_c_bigendian=no
8044 else
8045 # finding both strings is unlikely to happen, but who knows?
8046 ac_cv_c_bigendian=unknown
8047 fi
8048 fi
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051 else
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8054 $ac_includes_default
8055 int
8056 main ()
8057 {
8058
8059 /* Are we little or big endian? From Harbison&Steele. */
8060 union
8061 {
8062 long int l;
8063 char c[sizeof (long int)];
8064 } u;
8065 u.l = 1;
8066 return u.c[sizeof (long int) - 1] == 1;
8067
8068 ;
8069 return 0;
8070 }
8071 _ACEOF
8072 if ac_fn_c_try_run "$LINENO"; then :
8073 ac_cv_c_bigendian=no
8074 else
8075 ac_cv_c_bigendian=yes
8076 fi
8077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8078 conftest.$ac_objext conftest.beam conftest.$ac_ext
8079 fi
8080
8081 fi
8082 fi
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8084 $as_echo "$ac_cv_c_bigendian" >&6; }
8085 case $ac_cv_c_bigendian in #(
8086 yes)
8087 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8088 ;; #(
8089 no)
8090 ;; #(
8091 universal)
8092
8093 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8094
8095 ;; #(
8096 *)
8097 as_fn_error $? "unknown endianness
8098 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8099 esac
8100
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8104 set x ${MAKE-make}
8105 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8106 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 cat >conftest.make <<\_ACEOF
8110 SHELL = /bin/sh
8111 all:
8112 @echo '@@@%%%=$(MAKE)=@@@%%%'
8113 _ACEOF
8114 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8116 *@@@%%%=?*=@@@%%%*)
8117 eval ac_cv_prog_make_${ac_make}_set=yes;;
8118 *)
8119 eval ac_cv_prog_make_${ac_make}_set=no;;
8120 esac
8121 rm -f conftest.make
8122 fi
8123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8125 $as_echo "yes" >&6; }
8126 SET_MAKE=
8127 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8130 SET_MAKE="MAKE=${MAKE-make}"
8131 fi
8132
8133
8134 DEPFLAGS=
8135 MKDEPDIR=":"
8136 deps_frag=deps.mk
8137 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8139 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8140 HAVE_GNU_MAKE=no
8141 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8142 if test "x$testval" != x; then
8143 HAVE_GNU_MAKE=yes
8144 else
8145 ac_enable_autodepend=no
8146 fi
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8148 $as_echo "$HAVE_GNU_MAKE" >&6; }
8149 if test $HAVE_GNU_MAKE = yes; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8151 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8152 SAVE_CFLAGS="$CFLAGS"
8153 CFLAGS="$CFLAGS -MMD -MF deps.d"
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156
8157 int
8158 main ()
8159 {
8160
8161 ;
8162 return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166
8167 else
8168 ac_enable_autodepend=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 CFLAGS="$SAVE_CFLAGS"
8172 test -f deps.d || ac_enable_autodepend=no
8173 rm -rf deps.d
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8175 $as_echo "$ac_enable_autodepend" >&6; }
8176 fi
8177 if test $ac_enable_autodepend = yes; then
8178 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8179 ## In parallel builds, another make might create depdir between
8180 ## the first test and mkdir, so stick another test on the end.
8181 ## Or use mkinstalldirs? mkdir -p is not portable.
8182 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8183 deps_frag=autodeps.mk
8184 fi
8185 fi
8186 deps_frag=$srcdir/src/$deps_frag
8187
8188
8189
8190
8191
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8193 $as_echo_n "checking for long file names... " >&6; }
8194 if ${ac_cv_sys_long_file_names+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 ac_cv_sys_long_file_names=yes
8198 # Test for long file names in all the places we know might matter:
8199 # . the current directory, where building will happen
8200 # $prefix/lib where we will be installing things
8201 # $exec_prefix/lib likewise
8202 # $TMPDIR if set, where it might want to write temporary files
8203 # /tmp where it might want to write temporary files
8204 # /var/tmp likewise
8205 # /usr/tmp likewise
8206 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8207 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8208 # in the usual case where exec_prefix is '${prefix}'.
8209 case $ac_dir in #(
8210 . | /* | ?:[\\/]*) ;; #(
8211 *) continue;;
8212 esac
8213 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8214 ac_xdir=$ac_dir/cf$$
8215 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8216 ac_tf1=$ac_xdir/conftest9012345
8217 ac_tf2=$ac_xdir/conftest9012346
8218 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8219 ac_cv_sys_long_file_names=no
8220 rm -f -r "$ac_xdir" 2>/dev/null
8221 test $ac_cv_sys_long_file_names = no && break
8222 done
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8225 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8226 if test $ac_cv_sys_long_file_names = yes; then
8227
8228 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8229
8230 fi
8231
8232
8233 #### Choose a window system.
8234
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8236 $as_echo_n "checking for X... " >&6; }
8237
8238
8239 # Check whether --with-x was given.
8240 if test "${with_x+set}" = set; then :
8241 withval=$with_x;
8242 fi
8243
8244 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8245 if test "x$with_x" = xno; then
8246 # The user explicitly disabled X.
8247 have_x=disabled
8248 else
8249 case $x_includes,$x_libraries in #(
8250 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8251 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 # One or both of the vars are not set, and there is no cached value.
8255 ac_x_includes=no ac_x_libraries=no
8256 rm -f -r conftest.dir
8257 if mkdir conftest.dir; then
8258 cd conftest.dir
8259 cat >Imakefile <<'_ACEOF'
8260 incroot:
8261 @echo incroot='${INCROOT}'
8262 usrlibdir:
8263 @echo usrlibdir='${USRLIBDIR}'
8264 libdir:
8265 @echo libdir='${LIBDIR}'
8266 _ACEOF
8267 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8268 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8269 for ac_var in incroot usrlibdir libdir; do
8270 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8271 done
8272 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8273 for ac_extension in a so sl dylib la dll; do
8274 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8275 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8276 ac_im_usrlibdir=$ac_im_libdir; break
8277 fi
8278 done
8279 # Screen out bogus values from the imake configuration. They are
8280 # bogus both because they are the default anyway, and because
8281 # using them would break gcc on systems where it needs fixed includes.
8282 case $ac_im_incroot in
8283 /usr/include) ac_x_includes= ;;
8284 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8285 esac
8286 case $ac_im_usrlibdir in
8287 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8288 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8289 esac
8290 fi
8291 cd ..
8292 rm -f -r conftest.dir
8293 fi
8294
8295 # Standard set of common directories for X headers.
8296 # Check X11 before X11Rn because it is often a symlink to the current release.
8297 ac_x_header_dirs='
8298 /usr/X11/include
8299 /usr/X11R7/include
8300 /usr/X11R6/include
8301 /usr/X11R5/include
8302 /usr/X11R4/include
8303
8304 /usr/include/X11
8305 /usr/include/X11R7
8306 /usr/include/X11R6
8307 /usr/include/X11R5
8308 /usr/include/X11R4
8309
8310 /usr/local/X11/include
8311 /usr/local/X11R7/include
8312 /usr/local/X11R6/include
8313 /usr/local/X11R5/include
8314 /usr/local/X11R4/include
8315
8316 /usr/local/include/X11
8317 /usr/local/include/X11R7
8318 /usr/local/include/X11R6
8319 /usr/local/include/X11R5
8320 /usr/local/include/X11R4
8321
8322 /usr/X386/include
8323 /usr/x386/include
8324 /usr/XFree86/include/X11
8325
8326 /usr/include
8327 /usr/local/include
8328 /usr/unsupported/include
8329 /usr/athena/include
8330 /usr/local/x11r5/include
8331 /usr/lpp/Xamples/include
8332
8333 /usr/openwin/include
8334 /usr/openwin/share/include'
8335
8336 if test "$ac_x_includes" = no; then
8337 # Guess where to find include files, by looking for Xlib.h.
8338 # First, try using that file with no special directory specified.
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341 #include <X11/Xlib.h>
8342 _ACEOF
8343 if ac_fn_c_try_cpp "$LINENO"; then :
8344 # We can compile using X headers with no special include directory.
8345 ac_x_includes=
8346 else
8347 for ac_dir in $ac_x_header_dirs; do
8348 if test -r "$ac_dir/X11/Xlib.h"; then
8349 ac_x_includes=$ac_dir
8350 break
8351 fi
8352 done
8353 fi
8354 rm -f conftest.err conftest.i conftest.$ac_ext
8355 fi # $ac_x_includes = no
8356
8357 if test "$ac_x_libraries" = no; then
8358 # Check for the libraries.
8359 # See if we find them without any special options.
8360 # Don't add to $LIBS permanently.
8361 ac_save_LIBS=$LIBS
8362 LIBS="-lX11 $LIBS"
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 #include <X11/Xlib.h>
8366 int
8367 main ()
8368 {
8369 XrmInitialize ()
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 LIBS=$ac_save_LIBS
8376 # We can link X programs with no special library path.
8377 ac_x_libraries=
8378 else
8379 LIBS=$ac_save_LIBS
8380 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8381 do
8382 # Don't even attempt the hair of trying to link an X program!
8383 for ac_extension in a so sl dylib la dll; do
8384 if test -r "$ac_dir/libX11.$ac_extension"; then
8385 ac_x_libraries=$ac_dir
8386 break 2
8387 fi
8388 done
8389 done
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393 fi # $ac_x_libraries = no
8394
8395 case $ac_x_includes,$ac_x_libraries in #(
8396 no,* | *,no | *\'*)
8397 # Didn't find X, or a directory has "'" in its name.
8398 ac_cv_have_x="have_x=no";; #(
8399 *)
8400 # Record where we found X for the cache.
8401 ac_cv_have_x="have_x=yes\
8402 ac_x_includes='$ac_x_includes'\
8403 ac_x_libraries='$ac_x_libraries'"
8404 esac
8405 fi
8406 ;; #(
8407 *) have_x=yes;;
8408 esac
8409 eval "$ac_cv_have_x"
8410 fi # $with_x != no
8411
8412 if test "$have_x" != yes; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8414 $as_echo "$have_x" >&6; }
8415 no_x=yes
8416 else
8417 # If each of the values was on the command line, it overrides each guess.
8418 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8419 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8420 # Update the cache value to reflect the command line values.
8421 ac_cv_have_x="have_x=yes\
8422 ac_x_includes='$x_includes'\
8423 ac_x_libraries='$x_libraries'"
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8425 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8426 fi
8427
8428 if test "$no_x" = yes; then
8429 window_system=none
8430 else
8431 window_system=x11
8432 fi
8433
8434 ## Workaround for bug in autoconf <= 2.62.
8435 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8436 ## No need to do anything special for these standard directories.
8437 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8438
8439 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8440
8441 fi
8442
8443 LD_SWITCH_X_SITE_AUX=
8444 LD_SWITCH_X_SITE_AUX_RPATH=
8445 if test "${x_libraries}" != NONE; then
8446 if test -n "${x_libraries}"; then
8447 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8448 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8449 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8450 fi
8451 x_default_search_path=""
8452 x_search_path=${x_libraries}
8453 if test -z "${x_search_path}"; then
8454 x_search_path=/usr/lib
8455 fi
8456 for x_library in `echo ${x_search_path}: | \
8457 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8458 x_search_path="\
8459 ${x_library}/X11/%L/%T/%N%C%S:\
8460 ${x_library}/X11/%l/%T/%N%C%S:\
8461 ${x_library}/X11/%T/%N%C%S:\
8462 ${x_library}/X11/%L/%T/%N%S:\
8463 ${x_library}/X11/%l/%T/%N%S:\
8464 ${x_library}/X11/%T/%N%S"
8465 if test x"${x_default_search_path}" = x; then
8466 x_default_search_path=${x_search_path}
8467 else
8468 x_default_search_path="${x_search_path}:${x_default_search_path}"
8469 fi
8470 done
8471 fi
8472
8473
8474
8475 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8476 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8477 fi
8478
8479 if test x"${x_includes}" = x; then
8480 bitmapdir=/usr/include/X11/bitmaps
8481 else
8482 # accumulate include directories that have X11 bitmap subdirectories
8483 bmd_acc="dummyval"
8484 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8485 if test -d "${bmd}/X11/bitmaps"; then
8486 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8487 fi
8488 if test -d "${bmd}/bitmaps"; then
8489 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8490 fi
8491 done
8492 if test ${bmd_acc} != "dummyval"; then
8493 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8494 fi
8495 fi
8496
8497 HAVE_NS=no
8498 NS_IMPL_COCOA=no
8499 NS_IMPL_GNUSTEP=no
8500 tmp_CPPFLAGS="$CPPFLAGS"
8501 tmp_CFLAGS="$CFLAGS"
8502 CPPFLAGS="$CPPFLAGS -x objective-c"
8503 CFLAGS="$CFLAGS -x objective-c"
8504 TEMACS_LDFLAGS2="\${LDFLAGS}"
8505 if test "${with_ns}" != no; then
8506 if test "${opsys}" = darwin; then
8507 NS_IMPL_COCOA=yes
8508 ns_appdir=`pwd`/nextstep/Emacs.app
8509 ns_appbindir=${ns_appdir}/Contents/MacOS/
8510 ns_appresdir=${ns_appdir}/Contents/Resources
8511 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8512 elif test -f $GNUSTEP_CONFIG_FILE; then
8513 NS_IMPL_GNUSTEP=yes
8514 ns_appdir=`pwd`/nextstep/Emacs.app
8515 ns_appbindir=${ns_appdir}/
8516 ns_appresdir=${ns_appdir}/Resources
8517 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8518 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8519 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8520 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8521 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8522 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8523 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8524 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8525 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8526 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8527 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8528 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8529 LIB_STANDARD=
8530 START_FILES=
8531 TEMACS_LDFLAGS2=
8532 fi
8533 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8534 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8535 HAVE_NS=yes
8536 else
8537 as_fn_error $? "\`--with-ns' was specified, but the include
8538 files are missing or cannot be compiled." "$LINENO" 5
8539 fi
8540
8541
8542 NS_HAVE_NSINTEGER=yes
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <Foundation/NSObjCRuntime.h>
8546 int
8547 main ()
8548 {
8549 NSInteger i;
8550 ;
8551 return 0;
8552 }
8553 _ACEOF
8554 if ac_fn_c_try_compile "$LINENO"; then :
8555 ns_have_nsinteger=yes
8556 else
8557 ns_have_nsinteger=no
8558 fi
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 if test $ns_have_nsinteger = no; then
8561 NS_HAVE_NSINTEGER=no
8562 fi
8563 fi
8564
8565
8566 ns_frag=/dev/null
8567 NS_OBJ=
8568 NS_SUPPORT=
8569 if test "${HAVE_NS}" = yes; then
8570 window_system=nextstep
8571 with_xft=no
8572 # set up packaging dirs
8573 exec_prefix=${ns_appbindir}
8574 libexecdir=${ns_appbindir}/libexec
8575 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8576 prefix=${ns_appresdir}
8577 fi
8578 ns_frag=$srcdir/src/ns.mk
8579 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8580 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8581 fi
8582 CFLAGS="$tmp_CFLAGS"
8583 CPPFLAGS="$tmp_CPPFLAGS"
8584
8585
8586
8587
8588
8589 case "${window_system}" in
8590 x11 )
8591 HAVE_X_WINDOWS=yes
8592 HAVE_X11=yes
8593 case "${with_x_toolkit}" in
8594 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8595 motif ) USE_X_TOOLKIT=MOTIF ;;
8596 gtk ) with_gtk=yes
8597 USE_X_TOOLKIT=none ;;
8598 gtk3 ) with_gtk3=yes
8599 USE_X_TOOLKIT=none ;;
8600 no ) USE_X_TOOLKIT=none ;;
8601 * ) USE_X_TOOLKIT=maybe ;;
8602 esac
8603 ;;
8604 nextstep | none )
8605 HAVE_X_WINDOWS=no
8606 HAVE_X11=no
8607 USE_X_TOOLKIT=none
8608 ;;
8609 esac
8610
8611 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8612 # Extract the first word of "X", so it can be a program name with args.
8613 set dummy X; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 if test -n "$HAVE_XSERVER"; then
8620 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8624 do
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8629 ac_cv_prog_HAVE_XSERVER="true"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8632 fi
8633 done
8634 done
8635 IFS=$as_save_IFS
8636
8637 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8638 fi
8639 fi
8640 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8641 if test -n "$HAVE_XSERVER"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8643 $as_echo "$HAVE_XSERVER" >&6; }
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 fi
8648
8649
8650 if test "$HAVE_XSERVER" = true ||
8651 test -n "$DISPLAY" ||
8652 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8653 as_fn_error $? "You seem to be running X, but no X development libraries
8654 were found. You should install the relevant development files for X
8655 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8656 sure you have development files for image handling, i.e.
8657 tiff, gif, jpeg, png and xpm.
8658 If you are sure you want Emacs compiled without X window support, pass
8659 --without-x
8660 to configure." "$LINENO" 5
8661 fi
8662 fi
8663
8664 ### If we're using X11, we should use the X menu package.
8665 HAVE_MENUS=no
8666 case ${HAVE_X11} in
8667 yes ) HAVE_MENUS=yes ;;
8668 esac
8669
8670 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8671 # Assume not, until told otherwise.
8672 GNU_MALLOC=yes
8673 doug_lea_malloc=yes
8674 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8675 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
8676
8677 else
8678 doug_lea_malloc=no
8679 fi
8680
8681 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8682 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
8683
8684 else
8685 doug_lea_malloc=no
8686 fi
8687
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8689 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8690 if ${emacs_cv_var___after_morecore_hook+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 extern void (* __after_morecore_hook)();
8696 int
8697 main ()
8698 {
8699 __after_morecore_hook = 0
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 if ac_fn_c_try_link "$LINENO"; then :
8705 emacs_cv_var___after_morecore_hook=yes
8706 else
8707 emacs_cv_var___after_morecore_hook=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8713 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8714 if test $emacs_cv_var___after_morecore_hook = no; then
8715 doug_lea_malloc=no
8716 fi
8717
8718
8719 system_malloc=no
8720 case "$opsys" in
8721 ## darwin ld insists on the use of malloc routines in the System framework.
8722 darwin|sol2-10) system_malloc=yes ;;
8723 esac
8724
8725 if test "${system_malloc}" = "yes"; then
8726
8727 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8728
8729 GNU_MALLOC=no
8730 GNU_MALLOC_reason="
8731 (The GNU allocators don't work with this system configuration.)"
8732 GMALLOC_OBJ=
8733 VMLIMIT_OBJ=
8734 else
8735 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8736 VMLIMIT_OBJ=vm-limit.o
8737 fi
8738
8739
8740
8741 if test "$doug_lea_malloc" = "yes" ; then
8742 if test "$GNU_MALLOC" = yes ; then
8743 GNU_MALLOC_reason="
8744 (Using Doug Lea's new malloc from the GNU C Library.)"
8745 fi
8746
8747 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8748
8749
8750 ## Use mmap directly for allocating larger buffers.
8751 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8752 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8753 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8754 case "$opsys" in
8755 gnu*) REL_ALLOC=no ;;
8756 esac
8757 fi
8758
8759 if test x"${REL_ALLOC}" = x; then
8760 REL_ALLOC=${GNU_MALLOC}
8761 fi
8762
8763 use_mmap_for_buffers=no
8764 case "$opsys" in
8765 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8766 esac
8767
8768
8769
8770
8771 for ac_header in $ac_header_list
8772 do :
8773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8774 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8775 "
8776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8777 cat >>confdefs.h <<_ACEOF
8778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8779 _ACEOF
8780
8781 fi
8782
8783 done
8784
8785
8786
8787
8788
8789
8790
8791
8792 for ac_func in getpagesize
8793 do :
8794 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8795 if test "x$ac_cv_func_getpagesize" = xyes; then :
8796 cat >>confdefs.h <<_ACEOF
8797 #define HAVE_GETPAGESIZE 1
8798 _ACEOF
8799
8800 fi
8801 done
8802
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8804 $as_echo_n "checking for working mmap... " >&6; }
8805 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 if test "$cross_compiling" = yes; then :
8809 ac_cv_func_mmap_fixed_mapped=no
8810 else
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 /* malloc might have been renamed as rpl_malloc. */
8815 #undef malloc
8816
8817 /* Thanks to Mike Haertel and Jim Avera for this test.
8818 Here is a matrix of mmap possibilities:
8819 mmap private not fixed
8820 mmap private fixed at somewhere currently unmapped
8821 mmap private fixed at somewhere already mapped
8822 mmap shared not fixed
8823 mmap shared fixed at somewhere currently unmapped
8824 mmap shared fixed at somewhere already mapped
8825 For private mappings, we should verify that changes cannot be read()
8826 back from the file, nor mmap's back from the file at a different
8827 address. (There have been systems where private was not correctly
8828 implemented like the infamous i386 svr4.0, and systems where the
8829 VM page cache was not coherent with the file system buffer cache
8830 like early versions of FreeBSD and possibly contemporary NetBSD.)
8831 For shared mappings, we should conversely verify that changes get
8832 propagated back to all the places they're supposed to be.
8833
8834 Grep wants private fixed already mapped.
8835 The main things grep needs to know about mmap are:
8836 * does it exist and is it safe to write into the mmap'd area
8837 * how to use it (BSD variants) */
8838
8839 #include <fcntl.h>
8840 #include <sys/mman.h>
8841
8842 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8843 char *malloc ();
8844 #endif
8845
8846 /* This mess was copied from the GNU getpagesize.h. */
8847 #ifndef HAVE_GETPAGESIZE
8848 # ifdef _SC_PAGESIZE
8849 # define getpagesize() sysconf(_SC_PAGESIZE)
8850 # else /* no _SC_PAGESIZE */
8851 # ifdef HAVE_SYS_PARAM_H
8852 # include <sys/param.h>
8853 # ifdef EXEC_PAGESIZE
8854 # define getpagesize() EXEC_PAGESIZE
8855 # else /* no EXEC_PAGESIZE */
8856 # ifdef NBPG
8857 # define getpagesize() NBPG * CLSIZE
8858 # ifndef CLSIZE
8859 # define CLSIZE 1
8860 # endif /* no CLSIZE */
8861 # else /* no NBPG */
8862 # ifdef NBPC
8863 # define getpagesize() NBPC
8864 # else /* no NBPC */
8865 # ifdef PAGESIZE
8866 # define getpagesize() PAGESIZE
8867 # endif /* PAGESIZE */
8868 # endif /* no NBPC */
8869 # endif /* no NBPG */
8870 # endif /* no EXEC_PAGESIZE */
8871 # else /* no HAVE_SYS_PARAM_H */
8872 # define getpagesize() 8192 /* punt totally */
8873 # endif /* no HAVE_SYS_PARAM_H */
8874 # endif /* no _SC_PAGESIZE */
8875
8876 #endif /* no HAVE_GETPAGESIZE */
8877
8878 int
8879 main ()
8880 {
8881 char *data, *data2, *data3;
8882 const char *cdata2;
8883 int i, pagesize;
8884 int fd, fd2;
8885
8886 pagesize = getpagesize ();
8887
8888 /* First, make a file with some known garbage in it. */
8889 data = (char *) malloc (pagesize);
8890 if (!data)
8891 return 1;
8892 for (i = 0; i < pagesize; ++i)
8893 *(data + i) = rand ();
8894 umask (0);
8895 fd = creat ("conftest.mmap", 0600);
8896 if (fd < 0)
8897 return 2;
8898 if (write (fd, data, pagesize) != pagesize)
8899 return 3;
8900 close (fd);
8901
8902 /* Next, check that the tail of a page is zero-filled. File must have
8903 non-zero length, otherwise we risk SIGBUS for entire page. */
8904 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8905 if (fd2 < 0)
8906 return 4;
8907 cdata2 = "";
8908 if (write (fd2, cdata2, 1) != 1)
8909 return 5;
8910 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8911 if (data2 == MAP_FAILED)
8912 return 6;
8913 for (i = 0; i < pagesize; ++i)
8914 if (*(data2 + i))
8915 return 7;
8916 close (fd2);
8917 if (munmap (data2, pagesize))
8918 return 8;
8919
8920 /* Next, try to mmap the file at a fixed address which already has
8921 something else allocated at it. If we can, also make sure that
8922 we see the same garbage. */
8923 fd = open ("conftest.mmap", O_RDWR);
8924 if (fd < 0)
8925 return 9;
8926 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8927 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8928 return 10;
8929 for (i = 0; i < pagesize; ++i)
8930 if (*(data + i) != *(data2 + i))
8931 return 11;
8932
8933 /* Finally, make sure that changes to the mapped area do not
8934 percolate back to the file as seen by read(). (This is a bug on
8935 some variants of i386 svr4.0.) */
8936 for (i = 0; i < pagesize; ++i)
8937 *(data2 + i) = *(data2 + i) + 1;
8938 data3 = (char *) malloc (pagesize);
8939 if (!data3)
8940 return 12;
8941 if (read (fd, data3, pagesize) != pagesize)
8942 return 13;
8943 for (i = 0; i < pagesize; ++i)
8944 if (*(data + i) != *(data3 + i))
8945 return 14;
8946 close (fd);
8947 return 0;
8948 }
8949 _ACEOF
8950 if ac_fn_c_try_run "$LINENO"; then :
8951 ac_cv_func_mmap_fixed_mapped=yes
8952 else
8953 ac_cv_func_mmap_fixed_mapped=no
8954 fi
8955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8956 conftest.$ac_objext conftest.beam conftest.$ac_ext
8957 fi
8958
8959 fi
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8961 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8962 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8963
8964 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8965
8966 fi
8967 rm -f conftest.mmap conftest.txt
8968
8969 if test $use_mmap_for_buffers = yes; then
8970
8971 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8972
8973 REL_ALLOC=no
8974 fi
8975
8976 LIBS="$LIBS_SYSTEM $LIBS"
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8979 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8980 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 ac_check_lib_save_LIBS=$LIBS
8984 LIBS="-ldnet $LIBS"
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987
8988 /* Override any GCC internal prototype to avoid an error.
8989 Use char because int might match the return type of a GCC
8990 builtin and then its argument prototype would still apply. */
8991 #ifdef __cplusplus
8992 extern "C"
8993 #endif
8994 char dnet_ntoa ();
8995 int
8996 main ()
8997 {
8998 return dnet_ntoa ();
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_link "$LINENO"; then :
9004 ac_cv_lib_dnet_dnet_ntoa=yes
9005 else
9006 ac_cv_lib_dnet_dnet_ntoa=no
9007 fi
9008 rm -f core conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
9010 LIBS=$ac_check_lib_save_LIBS
9011 fi
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9013 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9014 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_LIBDNET 1
9017 _ACEOF
9018
9019 LIBS="-ldnet $LIBS"
9020
9021 fi
9022
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9025 $as_echo_n "checking for main in -lXbsd... " >&6; }
9026 if ${ac_cv_lib_Xbsd_main+:} false; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 ac_check_lib_save_LIBS=$LIBS
9030 LIBS="-lXbsd $LIBS"
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033
9034
9035 int
9036 main ()
9037 {
9038 return main ();
9039 ;
9040 return 0;
9041 }
9042 _ACEOF
9043 if ac_fn_c_try_link "$LINENO"; then :
9044 ac_cv_lib_Xbsd_main=yes
9045 else
9046 ac_cv_lib_Xbsd_main=no
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9050 LIBS=$ac_check_lib_save_LIBS
9051 fi
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9053 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9054 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9055 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9056 fi
9057
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9060 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9061 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 ac_check_lib_save_LIBS=$LIBS
9065 LIBS="-lpthreads $LIBS"
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9072 #ifdef __cplusplus
9073 extern "C"
9074 #endif
9075 char cma_open ();
9076 int
9077 main ()
9078 {
9079 return cma_open ();
9080 ;
9081 return 0;
9082 }
9083 _ACEOF
9084 if ac_fn_c_try_link "$LINENO"; then :
9085 ac_cv_lib_pthreads_cma_open=yes
9086 else
9087 ac_cv_lib_pthreads_cma_open=no
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091 LIBS=$ac_check_lib_save_LIBS
9092 fi
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9094 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9095 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9096 cat >>confdefs.h <<_ACEOF
9097 #define HAVE_LIBPTHREADS 1
9098 _ACEOF
9099
9100 LIBS="-lpthreads $LIBS"
9101
9102 fi
9103
9104
9105 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9106 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9107 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9108 ## added to LIBS in configure would never contain the pthreads part,
9109 ## but the value used in Makefiles might. FIXME?
9110 ##
9111 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9112 ## be harmless on older versions of X where it happens to exist.
9113 test "$opsys" = "aix4-2" && \
9114 test $ac_cv_lib_pthreads_cma_open = yes && \
9115 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9116
9117
9118 case ${host_os} in
9119 aix*)
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9121 $as_echo_n "checking for -bbigtoc option... " >&6; }
9122 if ${gdb_cv_bigtoc+:} false; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125
9126 case $GCC in
9127 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9128 *) gdb_cv_bigtoc=-bbigtoc ;;
9129 esac
9130
9131 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134
9135 int
9136 main ()
9137 {
9138 int i;
9139 ;
9140 return 0;
9141 }
9142 _ACEOF
9143 if ac_fn_c_try_link "$LINENO"; then :
9144
9145 else
9146 gdb_cv_bigtoc=
9147 fi
9148 rm -f core conftest.err conftest.$ac_objext \
9149 conftest$ac_exeext conftest.$ac_ext
9150
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9153 $as_echo "$gdb_cv_bigtoc" >&6; }
9154 ;;
9155 esac
9156
9157 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9158 # used for the tests that follow. We set them back to REAL_CFLAGS and
9159 # REAL_CPPFLAGS later on.
9160
9161 REAL_CFLAGS="$CFLAGS"
9162 REAL_CPPFLAGS="$CPPFLAGS"
9163
9164 if test "${HAVE_X11}" = "yes"; then
9165 DEFS="$C_SWITCH_X_SITE $DEFS"
9166 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9167 LIBS="-lX11 $LIBS"
9168 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9169 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9170
9171 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9172 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9173 # but it's more convenient here to set LD_RUN_PATH
9174 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9175 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9176 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9177 export LD_RUN_PATH
9178 fi
9179
9180 if test "${opsys}" = "gnu-linux"; then
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9182 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185
9186 int
9187 main ()
9188 {
9189 XOpenDisplay ("foo");
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 if ac_fn_c_try_link "$LINENO"; then :
9195 xlinux_first_failure=no
9196 else
9197 xlinux_first_failure=yes
9198 fi
9199 rm -f core conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201 if test "${xlinux_first_failure}" = "yes"; then
9202 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9203 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9204 OLD_CPPFLAGS="$CPPFLAGS"
9205 OLD_LIBS="$LIBS"
9206 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9207 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9208 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9209 LIBS="$LIBS -b i486-linuxaout"
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212
9213 int
9214 main ()
9215 {
9216 XOpenDisplay ("foo");
9217 ;
9218 return 0;
9219 }
9220 _ACEOF
9221 if ac_fn_c_try_link "$LINENO"; then :
9222 xlinux_second_failure=no
9223 else
9224 xlinux_second_failure=yes
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext conftest.$ac_ext
9228 if test "${xlinux_second_failure}" = "yes"; then
9229 # If we get the same failure with -b, there is no use adding -b.
9230 # So take it out. This plays safe.
9231 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9232 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9233 CPPFLAGS="$OLD_CPPFLAGS"
9234 LIBS="$OLD_LIBS"
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9237 else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9239 $as_echo "yes" >&6; }
9240 fi
9241 else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9244 fi
9245 fi
9246
9247 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9248 # header files included from there.
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9250 $as_echo_n "checking for Xkb... " >&6; }
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 #include <X11/Xlib.h>
9254 #include <X11/XKBlib.h>
9255 int
9256 main ()
9257 {
9258 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9259 ;
9260 return 0;
9261 }
9262 _ACEOF
9263 if ac_fn_c_try_link "$LINENO"; then :
9264 emacs_xkb=yes
9265 else
9266 emacs_xkb=no
9267 fi
9268 rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9271 $as_echo "$emacs_xkb" >&6; }
9272 if test $emacs_xkb = yes; then
9273
9274 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9275
9276 fi
9277
9278 for ac_func in XrmSetDatabase XScreenResourceString \
9279 XScreenNumberOfScreen XSetWMProtocols
9280 do :
9281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9282 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9283 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9284 cat >>confdefs.h <<_ACEOF
9285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9286 _ACEOF
9287
9288 fi
9289 done
9290
9291 fi
9292
9293 if test "${window_system}" = "x11"; then
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9295 $as_echo_n "checking X11 version 6... " >&6; }
9296 if ${emacs_cv_x11_version_6+:} false; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <X11/Xlib.h>
9302 int
9303 main ()
9304 {
9305 #if XlibSpecificationRelease < 6
9306 fail;
9307 #endif
9308
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 emacs_cv_x11_version_6=yes
9315 else
9316 emacs_cv_x11_version_6=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 fi
9321
9322 if test $emacs_cv_x11_version_6 = yes; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9324 $as_echo "6 or newer" >&6; }
9325
9326 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9327
9328
9329 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9330
9331 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9332 ## XIM support.
9333 case "$opsys" in
9334 sol2-*) : ;;
9335 *)
9336 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9337
9338 ;;
9339 esac
9340 else
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9342 $as_echo "before 6" >&6; }
9343 fi
9344 fi
9345
9346
9347 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9348 HAVE_RSVG=no
9349 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9350 if test "${with_rsvg}" != "no"; then
9351 RSVG_REQUIRED=2.11.0
9352 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9353
9354
9355 succeeded=no
9356
9357 # Extract the first word of "pkg-config", so it can be a program name with args.
9358 set dummy pkg-config; ac_word=$2
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 case $PKG_CONFIG in
9365 [\\/]* | ?:[\\/]*)
9366 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9367 ;;
9368 *)
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370 for as_dir in $PATH
9371 do
9372 IFS=$as_save_IFS
9373 test -z "$as_dir" && as_dir=.
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378 break 2
9379 fi
9380 done
9381 done
9382 IFS=$as_save_IFS
9383
9384 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9385 ;;
9386 esac
9387 fi
9388 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9389 if test -n "$PKG_CONFIG"; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9391 $as_echo "$PKG_CONFIG" >&6; }
9392 else
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9395 fi
9396
9397
9398
9399 if test "$PKG_CONFIG" = "no" ; then
9400 :
9401 else
9402 PKG_CONFIG_MIN_VERSION=0.9.0
9403 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9405 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9406
9407 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9409 $as_echo "yes" >&6; }
9410 succeeded=yes
9411
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9413 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9414 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9416 $as_echo "$RSVG_CFLAGS" >&6; }
9417
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9419 $as_echo_n "checking RSVG_LIBS... " >&6; }
9420 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9422 $as_echo "$RSVG_LIBS" >&6; }
9423 else
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 $as_echo "no" >&6; }
9426 RSVG_CFLAGS=""
9427 RSVG_LIBS=""
9428 ## If we have a custom action on failure, don't print errors, but
9429 ## do set a variable so people can do so.
9430 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9431
9432 fi
9433
9434
9435
9436 else
9437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9439 fi
9440 fi
9441
9442 if test $succeeded = yes; then
9443 HAVE_RSVG=yes
9444 else
9445 :
9446 fi
9447
9448
9449
9450
9451 if test $HAVE_RSVG = yes; then
9452
9453 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9454
9455 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9456 LIBS="$RSVG_LIBS $LIBS"
9457 fi
9458 fi
9459 fi
9460
9461 HAVE_IMAGEMAGICK=no
9462 if test "${HAVE_X11}" = "yes"; then
9463 if test "${with_imagemagick}" != "no"; then
9464 IMAGEMAGICK_MODULE="Wand"
9465
9466 succeeded=no
9467
9468 # Extract the first word of "pkg-config", so it can be a program name with args.
9469 set dummy pkg-config; ac_word=$2
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9471 $as_echo_n "checking for $ac_word... " >&6; }
9472 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 case $PKG_CONFIG in
9476 [\\/]* | ?:[\\/]*)
9477 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9478 ;;
9479 *)
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9482 do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9490 fi
9491 done
9492 done
9493 IFS=$as_save_IFS
9494
9495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9496 ;;
9497 esac
9498 fi
9499 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9500 if test -n "$PKG_CONFIG"; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9502 $as_echo "$PKG_CONFIG" >&6; }
9503 else
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9506 fi
9507
9508
9509
9510 if test "$PKG_CONFIG" = "no" ; then
9511 :
9512 else
9513 PKG_CONFIG_MIN_VERSION=0.9.0
9514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9516 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9517
9518 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9520 $as_echo "yes" >&6; }
9521 succeeded=yes
9522
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9524 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9525 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9527 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9528
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9530 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9531 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9533 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9534 else
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9537 IMAGEMAGICK_CFLAGS=""
9538 IMAGEMAGICK_LIBS=""
9539 ## If we have a custom action on failure, don't print errors, but
9540 ## do set a variable so people can do so.
9541 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9542
9543 fi
9544
9545
9546
9547 else
9548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9550 fi
9551 fi
9552
9553 if test $succeeded = yes; then
9554 HAVE_IMAGEMAGICK=yes
9555 else
9556 :
9557 fi
9558
9559
9560
9561
9562 if test $HAVE_IMAGEMAGICK = yes; then
9563
9564 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9565
9566 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9567 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9568 for ac_func in MagickExportImagePixels
9569 do :
9570 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9571 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
9572 cat >>confdefs.h <<_ACEOF
9573 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9574 _ACEOF
9575
9576 fi
9577 done
9578
9579 fi
9580 fi
9581 fi
9582
9583
9584 HAVE_GTK=no
9585 if test "${with_gtk3}" = "yes"; then
9586 GLIB_REQUIRED=2.6
9587 GTK_REQUIRED=2.90
9588 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9589
9590
9591 succeeded=no
9592
9593 # Extract the first word of "pkg-config", so it can be a program name with args.
9594 set dummy pkg-config; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 case $PKG_CONFIG in
9601 [\\/]* | ?:[\\/]*)
9602 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9603 ;;
9604 *)
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9607 do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 break 2
9615 fi
9616 done
9617 done
9618 IFS=$as_save_IFS
9619
9620 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9621 ;;
9622 esac
9623 fi
9624 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9625 if test -n "$PKG_CONFIG"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9627 $as_echo "$PKG_CONFIG" >&6; }
9628 else
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9631 fi
9632
9633
9634
9635 if test "$PKG_CONFIG" = "no" ; then
9636 pkg_check_gtk=no
9637 else
9638 PKG_CONFIG_MIN_VERSION=0.9.0
9639 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9641 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9642
9643 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9645 $as_echo "yes" >&6; }
9646 succeeded=yes
9647
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9649 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9650 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9652 $as_echo "$GTK_CFLAGS" >&6; }
9653
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9655 $as_echo_n "checking GTK_LIBS... " >&6; }
9656 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9658 $as_echo "$GTK_LIBS" >&6; }
9659 else
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 $as_echo "no" >&6; }
9662 GTK_CFLAGS=""
9663 GTK_LIBS=""
9664 ## If we have a custom action on failure, don't print errors, but
9665 ## do set a variable so people can do so.
9666 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9667
9668 fi
9669
9670
9671
9672 else
9673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9675 fi
9676 fi
9677
9678 if test $succeeded = yes; then
9679 pkg_check_gtk=yes
9680 else
9681 pkg_check_gtk=no
9682 fi
9683
9684 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9685 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9686 fi
9687 fi
9688
9689 if test "$pkg_check_gtk" != "yes"; then
9690 HAVE_GTK=no
9691 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9692 GLIB_REQUIRED=2.6
9693 GTK_REQUIRED=2.6
9694 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9695
9696
9697 succeeded=no
9698
9699 # Extract the first word of "pkg-config", so it can be a program name with args.
9700 set dummy pkg-config; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 case $PKG_CONFIG in
9707 [\\/]* | ?:[\\/]*)
9708 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9709 ;;
9710 *)
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712 for as_dir in $PATH
9713 do
9714 IFS=$as_save_IFS
9715 test -z "$as_dir" && as_dir=.
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9718 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9720 break 2
9721 fi
9722 done
9723 done
9724 IFS=$as_save_IFS
9725
9726 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9727 ;;
9728 esac
9729 fi
9730 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9731 if test -n "$PKG_CONFIG"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9733 $as_echo "$PKG_CONFIG" >&6; }
9734 else
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9737 fi
9738
9739
9740
9741 if test "$PKG_CONFIG" = "no" ; then
9742 pkg_check_gtk=no
9743 else
9744 PKG_CONFIG_MIN_VERSION=0.9.0
9745 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9747 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9748
9749 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9751 $as_echo "yes" >&6; }
9752 succeeded=yes
9753
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9755 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9756 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9758 $as_echo "$GTK_CFLAGS" >&6; }
9759
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9761 $as_echo_n "checking GTK_LIBS... " >&6; }
9762 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9764 $as_echo "$GTK_LIBS" >&6; }
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9768 GTK_CFLAGS=""
9769 GTK_LIBS=""
9770 ## If we have a custom action on failure, don't print errors, but
9771 ## do set a variable so people can do so.
9772 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9773
9774 fi
9775
9776
9777
9778 else
9779 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9780 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9781 fi
9782 fi
9783
9784 if test $succeeded = yes; then
9785 pkg_check_gtk=yes
9786 else
9787 pkg_check_gtk=no
9788 fi
9789
9790 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9791 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9792 fi
9793 fi
9794 fi
9795
9796 GTK_OBJ=
9797 if test x"$pkg_check_gtk" = xyes; then
9798
9799
9800
9801 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9802 CFLAGS="$CFLAGS $GTK_CFLAGS"
9803 LIBS="$GTK_LIBS $LIBS"
9804 GTK_COMPILES=no
9805 for ac_func in gtk_main
9806 do :
9807 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
9808 if test "x$ac_cv_func_gtk_main" = xyes; then :
9809 cat >>confdefs.h <<_ACEOF
9810 #define HAVE_GTK_MAIN 1
9811 _ACEOF
9812 GTK_COMPILES=yes
9813 fi
9814 done
9815
9816 if test "${GTK_COMPILES}" != "yes"; then
9817 if test "$USE_X_TOOLKIT" != "maybe"; then
9818 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
9819 fi
9820 else
9821 HAVE_GTK=yes
9822
9823 $as_echo "#define USE_GTK 1" >>confdefs.h
9824
9825 GTK_OBJ=gtkutil.o
9826 USE_X_TOOLKIT=none
9827 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9828 :
9829 else
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9831 closing open displays. This is no problem if you just use
9832 one display, but if you use more than one and close one of them
9833 Emacs may crash." >&5
9834 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9835 closing open displays. This is no problem if you just use
9836 one display, but if you use more than one and close one of them
9837 Emacs may crash." >&2;}
9838 sleep 3
9839 fi
9840 fi
9841
9842 fi
9843
9844
9845
9846 if test "${HAVE_GTK}" = "yes"; then
9847
9848 if test "$with_toolkit_scroll_bars" != no; then
9849 with_toolkit_scroll_bars=yes
9850 fi
9851
9852 HAVE_GTK_FILE_SELECTION=no
9853 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9854 #include <gtk/gtk.h>
9855 "
9856 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
9857 HAVE_GTK_FILE_SELECTION=yes
9858 else
9859 HAVE_GTK_FILE_SELECTION=no
9860 fi
9861
9862 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9863 for ac_func in gtk_file_selection_new
9864 do :
9865 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9866 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
9867 cat >>confdefs.h <<_ACEOF
9868 #define HAVE_GTK_FILE_SELECTION_NEW 1
9869 _ACEOF
9870
9871 fi
9872 done
9873
9874 fi
9875
9876 HAVE_GTK_AND_PTHREAD=no
9877 for ac_header in pthread.h
9878 do :
9879 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9880 if test "x$ac_cv_header_pthread_h" = xyes; then :
9881 cat >>confdefs.h <<_ACEOF
9882 #define HAVE_PTHREAD_H 1
9883 _ACEOF
9884
9885 fi
9886
9887 done
9888
9889 if test "$ac_cv_header_pthread_h"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9891 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9892 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 ac_check_lib_save_LIBS=$LIBS
9896 LIBS="-lpthread $LIBS"
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 char pthread_self ();
9907 int
9908 main ()
9909 {
9910 return pthread_self ();
9911 ;
9912 return 0;
9913 }
9914 _ACEOF
9915 if ac_fn_c_try_link "$LINENO"; then :
9916 ac_cv_lib_pthread_pthread_self=yes
9917 else
9918 ac_cv_lib_pthread_pthread_self=no
9919 fi
9920 rm -f core conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9925 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9926 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
9927 HAVE_GTK_AND_PTHREAD=yes
9928 fi
9929
9930 fi
9931 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9932 case "${canonical}" in
9933 *-hpux*) ;;
9934 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9935 esac
9936
9937 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9938
9939 fi
9940
9941 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9942 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9943 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9944 gtk_orientable_set_orientation
9945 do :
9946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9948 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9949 cat >>confdefs.h <<_ACEOF
9950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9951 _ACEOF
9952
9953 fi
9954 done
9955
9956
9957 fi
9958
9959 HAVE_DBUS=no
9960 DBUS_OBJ=
9961 if test "${with_dbus}" = "yes"; then
9962
9963 succeeded=no
9964
9965 # Extract the first word of "pkg-config", so it can be a program name with args.
9966 set dummy pkg-config; ac_word=$2
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 case $PKG_CONFIG in
9973 [\\/]* | ?:[\\/]*)
9974 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9975 ;;
9976 *)
9977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978 for as_dir in $PATH
9979 do
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
9982 for ac_exec_ext in '' $ac_executable_extensions; do
9983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 break 2
9987 fi
9988 done
9989 done
9990 IFS=$as_save_IFS
9991
9992 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9993 ;;
9994 esac
9995 fi
9996 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9997 if test -n "$PKG_CONFIG"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9999 $as_echo "$PKG_CONFIG" >&6; }
10000 else
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10003 fi
10004
10005
10006
10007 if test "$PKG_CONFIG" = "no" ; then
10008 HAVE_DBUS=no
10009 else
10010 PKG_CONFIG_MIN_VERSION=0.9.0
10011 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10013 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10014
10015 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10017 $as_echo "yes" >&6; }
10018 succeeded=yes
10019
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10021 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10022 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10024 $as_echo "$DBUS_CFLAGS" >&6; }
10025
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10027 $as_echo_n "checking DBUS_LIBS... " >&6; }
10028 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10030 $as_echo "$DBUS_LIBS" >&6; }
10031 else
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10034 DBUS_CFLAGS=""
10035 DBUS_LIBS=""
10036 ## If we have a custom action on failure, don't print errors, but
10037 ## do set a variable so people can do so.
10038 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10039
10040 fi
10041
10042
10043
10044 else
10045 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10046 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10047 fi
10048 fi
10049
10050 if test $succeeded = yes; then
10051 HAVE_DBUS=yes
10052 else
10053 HAVE_DBUS=no
10054 fi
10055
10056 if test "$HAVE_DBUS" = yes; then
10057 LIBS="$LIBS $DBUS_LIBS"
10058
10059 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10060
10061 for ac_func in dbus_watch_get_unix_fd
10062 do :
10063 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10064 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10065 cat >>confdefs.h <<_ACEOF
10066 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10067 _ACEOF
10068
10069 fi
10070 done
10071
10072 DBUS_OBJ=dbusbind.o
10073 fi
10074 fi
10075
10076
10077 HAVE_GCONF=no
10078 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10079
10080 succeeded=no
10081
10082 # Extract the first word of "pkg-config", so it can be a program name with args.
10083 set dummy pkg-config; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 case $PKG_CONFIG in
10090 [\\/]* | ?:[\\/]*)
10091 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10092 ;;
10093 *)
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10096 do
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10104 fi
10105 done
10106 done
10107 IFS=$as_save_IFS
10108
10109 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10110 ;;
10111 esac
10112 fi
10113 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10114 if test -n "$PKG_CONFIG"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10116 $as_echo "$PKG_CONFIG" >&6; }
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121
10122
10123
10124 if test "$PKG_CONFIG" = "no" ; then
10125 HAVE_GCONF=no
10126 else
10127 PKG_CONFIG_MIN_VERSION=0.9.0
10128 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10130 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10131
10132 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10134 $as_echo "yes" >&6; }
10135 succeeded=yes
10136
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10138 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10139 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10141 $as_echo "$GCONF_CFLAGS" >&6; }
10142
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10144 $as_echo_n "checking GCONF_LIBS... " >&6; }
10145 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10147 $as_echo "$GCONF_LIBS" >&6; }
10148 else
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10151 GCONF_CFLAGS=""
10152 GCONF_LIBS=""
10153 ## If we have a custom action on failure, don't print errors, but
10154 ## do set a variable so people can do so.
10155 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10156
10157 fi
10158
10159
10160
10161 else
10162 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10163 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10164 fi
10165 fi
10166
10167 if test $succeeded = yes; then
10168 HAVE_GCONF=yes
10169 else
10170 HAVE_GCONF=no
10171 fi
10172
10173 if test "$HAVE_GCONF" = yes; then
10174
10175 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10176
10177 for ac_func in g_type_init
10178 do :
10179 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10180 if test "x$ac_cv_func_g_type_init" = xyes; then :
10181 cat >>confdefs.h <<_ACEOF
10182 #define HAVE_G_TYPE_INIT 1
10183 _ACEOF
10184
10185 fi
10186 done
10187
10188 fi
10189 fi
10190
10191 HAVE_LIBSELINUX=no
10192 LIBSELINUX_LIBS=
10193 if test "${with_selinux}" = "yes"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10195 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10196 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-lselinux $LIBS"
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203
10204 /* Override any GCC internal prototype to avoid an error.
10205 Use char because int might match the return type of a GCC
10206 builtin and then its argument prototype would still apply. */
10207 #ifdef __cplusplus
10208 extern "C"
10209 #endif
10210 char lgetfilecon ();
10211 int
10212 main ()
10213 {
10214 return lgetfilecon ();
10215 ;
10216 return 0;
10217 }
10218 _ACEOF
10219 if ac_fn_c_try_link "$LINENO"; then :
10220 ac_cv_lib_selinux_lgetfilecon=yes
10221 else
10222 ac_cv_lib_selinux_lgetfilecon=no
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10229 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10230 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10231 HAVE_LIBSELINUX=yes
10232 else
10233 HAVE_LIBSELINUX=no
10234 fi
10235
10236 if test "$HAVE_LIBSELINUX" = yes; then
10237
10238 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10239
10240 LIBSELINUX_LIBS=-lselinux
10241 fi
10242 fi
10243
10244
10245 HAVE_GNUTLS=no
10246 if test "${with_gnutls}" = "yes" ; then
10247
10248 succeeded=no
10249
10250 # Extract the first word of "pkg-config", so it can be a program name with args.
10251 set dummy pkg-config; ac_word=$2
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10253 $as_echo_n "checking for $ac_word... " >&6; }
10254 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 case $PKG_CONFIG in
10258 [\\/]* | ?:[\\/]*)
10259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10260 ;;
10261 *)
10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in $PATH
10264 do
10265 IFS=$as_save_IFS
10266 test -z "$as_dir" && as_dir=.
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10269 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271 break 2
10272 fi
10273 done
10274 done
10275 IFS=$as_save_IFS
10276
10277 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10278 ;;
10279 esac
10280 fi
10281 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10282 if test -n "$PKG_CONFIG"; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10284 $as_echo "$PKG_CONFIG" >&6; }
10285 else
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287 $as_echo "no" >&6; }
10288 fi
10289
10290
10291
10292 if test "$PKG_CONFIG" = "no" ; then
10293 HAVE_GNUTLS=no
10294 else
10295 PKG_CONFIG_MIN_VERSION=0.9.0
10296 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10298 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10299
10300 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10302 $as_echo "yes" >&6; }
10303 succeeded=yes
10304
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10306 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10307 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10309 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10310
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10312 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10313 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10315 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 LIBGNUTLS_CFLAGS=""
10320 LIBGNUTLS_LIBS=""
10321 ## If we have a custom action on failure, don't print errors, but
10322 ## do set a variable so people can do so.
10323 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10324
10325 fi
10326
10327
10328
10329 else
10330 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10331 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10332 fi
10333 fi
10334
10335 if test $succeeded = yes; then
10336 HAVE_GNUTLS=yes
10337 else
10338 HAVE_GNUTLS=no
10339 fi
10340
10341 if test "${HAVE_GNUTLS}" = "yes"; then
10342
10343 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10344
10345 fi
10346 fi
10347
10348
10349
10350 HAVE_XAW3D=no
10351 LUCID_LIBW=
10352 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10353 if test "$with_xaw3d" != no; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10355 $as_echo_n "checking for xaw3d... " >&6; }
10356 if ${emacs_cv_xaw3d+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361
10362 #include <X11/Intrinsic.h>
10363 #include <X11/Xaw3d/Simple.h>
10364 int
10365 main ()
10366 {
10367
10368 ;
10369 return 0;
10370 }
10371 _ACEOF
10372 if ac_fn_c_try_link "$LINENO"; then :
10373 emacs_cv_xaw3d=yes
10374 else
10375 emacs_cv_xaw3d=no
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10379 fi
10380
10381 else
10382 emacs_cv_xaw3d=no
10383 fi
10384 if test $emacs_cv_xaw3d = yes; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10386 $as_echo "yes; using Lucid toolkit" >&6; }
10387 USE_X_TOOLKIT=LUCID
10388 HAVE_XAW3D=yes
10389 LUCID_LIBW=-lXaw3d
10390
10391 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10392
10393 else
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10397 $as_echo_n "checking for libXaw... " >&6; }
10398 if ${emacs_cv_xaw+:} false; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403
10404 #include <X11/Intrinsic.h>
10405 #include <X11/Xaw/Simple.h>
10406 int
10407 main ()
10408 {
10409
10410 ;
10411 return 0;
10412 }
10413 _ACEOF
10414 if ac_fn_c_try_link "$LINENO"; then :
10415 emacs_cv_xaw=yes
10416 else
10417 emacs_cv_xaw=no
10418 fi
10419 rm -f core conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 fi
10422
10423 if test $emacs_cv_xaw = yes; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10425 $as_echo "yes; using Lucid toolkit" >&6; }
10426 USE_X_TOOLKIT=LUCID
10427 LUCID_LIBW=-lXaw
10428 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10429 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10430 else
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10432 $as_echo "no; do not use toolkit by default" >&6; }
10433 USE_X_TOOLKIT=none
10434 fi
10435 fi
10436 fi
10437
10438 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10439
10440 LIBXTR6=
10441 if test "${USE_X_TOOLKIT}" != "none"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10443 $as_echo_n "checking X11 toolkit version... " >&6; }
10444 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10445 $as_echo_n "(cached) " >&6
10446 else
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10449 #include <X11/Intrinsic.h>
10450 int
10451 main ()
10452 {
10453 #if XtSpecificationRelease < 6
10454 fail;
10455 #endif
10456
10457 ;
10458 return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_link "$LINENO"; then :
10462 emacs_cv_x11_toolkit_version_6=yes
10463 else
10464 emacs_cv_x11_toolkit_version_6=no
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10468 fi
10469
10470 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10471 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10473 $as_echo "6 or newer" >&6; }
10474
10475 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10476
10477 LIBXTR6="-lSM -lICE"
10478 case "$opsys" in
10479 ## Use libw.a along with X11R6 Xt.
10480 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10481 esac
10482 else
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10484 $as_echo "before 6" >&6; }
10485 fi
10486
10487 OLDLIBS="$LIBS"
10488 if test x$HAVE_X11XTR6 = xyes; then
10489 LIBS="-lXt -lSM -lICE $LIBS"
10490 else
10491 LIBS="-lXt $LIBS"
10492 fi
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10494 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10495 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 ac_check_lib_save_LIBS=$LIBS
10499 LIBS="-lXmu $LIBS"
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10502
10503 /* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10506 #ifdef __cplusplus
10507 extern "C"
10508 #endif
10509 char XmuConvertStandardSelection ();
10510 int
10511 main ()
10512 {
10513 return XmuConvertStandardSelection ();
10514 ;
10515 return 0;
10516 }
10517 _ACEOF
10518 if ac_fn_c_try_link "$LINENO"; then :
10519 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10520 else
10521 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10522 fi
10523 rm -f core conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10525 LIBS=$ac_check_lib_save_LIBS
10526 fi
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10528 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10529 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
10530 cat >>confdefs.h <<_ACEOF
10531 #define HAVE_LIBXMU 1
10532 _ACEOF
10533
10534 LIBS="-lXmu $LIBS"
10535
10536 fi
10537
10538 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10539 fi
10540
10541
10542 LIBXMU=-lXmu
10543 case $opsys in
10544 ## These systems don't supply Xmu.
10545 hpux* | aix4-2 )
10546 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10547 ;;
10548 esac
10549
10550
10551 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10552 if test "${HAVE_X11}" = "yes"; then
10553 if test "${USE_X_TOOLKIT}" != "none"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10555 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10556 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 ac_check_lib_save_LIBS=$LIBS
10560 LIBS="-lXext $LIBS"
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563
10564 /* Override any GCC internal prototype to avoid an error.
10565 Use char because int might match the return type of a GCC
10566 builtin and then its argument prototype would still apply. */
10567 #ifdef __cplusplus
10568 extern "C"
10569 #endif
10570 char XShapeQueryExtension ();
10571 int
10572 main ()
10573 {
10574 return XShapeQueryExtension ();
10575 ;
10576 return 0;
10577 }
10578 _ACEOF
10579 if ac_fn_c_try_link "$LINENO"; then :
10580 ac_cv_lib_Xext_XShapeQueryExtension=yes
10581 else
10582 ac_cv_lib_Xext_XShapeQueryExtension=no
10583 fi
10584 rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 LIBS=$ac_check_lib_save_LIBS
10587 fi
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10589 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10590 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10591 cat >>confdefs.h <<_ACEOF
10592 #define HAVE_LIBXEXT 1
10593 _ACEOF
10594
10595 LIBS="-lXext $LIBS"
10596
10597 fi
10598
10599 fi
10600 fi
10601
10602 LIBXP=
10603 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10605 $as_echo_n "checking for Motif version 2.1... " >&6; }
10606 if ${emacs_cv_motif_version_2_1+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #include <Xm/Xm.h>
10612 int
10613 main ()
10614 {
10615 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10616 int x = 5;
10617 #else
10618 Motif version prior to 2.1.
10619 #endif
10620 ;
10621 return 0;
10622 }
10623 _ACEOF
10624 if ac_fn_c_try_compile "$LINENO"; then :
10625 emacs_cv_motif_version_2_1=yes
10626 else
10627 emacs_cv_motif_version_2_1=no
10628 fi
10629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10630 fi
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10632 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10633 if test $emacs_cv_motif_version_2_1 = yes; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10635 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10636 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-lXp $LIBS"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 char XpCreateContext ();
10651 int
10652 main ()
10653 {
10654 return XpCreateContext ();
10655 ;
10656 return 0;
10657 }
10658 _ACEOF
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_lib_Xp_XpCreateContext=yes
10661 else
10662 ac_cv_lib_Xp_XpCreateContext=no
10663 fi
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10669 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10670 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
10671 LIBXP=-lXp
10672 fi
10673
10674 else
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10676 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10677 if ${emacs_cv_lesstif+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 # We put this in CFLAGS temporarily to precede other -I options
10681 # that might be in CFLAGS temporarily.
10682 # We put this in CPPFLAGS where it precedes the other -I options.
10683 OLD_CPPFLAGS=$CPPFLAGS
10684 OLD_CFLAGS=$CFLAGS
10685 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10686 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10689 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10690 int
10691 main ()
10692 {
10693 int x = 5;
10694 ;
10695 return 0;
10696 }
10697 _ACEOF
10698 if ac_fn_c_try_compile "$LINENO"; then :
10699 emacs_cv_lesstif=yes
10700 else
10701 emacs_cv_lesstif=no
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 fi
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10706 $as_echo "$emacs_cv_lesstif" >&6; }
10707 if test $emacs_cv_lesstif = yes; then
10708 # Make sure this -I option remains in CPPFLAGS after it is set
10709 # back to REAL_CPPFLAGS.
10710 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10711 # have those other -I options anyway. Ultimately, having this
10712 # directory ultimately in CPPFLAGS will be enough.
10713 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10714 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10715 else
10716 CFLAGS=$OLD_CFLAGS
10717 CPPFLAGS=$OLD_CPPFLAGS
10718 fi
10719 fi
10720 fi
10721
10722
10723 USE_TOOLKIT_SCROLL_BARS=no
10724 if test "${with_toolkit_scroll_bars}" != "no"; then
10725 if test "${USE_X_TOOLKIT}" != "none"; then
10726 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10727 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10728
10729 HAVE_XAW3D=no
10730 USE_TOOLKIT_SCROLL_BARS=yes
10731 elif test "${HAVE_XAW3D}" = "yes"; then
10732 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10733
10734 USE_TOOLKIT_SCROLL_BARS=yes
10735 fi
10736 elif test "${HAVE_GTK}" = "yes"; then
10737 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10738
10739 USE_TOOLKIT_SCROLL_BARS=yes
10740 elif test "${HAVE_NS}" = "yes"; then
10741 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10742
10743 USE_TOOLKIT_SCROLL_BARS=yes
10744 fi
10745 fi
10746
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10749
10750 #include <X11/Xlib.h>
10751 #include <X11/Xresource.h>
10752 int
10753 main ()
10754 {
10755 XIMProc callback;
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 if ac_fn_c_try_compile "$LINENO"; then :
10761 HAVE_XIM=yes
10762
10763 $as_echo "#define HAVE_XIM 1" >>confdefs.h
10764
10765 else
10766 HAVE_XIM=no
10767 fi
10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769
10770
10771 if test "${with_xim}" != "no"; then
10772
10773 $as_echo "#define USE_XIM 1" >>confdefs.h
10774
10775 fi
10776
10777
10778 if test "${HAVE_XIM}" != "no"; then
10779 late_CFLAGS=$CFLAGS
10780 if test "$GCC" = yes; then
10781 CFLAGS="$CFLAGS --pedantic-errors"
10782 fi
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785
10786 #include <X11/Xlib.h>
10787 #include <X11/Xresource.h>
10788 int
10789 main ()
10790 {
10791 Display *display;
10792 XrmDatabase db;
10793 char *res_name;
10794 char *res_class;
10795 XIMProc callback;
10796 XPointer *client_data;
10797 #ifndef __GNUC__
10798 /* If we're not using GCC, it's probably not XFree86, and this is
10799 probably right, but we can't use something like --pedantic-errors. */
10800 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10801 char*, XIMProc, XPointer*);
10802 #endif
10803 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10804 client_data);
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 if ac_fn_c_try_compile "$LINENO"; then :
10810 emacs_cv_arg6_star=yes
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 if test "$emacs_cv_arg6_star" = yes; then
10814 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
10815
10816 else
10817 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
10818
10819 fi
10820 CFLAGS=$late_CFLAGS
10821 fi
10822
10823 ### Start of font-backend (under any platform) section.
10824 # (nothing here yet -- this is a placeholder)
10825 ### End of font-backend (under any platform) section.
10826
10827 ### Start of font-backend (under X11) section.
10828 if test "${HAVE_X11}" = "yes"; then
10829
10830 succeeded=no
10831
10832 # Extract the first word of "pkg-config", so it can be a program name with args.
10833 set dummy pkg-config; ac_word=$2
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10835 $as_echo_n "checking for $ac_word... " >&6; }
10836 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 case $PKG_CONFIG in
10840 [\\/]* | ?:[\\/]*)
10841 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10842 ;;
10843 *)
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH
10846 do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10851 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855 done
10856 done
10857 IFS=$as_save_IFS
10858
10859 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10860 ;;
10861 esac
10862 fi
10863 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10864 if test -n "$PKG_CONFIG"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10866 $as_echo "$PKG_CONFIG" >&6; }
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10870 fi
10871
10872
10873
10874 if test "$PKG_CONFIG" = "no" ; then
10875 HAVE_FC=no
10876 else
10877 PKG_CONFIG_MIN_VERSION=0.9.0
10878 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10880 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10881
10882 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; }
10885 succeeded=yes
10886
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10888 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10889 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10891 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10892
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10894 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10895 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10897 $as_echo "$FONTCONFIG_LIBS" >&6; }
10898 else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10901 FONTCONFIG_CFLAGS=""
10902 FONTCONFIG_LIBS=""
10903 ## If we have a custom action on failure, don't print errors, but
10904 ## do set a variable so people can do so.
10905 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10906
10907 fi
10908
10909
10910
10911 else
10912 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10913 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10914 fi
10915 fi
10916
10917 if test $succeeded = yes; then
10918 HAVE_FC=yes
10919 else
10920 HAVE_FC=no
10921 fi
10922
10923
10924 ## Use -lXft if available, unless `--with-xft=no'.
10925 HAVE_XFT=maybe
10926 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10927 with_xft="no";
10928 fi
10929 if test "x${with_xft}" != "xno"; then
10930
10931
10932 succeeded=no
10933
10934 # Extract the first word of "pkg-config", so it can be a program name with args.
10935 set dummy pkg-config; ac_word=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 case $PKG_CONFIG in
10942 [\\/]* | ?:[\\/]*)
10943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10944 ;;
10945 *)
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10948 do
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10953 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 break 2
10956 fi
10957 done
10958 done
10959 IFS=$as_save_IFS
10960
10961 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10962 ;;
10963 esac
10964 fi
10965 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10966 if test -n "$PKG_CONFIG"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10968 $as_echo "$PKG_CONFIG" >&6; }
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 fi
10973
10974
10975
10976 if test "$PKG_CONFIG" = "no" ; then
10977 HAVE_XFT=no
10978 else
10979 PKG_CONFIG_MIN_VERSION=0.9.0
10980 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10982 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10983
10984 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10986 $as_echo "yes" >&6; }
10987 succeeded=yes
10988
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10990 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10991 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10993 $as_echo "$XFT_CFLAGS" >&6; }
10994
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10996 $as_echo_n "checking XFT_LIBS... " >&6; }
10997 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10999 $as_echo "$XFT_LIBS" >&6; }
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11003 XFT_CFLAGS=""
11004 XFT_LIBS=""
11005 ## If we have a custom action on failure, don't print errors, but
11006 ## do set a variable so people can do so.
11007 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11008
11009 fi
11010
11011
11012
11013 else
11014 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11015 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11016 fi
11017 fi
11018
11019 if test $succeeded = yes; then
11020 :
11021 else
11022 HAVE_XFT=no
11023 fi
11024
11025 ## Because xftfont.c uses XRenderQueryExtension, we also
11026 ## need to link to -lXrender.
11027 HAVE_XRENDER=no
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11029 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11030 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 ac_check_lib_save_LIBS=$LIBS
11034 LIBS="-lXrender $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char XRenderQueryExtension ();
11045 int
11046 main ()
11047 {
11048 return XRenderQueryExtension ();
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11055 else
11056 ac_cv_lib_Xrender_XRenderQueryExtension=no
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11063 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11064 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11065 HAVE_XRENDER=yes
11066 fi
11067
11068 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11069 OLD_CPPFLAGS="$CPPFLAGS"
11070 OLD_CFLAGS="$CFLAGS"
11071 OLD_LIBS="$LIBS"
11072 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11073 CFLAGS="$CFLAGS $XFT_CFLAGS"
11074 XFT_LIBS="-lXrender $XFT_LIBS"
11075 LIBS="$XFT_LIBS $LIBS"
11076 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11077 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11079 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11080 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 ac_check_lib_save_LIBS=$LIBS
11084 LIBS="-lXft $XFT_LIBS $LIBS"
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11091 #ifdef __cplusplus
11092 extern "C"
11093 #endif
11094 char XftFontOpen ();
11095 int
11096 main ()
11097 {
11098 return XftFontOpen ();
11099 ;
11100 return 0;
11101 }
11102 _ACEOF
11103 if ac_fn_c_try_link "$LINENO"; then :
11104 ac_cv_lib_Xft_XftFontOpen=yes
11105 else
11106 ac_cv_lib_Xft_XftFontOpen=no
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110 LIBS=$ac_check_lib_save_LIBS
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11113 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11114 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11115 HAVE_XFT=yes
11116 fi
11117
11118 fi
11119
11120
11121
11122 if test "${HAVE_XFT}" = "yes"; then
11123
11124 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11125
11126
11127 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11128 else
11129 CPPFLAGS="$OLD_CPPFLAGS"
11130 CFLAGS="$OLD_CFLAGS"
11131 LIBS="$OLD_LIBS"
11132 fi # "${HAVE_XFT}" = "yes"
11133 fi # "$HAVE_XFT" != no
11134 fi # "x${with_xft}" != "xno"
11135
11136 if test "$HAVE_XFT" != "yes"; then
11137 HAVE_XFT=no
11138 fi
11139
11140
11141 HAVE_FREETYPE=no
11142 ## We used to allow building with FreeType and without Xft.
11143 ## However, the ftx font backend driver is not in good shape.
11144 if test "${HAVE_XFT}" = "yes"; then
11145 HAVE_FREETYPE=yes
11146 FONTCONFIG_CFLAGS=
11147 FONTCONFIG_LIBS=
11148 fi
11149
11150 HAVE_LIBOTF=no
11151 if test "${HAVE_FREETYPE}" = "yes"; then
11152
11153 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11154
11155 if test "${with_libotf}" != "no"; then
11156
11157 succeeded=no
11158
11159 # Extract the first word of "pkg-config", so it can be a program name with args.
11160 set dummy pkg-config; ac_word=$2
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162 $as_echo_n "checking for $ac_word... " >&6; }
11163 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 case $PKG_CONFIG in
11167 [\\/]* | ?:[\\/]*)
11168 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11169 ;;
11170 *)
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11173 do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 break 2
11181 fi
11182 done
11183 done
11184 IFS=$as_save_IFS
11185
11186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11187 ;;
11188 esac
11189 fi
11190 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11191 if test -n "$PKG_CONFIG"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11193 $as_echo "$PKG_CONFIG" >&6; }
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; }
11197 fi
11198
11199
11200
11201 if test "$PKG_CONFIG" = "no" ; then
11202 HAVE_LIBOTF=no
11203 else
11204 PKG_CONFIG_MIN_VERSION=0.9.0
11205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11207 $as_echo_n "checking for libotf... " >&6; }
11208
11209 if $PKG_CONFIG --exists "libotf" 2>&5; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211 $as_echo "yes" >&6; }
11212 succeeded=yes
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11215 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11216 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11218 $as_echo "$LIBOTF_CFLAGS" >&6; }
11219
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11221 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11222 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11224 $as_echo "$LIBOTF_LIBS" >&6; }
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11228 LIBOTF_CFLAGS=""
11229 LIBOTF_LIBS=""
11230 ## If we have a custom action on failure, don't print errors, but
11231 ## do set a variable so people can do so.
11232 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11233
11234 fi
11235
11236
11237
11238 else
11239 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11240 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11241 fi
11242 fi
11243
11244 if test $succeeded = yes; then
11245 HAVE_LIBOTF=yes
11246 else
11247 HAVE_LIBOTF=no
11248 fi
11249
11250 if test "$HAVE_LIBOTF" = "yes"; then
11251
11252 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11253
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11255 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11256 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 ac_check_lib_save_LIBS=$LIBS
11260 LIBS="-lotf $LIBS"
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11263
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11267 #ifdef __cplusplus
11268 extern "C"
11269 #endif
11270 char OTF_get_variation_glyphs ();
11271 int
11272 main ()
11273 {
11274 return OTF_get_variation_glyphs ();
11275 ;
11276 return 0;
11277 }
11278 _ACEOF
11279 if ac_fn_c_try_link "$LINENO"; then :
11280 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11281 else
11282 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11283 fi
11284 rm -f core conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
11286 LIBS=$ac_check_lib_save_LIBS
11287 fi
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11289 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11290 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11291 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11292 else
11293 HAVE_OTF_GET_VARIATION_GLYPHS=no
11294 fi
11295
11296 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11297
11298 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11299
11300 fi
11301 fi
11302 fi
11303 fi
11304
11305 HAVE_M17N_FLT=no
11306 if test "${HAVE_LIBOTF}" = yes; then
11307 if test "${with_m17n_flt}" != "no"; then
11308
11309 succeeded=no
11310
11311 # Extract the first word of "pkg-config", so it can be a program name with args.
11312 set dummy pkg-config; ac_word=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 case $PKG_CONFIG in
11319 [\\/]* | ?:[\\/]*)
11320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11321 ;;
11322 *)
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334 done
11335 done
11336 IFS=$as_save_IFS
11337
11338 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11339 ;;
11340 esac
11341 fi
11342 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11343 if test -n "$PKG_CONFIG"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11345 $as_echo "$PKG_CONFIG" >&6; }
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11349 fi
11350
11351
11352
11353 if test "$PKG_CONFIG" = "no" ; then
11354 HAVE_M17N_FLT=no
11355 else
11356 PKG_CONFIG_MIN_VERSION=0.9.0
11357 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11359 $as_echo_n "checking for m17n-flt... " >&6; }
11360
11361 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11363 $as_echo "yes" >&6; }
11364 succeeded=yes
11365
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11367 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11368 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11370 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11371
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11373 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11374 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11376 $as_echo "$M17N_FLT_LIBS" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 M17N_FLT_CFLAGS=""
11381 M17N_FLT_LIBS=""
11382 ## If we have a custom action on failure, don't print errors, but
11383 ## do set a variable so people can do so.
11384 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11385
11386 fi
11387
11388
11389
11390 else
11391 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11392 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11393 fi
11394 fi
11395
11396 if test $succeeded = yes; then
11397 HAVE_M17N_FLT=yes
11398 else
11399 HAVE_M17N_FLT=no
11400 fi
11401
11402 if test "$HAVE_M17N_FLT" = "yes"; then
11403
11404 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11405
11406 fi
11407 fi
11408 fi
11409 else
11410 HAVE_XFT=no
11411 HAVE_FREETYPE=no
11412 HAVE_LIBOTF=no
11413 HAVE_M17N_FLT=no
11414 fi
11415
11416 ### End of font-backend (under X11) section.
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427 ### Use -lXpm if available, unless `--with-xpm=no'.
11428 HAVE_XPM=no
11429 LIBXPM=
11430 if test "${HAVE_X11}" = "yes"; then
11431 if test "${with_xpm}" != "no"; then
11432 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11433 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11435 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11436 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 ac_check_lib_save_LIBS=$LIBS
11440 LIBS="-lXpm -lX11 $LIBS"
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h. */
11443
11444 /* Override any GCC internal prototype to avoid an error.
11445 Use char because int might match the return type of a GCC
11446 builtin and then its argument prototype would still apply. */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 char XpmReadFileToPixmap ();
11451 int
11452 main ()
11453 {
11454 return XpmReadFileToPixmap ();
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_link "$LINENO"; then :
11460 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11461 else
11462 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext \
11465 conftest$ac_exeext conftest.$ac_ext
11466 LIBS=$ac_check_lib_save_LIBS
11467 fi
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11469 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11470 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11471 HAVE_XPM=yes
11472 fi
11473
11474 fi
11475
11476
11477 if test "${HAVE_XPM}" = "yes"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11479 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482 #include "X11/xpm.h"
11483 #ifndef XpmReturnAllocPixels
11484 no_return_alloc_pixels
11485 #endif
11486
11487 _ACEOF
11488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11489 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11490 HAVE_XPM=no
11491 else
11492 HAVE_XPM=yes
11493 fi
11494 rm -f conftest*
11495
11496
11497 if test "${HAVE_XPM}" = "yes"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504 fi
11505 fi
11506
11507 if test "${HAVE_XPM}" = "yes"; then
11508
11509 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11510
11511 LIBXPM=-lXpm
11512 fi
11513 fi
11514
11515
11516 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11517 HAVE_JPEG=no
11518 LIBJPEG=
11519 if test "${HAVE_X11}" = "yes"; then
11520 if test "${with_jpeg}" != "no"; then
11521 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11522 if test "x$ac_cv_header_jerror_h" = xyes; then :
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11524 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11525 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 ac_check_lib_save_LIBS=$LIBS
11529 LIBS="-ljpeg $LIBS"
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11532
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char jpeg_destroy_compress ();
11540 int
11541 main ()
11542 {
11543 return jpeg_destroy_compress ();
11544 ;
11545 return 0;
11546 }
11547 _ACEOF
11548 if ac_fn_c_try_link "$LINENO"; then :
11549 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11550 else
11551 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11552 fi
11553 rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11556 fi
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11558 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11559 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
11560 HAVE_JPEG=yes
11561 fi
11562
11563 fi
11564
11565
11566 fi
11567
11568 if test "${HAVE_JPEG}" = "yes"; then
11569 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11570
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573 #include <jpeglib.h>
11574 version=JPEG_LIB_VERSION
11575
11576 _ACEOF
11577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11579 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11580
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11583 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11584 HAVE_JPEG=no
11585 fi
11586 rm -f conftest*
11587
11588 fi
11589 if test "${HAVE_JPEG}" = "yes"; then
11590 LIBJPEG=-ljpeg
11591 fi
11592 fi
11593
11594
11595 ### Use -lpng if available, unless `--with-png=no'.
11596 HAVE_PNG=no
11597 LIBPNG=
11598 if test "${HAVE_X11}" = "yes"; then
11599 if test "${with_png}" != "no"; then
11600 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11601 # in /usr/include/libpng.
11602 for ac_header in png.h libpng/png.h
11603 do :
11604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11605 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11607 cat >>confdefs.h <<_ACEOF
11608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11609 _ACEOF
11610
11611 fi
11612
11613 done
11614
11615 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11617 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11618 if ${ac_cv_lib_png_png_get_channels+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 ac_check_lib_save_LIBS=$LIBS
11622 LIBS="-lpng -lz -lm $LIBS"
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11625
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629 #ifdef __cplusplus
11630 extern "C"
11631 #endif
11632 char png_get_channels ();
11633 int
11634 main ()
11635 {
11636 return png_get_channels ();
11637 ;
11638 return 0;
11639 }
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_png_png_get_channels=yes
11643 else
11644 ac_cv_lib_png_png_get_channels=no
11645 fi
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11651 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11652 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
11653 HAVE_PNG=yes
11654 fi
11655
11656 fi
11657 fi
11658
11659 if test "${HAVE_PNG}" = "yes"; then
11660
11661 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11662
11663 LIBPNG="-lpng -lz -lm"
11664 fi
11665 fi
11666
11667
11668 ### Use -ltiff if available, unless `--with-tiff=no'.
11669 HAVE_TIFF=no
11670 LIBTIFF=
11671 if test "${HAVE_X11}" = "yes"; then
11672 if test "${with_tiff}" != "no"; then
11673 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11674 if test "x$ac_cv_header_tiffio_h" = xyes; then :
11675 tifflibs="-lz -lm"
11676 # At least one tiff package requires the jpeg library.
11677 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11679 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11680 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-ltiff $tifflibs $LIBS"
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687
11688 /* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11691 #ifdef __cplusplus
11692 extern "C"
11693 #endif
11694 char TIFFGetVersion ();
11695 int
11696 main ()
11697 {
11698 return TIFFGetVersion ();
11699 ;
11700 return 0;
11701 }
11702 _ACEOF
11703 if ac_fn_c_try_link "$LINENO"; then :
11704 ac_cv_lib_tiff_TIFFGetVersion=yes
11705 else
11706 ac_cv_lib_tiff_TIFFGetVersion=no
11707 fi
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 LIBS=$ac_check_lib_save_LIBS
11711 fi
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11713 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11714 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
11715 HAVE_TIFF=yes
11716 fi
11717
11718 fi
11719
11720
11721 fi
11722
11723 if test "${HAVE_TIFF}" = "yes"; then
11724
11725 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11726
11727 LIBTIFF=-ltiff
11728 fi
11729 fi
11730
11731
11732 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11733 HAVE_GIF=no
11734 LIBGIF=
11735 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11736 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11737 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
11738 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11739 # Earlier versions can crash Emacs.
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11741 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11742 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 ac_check_lib_save_LIBS=$LIBS
11746 LIBS="-lgif $LIBS"
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11753 #ifdef __cplusplus
11754 extern "C"
11755 #endif
11756 char EGifPutExtensionLast ();
11757 int
11758 main ()
11759 {
11760 return EGifPutExtensionLast ();
11761 ;
11762 return 0;
11763 }
11764 _ACEOF
11765 if ac_fn_c_try_link "$LINENO"; then :
11766 ac_cv_lib_gif_EGifPutExtensionLast=yes
11767 else
11768 ac_cv_lib_gif_EGifPutExtensionLast=no
11769 fi
11770 rm -f core conftest.err conftest.$ac_objext \
11771 conftest$ac_exeext conftest.$ac_ext
11772 LIBS=$ac_check_lib_save_LIBS
11773 fi
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11775 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
11776 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
11777 HAVE_GIF=yes
11778 else
11779 HAVE_GIF=maybe
11780 fi
11781
11782 fi
11783
11784
11785
11786 if test "$HAVE_GIF" = yes; then
11787 LIBGIF=-lgif
11788 elif test "$HAVE_GIF" = maybe; then
11789 # If gif_lib.h but no libgif, try libungif.
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
11791 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
11792 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 ac_check_lib_save_LIBS=$LIBS
11796 LIBS="-lungif $LIBS"
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11799
11800 /* Override any GCC internal prototype to avoid an error.
11801 Use char because int might match the return type of a GCC
11802 builtin and then its argument prototype would still apply. */
11803 #ifdef __cplusplus
11804 extern "C"
11805 #endif
11806 char EGifPutExtensionLast ();
11807 int
11808 main ()
11809 {
11810 return EGifPutExtensionLast ();
11811 ;
11812 return 0;
11813 }
11814 _ACEOF
11815 if ac_fn_c_try_link "$LINENO"; then :
11816 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11817 else
11818 ac_cv_lib_ungif_EGifPutExtensionLast=no
11819 fi
11820 rm -f core conftest.err conftest.$ac_objext \
11821 conftest$ac_exeext conftest.$ac_ext
11822 LIBS=$ac_check_lib_save_LIBS
11823 fi
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11825 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
11826 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
11827 HAVE_GIF=yes
11828 else
11829 HAVE_GIF=no
11830 fi
11831
11832 test "$HAVE_GIF" = yes && LIBGIF=-lungif
11833 fi
11834
11835 if test "${HAVE_GIF}" = "yes"; then
11836
11837 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11838
11839 fi
11840 fi
11841
11842
11843 if test "${HAVE_X11}" = "yes"; then
11844 MISSING=""
11845 WITH_NO=""
11846 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11847 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11848 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11849 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11850 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11851 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11852 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11853 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11854 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11855 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11856
11857 if test "X${MISSING}" != X; then
11858 as_fn_error $? "The following required libraries were not found:
11859 $MISSING
11860 Maybe some development libraries/packages are missing?
11861 If you don't want to link with them give
11862 $WITH_NO
11863 as options to configure" "$LINENO" 5
11864 fi
11865 fi
11866
11867 ### Use -lgpm if available, unless `--with-gpm=no'.
11868 HAVE_GPM=no
11869 LIBGPM=
11870 MOUSE_SUPPORT=
11871 if test "${with_gpm}" != "no"; then
11872 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_gpm_h" = xyes; then :
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11875 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11876 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-lgpm $LIBS"
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char Gpm_Open ();
11891 int
11892 main ()
11893 {
11894 return Gpm_Open ();
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 ac_cv_lib_gpm_Gpm_Open=yes
11901 else
11902 ac_cv_lib_gpm_Gpm_Open=no
11903 fi
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11909 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11910 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
11911 HAVE_GPM=yes
11912 fi
11913
11914 fi
11915
11916
11917
11918 if test "${HAVE_GPM}" = "yes"; then
11919
11920 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11921
11922 LIBGPM=-lgpm
11923 ## May be reset below.
11924 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11925 fi
11926 fi
11927
11928
11929 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11930 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
11931
11932 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11933
11934 fi
11935
11936
11937
11938 C_SWITCH_X_SYSTEM=
11939 ### Use NeXTstep API to implement GUI.
11940 if test "${HAVE_NS}" = "yes"; then
11941
11942 $as_echo "#define HAVE_NS 1" >>confdefs.h
11943
11944 if test "${NS_IMPL_COCOA}" = "yes"; then
11945
11946 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11947
11948 GNU_OBJC_CFLAGS=
11949 fi
11950 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11951
11952 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11953
11954 # See also .m.o rule in Makefile.in */
11955 # FIXME: are all these flags really needed? Document here why. */
11956 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11957 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11958 fi
11959 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11960
11961 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11962
11963 fi
11964 # We also have mouse menus.
11965 HAVE_MENUS=yes
11966 OTHER_FILES=ns-app
11967 fi
11968
11969
11970 ### Use session management (-lSM -lICE) if available
11971 HAVE_X_SM=no
11972 LIBXSM=
11973 if test "${HAVE_X11}" = "yes"; then
11974 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11975 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11977 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11978 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 ac_check_lib_save_LIBS=$LIBS
11982 LIBS="-lSM -lICE $LIBS"
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 char SmcOpenConnection ();
11993 int
11994 main ()
11995 {
11996 return SmcOpenConnection ();
11997 ;
11998 return 0;
11999 }
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 ac_cv_lib_SM_SmcOpenConnection=yes
12003 else
12004 ac_cv_lib_SM_SmcOpenConnection=no
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12011 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12012 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12013 HAVE_X_SM=yes
12014 fi
12015
12016 fi
12017
12018
12019
12020 if test "${HAVE_X_SM}" = "yes"; then
12021
12022 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12023
12024 LIBXSM="-lSM -lICE"
12025 case "$LIBS" in
12026 *-lSM*) ;;
12027 *) LIBS="$LIBXSM $LIBS" ;;
12028 esac
12029 fi
12030 fi
12031
12032
12033 ### Use libxml (-lxml2) if available
12034 if test "${with_xml2}" != "no"; then
12035 ### I'm not sure what the version number should be, so I just guessed.
12036
12037 succeeded=no
12038
12039 # Extract the first word of "pkg-config", so it can be a program name with args.
12040 set dummy pkg-config; ac_word=$2
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042 $as_echo_n "checking for $ac_word... " >&6; }
12043 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 case $PKG_CONFIG in
12047 [\\/]* | ?:[\\/]*)
12048 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12049 ;;
12050 *)
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12053 do
12054 IFS=$as_save_IFS
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12058 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060 break 2
12061 fi
12062 done
12063 done
12064 IFS=$as_save_IFS
12065
12066 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12067 ;;
12068 esac
12069 fi
12070 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12071 if test -n "$PKG_CONFIG"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12073 $as_echo "$PKG_CONFIG" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077 fi
12078
12079
12080
12081 if test "$PKG_CONFIG" = "no" ; then
12082 HAVE_LIBXML2=no
12083 else
12084 PKG_CONFIG_MIN_VERSION=0.9.0
12085 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
12087 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
12088
12089 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091 $as_echo "yes" >&6; }
12092 succeeded=yes
12093
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12095 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12096 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12098 $as_echo "$LIBXML2_CFLAGS" >&6; }
12099
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12101 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12102 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12104 $as_echo "$LIBXML2_LIBS" >&6; }
12105 else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 LIBXML2_CFLAGS=""
12109 LIBXML2_LIBS=""
12110 ## If we have a custom action on failure, don't print errors, but
12111 ## do set a variable so people can do so.
12112 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
12113
12114 fi
12115
12116
12117
12118 else
12119 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12120 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12121 fi
12122 fi
12123
12124 if test $succeeded = yes; then
12125 HAVE_LIBXML2=yes
12126 else
12127 HAVE_LIBXML2=no
12128 fi
12129
12130 if test "${HAVE_LIBXML2}" = "yes"; then
12131 LIBS="$LIBXML2_LIBS $LIBS"
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12133 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12134 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lxml2 $LIBS"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char htmlReadMemory ();
12149 int
12150 main ()
12151 {
12152 return htmlReadMemory ();
12153 ;
12154 return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_link "$LINENO"; then :
12158 ac_cv_lib_xml2_htmlReadMemory=yes
12159 else
12160 ac_cv_lib_xml2_htmlReadMemory=no
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext \
12163 conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12167 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12168 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12169 HAVE_LIBXML2=yes
12170 else
12171 HAVE_LIBXML2=no
12172 fi
12173
12174 if test "${HAVE_LIBXML2}" = "yes"; then
12175
12176 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12177
12178 else
12179 LIBXML2_LIBS=""
12180 LIBXML2_CFLAGS=""
12181 fi
12182 fi
12183 fi
12184
12185
12186
12187 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12189 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12190 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195 #include <netdb.h>
12196 int
12197 main ()
12198 {
12199 return h_errno;
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 emacs_cv_netdb_declares_h_errno=yes
12206 else
12207 emacs_cv_netdb_declares_h_errno=no
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 fi
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12213 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12214 if test $emacs_cv_netdb_declares_h_errno = yes; then
12215
12216 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12217
12218 fi
12219
12220 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12221 if test "x$ac_cv_type_size_t" = xyes; then :
12222
12223 else
12224
12225 cat >>confdefs.h <<_ACEOF
12226 #define size_t unsigned int
12227 _ACEOF
12228
12229 fi
12230
12231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12232 # for constant arguments. Useless!
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12234 $as_echo_n "checking for working alloca.h... " >&6; }
12235 if ${ac_cv_working_alloca_h+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240 #include <alloca.h>
12241 int
12242 main ()
12243 {
12244 char *p = (char *) alloca (2 * sizeof (int));
12245 if (p) return 0;
12246 ;
12247 return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"; then :
12251 ac_cv_working_alloca_h=yes
12252 else
12253 ac_cv_working_alloca_h=no
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12257 fi
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12259 $as_echo "$ac_cv_working_alloca_h" >&6; }
12260 if test $ac_cv_working_alloca_h = yes; then
12261
12262 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12263
12264 fi
12265
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12267 $as_echo_n "checking for alloca... " >&6; }
12268 if ${ac_cv_func_alloca_works+:} false; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12273 #ifdef __GNUC__
12274 # define alloca __builtin_alloca
12275 #else
12276 # ifdef _MSC_VER
12277 # include <malloc.h>
12278 # define alloca _alloca
12279 # else
12280 # ifdef HAVE_ALLOCA_H
12281 # include <alloca.h>
12282 # else
12283 # ifdef _AIX
12284 #pragma alloca
12285 # else
12286 # ifndef alloca /* predefined by HP cc +Olibcalls */
12287 void *alloca (size_t);
12288 # endif
12289 # endif
12290 # endif
12291 # endif
12292 #endif
12293
12294 int
12295 main ()
12296 {
12297 char *p = (char *) alloca (1);
12298 if (p) return 0;
12299 ;
12300 return 0;
12301 }
12302 _ACEOF
12303 if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_func_alloca_works=yes
12305 else
12306 ac_cv_func_alloca_works=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12312 $as_echo "$ac_cv_func_alloca_works" >&6; }
12313
12314 if test $ac_cv_func_alloca_works = yes; then
12315
12316 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12317
12318 else
12319 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12320 # that cause trouble. Some versions do not even contain alloca or
12321 # contain a buggy version. If you still want to use their alloca,
12322 # use ar to extract alloca.o from them instead of compiling alloca.c.
12323
12324 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12325
12326 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12327
12328
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12330 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12331 if ${ac_cv_os_cray+:} false; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336 #if defined CRAY && ! defined CRAY2
12337 webecray
12338 #else
12339 wenotbecray
12340 #endif
12341
12342 _ACEOF
12343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12344 $EGREP "webecray" >/dev/null 2>&1; then :
12345 ac_cv_os_cray=yes
12346 else
12347 ac_cv_os_cray=no
12348 fi
12349 rm -f conftest*
12350
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12353 $as_echo "$ac_cv_os_cray" >&6; }
12354 if test $ac_cv_os_cray = yes; then
12355 for ac_func in _getb67 GETB67 getb67; do
12356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12358 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12359
12360 cat >>confdefs.h <<_ACEOF
12361 #define CRAY_STACKSEG_END $ac_func
12362 _ACEOF
12363
12364 break
12365 fi
12366
12367 done
12368 fi
12369
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12371 $as_echo_n "checking stack direction for C alloca... " >&6; }
12372 if ${ac_cv_c_stack_direction+:} false; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 if test "$cross_compiling" = yes; then :
12376 ac_cv_c_stack_direction=0
12377 else
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 $ac_includes_default
12381 int
12382 find_stack_direction ()
12383 {
12384 static char *addr = 0;
12385 auto char dummy;
12386 if (addr == 0)
12387 {
12388 addr = &dummy;
12389 return find_stack_direction ();
12390 }
12391 else
12392 return (&dummy > addr) ? 1 : -1;
12393 }
12394
12395 int
12396 main ()
12397 {
12398 return find_stack_direction () < 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_run "$LINENO"; then :
12402 ac_cv_c_stack_direction=1
12403 else
12404 ac_cv_c_stack_direction=-1
12405 fi
12406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12407 conftest.$ac_objext conftest.beam conftest.$ac_ext
12408 fi
12409
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12412 $as_echo "$ac_cv_c_stack_direction" >&6; }
12413 cat >>confdefs.h <<_ACEOF
12414 #define STACK_DIRECTION $ac_cv_c_stack_direction
12415 _ACEOF
12416
12417
12418 fi
12419
12420
12421 if test x"$ac_cv_func_alloca_works" != xyes; then
12422 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12423 fi
12424
12425 # fmod, logb, and frexp are found in -lm on most systems.
12426 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12428 $as_echo_n "checking for sqrt in -lm... " >&6; }
12429 if ${ac_cv_lib_m_sqrt+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 ac_check_lib_save_LIBS=$LIBS
12433 LIBS="-lm $LIBS"
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12440 #ifdef __cplusplus
12441 extern "C"
12442 #endif
12443 char sqrt ();
12444 int
12445 main ()
12446 {
12447 return sqrt ();
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"; then :
12453 ac_cv_lib_m_sqrt=yes
12454 else
12455 ac_cv_lib_m_sqrt=no
12456 fi
12457 rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459 LIBS=$ac_check_lib_save_LIBS
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12462 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12463 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12464 cat >>confdefs.h <<_ACEOF
12465 #define HAVE_LIBM 1
12466 _ACEOF
12467
12468 LIBS="-lm $LIBS"
12469
12470 fi
12471
12472
12473 # Check for mail-locking functions in a "mail" library. Probably this should
12474 # have the same check as for liblockfile below.
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12476 $as_echo_n "checking for maillock in -lmail... " >&6; }
12477 if ${ac_cv_lib_mail_maillock+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 ac_check_lib_save_LIBS=$LIBS
12481 LIBS="-lmail $LIBS"
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484
12485 /* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 char maillock ();
12492 int
12493 main ()
12494 {
12495 return maillock ();
12496 ;
12497 return 0;
12498 }
12499 _ACEOF
12500 if ac_fn_c_try_link "$LINENO"; then :
12501 ac_cv_lib_mail_maillock=yes
12502 else
12503 ac_cv_lib_mail_maillock=no
12504 fi
12505 rm -f core conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
12507 LIBS=$ac_check_lib_save_LIBS
12508 fi
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12510 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12511 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
12512 have_mail=yes
12513 else
12514 have_mail=no
12515 fi
12516
12517 if test $have_mail = yes; then
12518 LIBS_MAIL=-lmail
12519 LIBS="$LIBS_MAIL $LIBS"
12520
12521 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12522
12523 else
12524 LIBS_MAIL=
12525 fi
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12527 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12528 if ${ac_cv_lib_lockfile_maillock+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 ac_check_lib_save_LIBS=$LIBS
12532 LIBS="-llockfile $LIBS"
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535
12536 /* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12539 #ifdef __cplusplus
12540 extern "C"
12541 #endif
12542 char maillock ();
12543 int
12544 main ()
12545 {
12546 return maillock ();
12547 ;
12548 return 0;
12549 }
12550 _ACEOF
12551 if ac_fn_c_try_link "$LINENO"; then :
12552 ac_cv_lib_lockfile_maillock=yes
12553 else
12554 ac_cv_lib_lockfile_maillock=no
12555 fi
12556 rm -f core conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12558 LIBS=$ac_check_lib_save_LIBS
12559 fi
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12561 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12562 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
12563 have_lockfile=yes
12564 else
12565 have_lockfile=no
12566 fi
12567
12568 if test $have_lockfile = yes; then
12569 LIBS_MAIL=-llockfile
12570 LIBS="$LIBS_MAIL $LIBS"
12571
12572 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12573
12574 else
12575 # If we have the shared liblockfile, assume we must use it for mail
12576 # locking (e.g. Debian). If we couldn't link against liblockfile
12577 # (no liblockfile.a installed), ensure that we don't need to.
12578 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12579 set dummy liblockfile.so; ac_word=$2
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581 $as_echo_n "checking for $ac_word... " >&6; }
12582 if ${ac_cv_prog_liblockfile+:} false; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 if test -n "$liblockfile"; then
12586 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12587 else
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12590 for as_dir in $as_dummy
12591 do
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596 ac_cv_prog_liblockfile="yes"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12599 fi
12600 done
12601 done
12602 IFS=$as_save_IFS
12603
12604 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12605 fi
12606 fi
12607 liblockfile=$ac_cv_prog_liblockfile
12608 if test -n "$liblockfile"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12610 $as_echo "$liblockfile" >&6; }
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12614 fi
12615
12616
12617 if test $ac_cv_prog_liblockfile = yes; then
12618 as_fn_error $? "Shared liblockfile found but can't link against it.
12619 This probably means that movemail could lose mail.
12620 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12621 fi
12622 fi
12623 for ac_func in touchlock
12624 do :
12625 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12626 if test "x$ac_cv_func_touchlock" = xyes; then :
12627 cat >>confdefs.h <<_ACEOF
12628 #define HAVE_TOUCHLOCK 1
12629 _ACEOF
12630
12631 fi
12632 done
12633
12634 for ac_header in maillock.h
12635 do :
12636 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12637 if test "x$ac_cv_header_maillock_h" = xyes; then :
12638 cat >>confdefs.h <<_ACEOF
12639 #define HAVE_MAILLOCK_H 1
12640 _ACEOF
12641
12642 fi
12643
12644 done
12645
12646
12647
12648 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12649 ## interlock access to the mail spool. The alternative is a lock file named
12650 ## /usr/spool/mail/$USER.lock.
12651 mail_lock=no
12652 case "$opsys" in
12653 aix4-2) mail_lock="lockf" ;;
12654
12655 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12656
12657 ## On GNU/Linux systems, both methods are used by various mail programs.
12658 ## I assume most people are using newer mailers that have heard of flock.
12659 ## Change this if you need to.
12660 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12661 ## configure gets the right answers, and that means *NOT* using flock.
12662 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12663 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12664 ## Debian maintainer hasn't provided a clean fix for Emacs.
12665 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12666 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12667 ## correct logic. -- fx
12668 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12669 ## liblockfile is a Free Software replacement for libmail, used on
12670 ## Debian systems and elsewhere. -rfr.
12671 gnu-*)
12672 mail_lock="flock"
12673 if test $have_mail = yes || test $have_lockfile = yes; then
12674 test $ac_cv_header_maillock_h = yes && mail_lock=no
12675 fi
12676 ;;
12677 esac
12678
12679 BLESSMAIL_TARGET=
12680 case "$mail_lock" in
12681 flock)
12682 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12683 ;;
12684
12685 lockf)
12686 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12687 ;;
12688
12689 *) BLESSMAIL_TARGET="need-blessmail" ;;
12690 esac
12691
12692
12693
12694 for ac_func in gethostname getdomainname dup2 \
12695 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12696 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12697 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
12698 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12699 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12700 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12701 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12702 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12703 cfmakeraw cfsetspeed isnan copysign __executable_start
12704 do :
12705 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12706 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12707 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12708 cat >>confdefs.h <<_ACEOF
12709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12710 _ACEOF
12711
12712 fi
12713 done
12714
12715
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12717 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12718 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723
12724 int
12725 main ()
12726 {
12727 __builtin_unwind_init ();
12728 ;
12729 return 0;
12730 }
12731 _ACEOF
12732 if ac_fn_c_try_link "$LINENO"; then :
12733 emacs_cv_func___builtin_unwind_init=yes
12734 else
12735 emacs_cv_func___builtin_unwind_init=no
12736 fi
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 fi
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12741 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12742 if test $emacs_cv_func___builtin_unwind_init = yes; then
12743
12744 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12745
12746 fi
12747
12748 for ac_header in sys/un.h
12749 do :
12750 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12751 if test "x$ac_cv_header_sys_un_h" = xyes; then :
12752 cat >>confdefs.h <<_ACEOF
12753 #define HAVE_SYS_UN_H 1
12754 _ACEOF
12755
12756 fi
12757
12758 done
12759
12760
12761
12762
12763
12764
12765
12766 for ac_func in $ac_func_list
12767 do :
12768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12769 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12770 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12771 cat >>confdefs.h <<_ACEOF
12772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12773 _ACEOF
12774
12775 fi
12776 done
12777
12778
12779
12780
12781
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
12783 $as_echo_n "checking for working mktime... " >&6; }
12784 if ${ac_cv_func_working_mktime+:} false; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 if test "$cross_compiling" = yes; then :
12788 ac_cv_func_working_mktime=no
12789 else
12790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12792 /* Test program from Paul Eggert and Tony Leneis. */
12793 #ifdef TIME_WITH_SYS_TIME
12794 # include <sys/time.h>
12795 # include <time.h>
12796 #else
12797 # ifdef HAVE_SYS_TIME_H
12798 # include <sys/time.h>
12799 # else
12800 # include <time.h>
12801 # endif
12802 #endif
12803
12804 #include <limits.h>
12805 #include <stdlib.h>
12806
12807 #ifdef HAVE_UNISTD_H
12808 # include <unistd.h>
12809 #endif
12810
12811 #ifndef HAVE_ALARM
12812 # define alarm(X) /* empty */
12813 #endif
12814
12815 /* Work around redefinition to rpl_putenv by other config tests. */
12816 #undef putenv
12817
12818 static time_t time_t_max;
12819 static time_t time_t_min;
12820
12821 /* Values we'll use to set the TZ environment variable. */
12822 static const char *tz_strings[] = {
12823 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12824 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12825 };
12826 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12827
12828 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12829 Based on a problem report from Andreas Jaeger. */
12830 static int
12831 spring_forward_gap ()
12832 {
12833 /* glibc (up to about 1998-10-07) failed this test. */
12834 struct tm tm;
12835
12836 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12837 instead of "TZ=America/Vancouver" in order to detect the bug even
12838 on systems that don't support the Olson extension, or don't have the
12839 full zoneinfo tables installed. */
12840 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12841
12842 tm.tm_year = 98;
12843 tm.tm_mon = 3;
12844 tm.tm_mday = 5;
12845 tm.tm_hour = 2;
12846 tm.tm_min = 0;
12847 tm.tm_sec = 0;
12848 tm.tm_isdst = -1;
12849 return mktime (&tm) != (time_t) -1;
12850 }
12851
12852 static int
12853 mktime_test1 (time_t now)
12854 {
12855 struct tm *lt;
12856 return ! (lt = localtime (&now)) || mktime (lt) == now;
12857 }
12858
12859 static int
12860 mktime_test (time_t now)
12861 {
12862 return (mktime_test1 (now)
12863 && mktime_test1 ((time_t) (time_t_max - now))
12864 && mktime_test1 ((time_t) (time_t_min + now)));
12865 }
12866
12867 static int
12868 irix_6_4_bug ()
12869 {
12870 /* Based on code from Ariel Faigon. */
12871 struct tm tm;
12872 tm.tm_year = 96;
12873 tm.tm_mon = 3;
12874 tm.tm_mday = 0;
12875 tm.tm_hour = 0;
12876 tm.tm_min = 0;
12877 tm.tm_sec = 0;
12878 tm.tm_isdst = -1;
12879 mktime (&tm);
12880 return tm.tm_mon == 2 && tm.tm_mday == 31;
12881 }
12882
12883 static int
12884 bigtime_test (int j)
12885 {
12886 struct tm tm;
12887 time_t now;
12888 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12889 now = mktime (&tm);
12890 if (now != (time_t) -1)
12891 {
12892 struct tm *lt = localtime (&now);
12893 if (! (lt
12894 && lt->tm_year == tm.tm_year
12895 && lt->tm_mon == tm.tm_mon
12896 && lt->tm_mday == tm.tm_mday
12897 && lt->tm_hour == tm.tm_hour
12898 && lt->tm_min == tm.tm_min
12899 && lt->tm_sec == tm.tm_sec
12900 && lt->tm_yday == tm.tm_yday
12901 && lt->tm_wday == tm.tm_wday
12902 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12903 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12904 return 0;
12905 }
12906 return 1;
12907 }
12908
12909 static int
12910 year_2050_test ()
12911 {
12912 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12913 ignoring leap seconds. */
12914 unsigned long int answer = 2527315200UL;
12915
12916 struct tm tm;
12917 time_t t;
12918 tm.tm_year = 2050 - 1900;
12919 tm.tm_mon = 2 - 1;
12920 tm.tm_mday = 1;
12921 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12922 tm.tm_isdst = -1;
12923
12924 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12925 instead of "TZ=America/Vancouver" in order to detect the bug even
12926 on systems that don't support the Olson extension, or don't have the
12927 full zoneinfo tables installed. */
12928 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12929
12930 t = mktime (&tm);
12931
12932 /* Check that the result is either a failure, or close enough
12933 to the correct answer that we can assume the discrepancy is
12934 due to leap seconds. */
12935 return (t == (time_t) -1
12936 || (0 < t && answer - 120 <= t && t <= answer + 120));
12937 }
12938
12939 int
12940 main ()
12941 {
12942 time_t t, delta;
12943 int i, j;
12944
12945 /* This test makes some buggy mktime implementations loop.
12946 Give up after 60 seconds; a mktime slower than that
12947 isn't worth using anyway. */
12948 alarm (60);
12949
12950 for (;;)
12951 {
12952 t = (time_t_max << 1) + 1;
12953 if (t <= time_t_max)
12954 break;
12955 time_t_max = t;
12956 }
12957 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12958
12959 delta = time_t_max / 997; /* a suitable prime number */
12960 for (i = 0; i < N_STRINGS; i++)
12961 {
12962 if (tz_strings[i])
12963 putenv ((char*) tz_strings[i]);
12964
12965 for (t = 0; t <= time_t_max - delta; t += delta)
12966 if (! mktime_test (t))
12967 return 1;
12968 if (! (mktime_test ((time_t) 1)
12969 && mktime_test ((time_t) (60 * 60))
12970 && mktime_test ((time_t) (60 * 60 * 24))))
12971 return 1;
12972
12973 for (j = 1; ; j <<= 1)
12974 if (! bigtime_test (j))
12975 return 1;
12976 else if (INT_MAX / 2 < j)
12977 break;
12978 if (! bigtime_test (INT_MAX))
12979 return 1;
12980 }
12981 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_run "$LINENO"; then :
12985 ac_cv_func_working_mktime=yes
12986 else
12987 ac_cv_func_working_mktime=no
12988 fi
12989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12990 conftest.$ac_objext conftest.beam conftest.$ac_ext
12991 fi
12992
12993 fi
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12995 $as_echo "$ac_cv_func_working_mktime" >&6; }
12996 if test $ac_cv_func_working_mktime = no; then
12997 case " $LIBOBJS " in
12998 *" mktime.$ac_objext "* ) ;;
12999 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13000 ;;
13001 esac
13002
13003 fi
13004
13005 if test "$ac_cv_func_working_mktime" = no; then
13006
13007 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
13008
13009 fi
13010
13011 ac_have_func=no # yes means we've found a way to get the load average.
13012
13013 # Make sure getloadavg.c is where it belongs, at configure-time.
13014 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13015 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
13016
13017 ac_save_LIBS=$LIBS
13018
13019 # Check for getloadavg, but be sure not to touch the cache variable.
13020 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13021 if test "x$ac_cv_func_getloadavg" = xyes; then :
13022 exit 0
13023 else
13024 exit 1
13025 fi
13026 ) && ac_have_func=yes
13027
13028 # On HPUX9, an unprivileged user can get load averages through this function.
13029 for ac_func in pstat_getdynamic
13030 do :
13031 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13032 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
13033 cat >>confdefs.h <<_ACEOF
13034 #define HAVE_PSTAT_GETDYNAMIC 1
13035 _ACEOF
13036
13037 fi
13038 done
13039
13040
13041 # Solaris has libkstat which does not require root.
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13043 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13044 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 ac_check_lib_save_LIBS=$LIBS
13048 LIBS="-lkstat $LIBS"
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051
13052 /* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
13055 #ifdef __cplusplus
13056 extern "C"
13057 #endif
13058 char kstat_open ();
13059 int
13060 main ()
13061 {
13062 return kstat_open ();
13063 ;
13064 return 0;
13065 }
13066 _ACEOF
13067 if ac_fn_c_try_link "$LINENO"; then :
13068 ac_cv_lib_kstat_kstat_open=yes
13069 else
13070 ac_cv_lib_kstat_kstat_open=no
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13074 LIBS=$ac_check_lib_save_LIBS
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13077 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13078 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13079 cat >>confdefs.h <<_ACEOF
13080 #define HAVE_LIBKSTAT 1
13081 _ACEOF
13082
13083 LIBS="-lkstat $LIBS"
13084
13085 fi
13086
13087 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13088
13089 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13090 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13091 # to get the right answer into the cache.
13092 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13093 if test $ac_have_func = no; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13095 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13096 if ${ac_cv_lib_elf_elf_begin+:} false; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099 ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-lelf $LIBS"
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103
13104 /* Override any GCC internal prototype to avoid an error.
13105 Use char because int might match the return type of a GCC
13106 builtin and then its argument prototype would still apply. */
13107 #ifdef __cplusplus
13108 extern "C"
13109 #endif
13110 char elf_begin ();
13111 int
13112 main ()
13113 {
13114 return elf_begin ();
13115 ;
13116 return 0;
13117 }
13118 _ACEOF
13119 if ac_fn_c_try_link "$LINENO"; then :
13120 ac_cv_lib_elf_elf_begin=yes
13121 else
13122 ac_cv_lib_elf_elf_begin=no
13123 fi
13124 rm -f core conftest.err conftest.$ac_objext \
13125 conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13129 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13130 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
13131 LIBS="-lelf $LIBS"
13132 fi
13133
13134 fi
13135 if test $ac_have_func = no; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13137 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13138 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 ac_check_lib_save_LIBS=$LIBS
13142 LIBS="-lkvm $LIBS"
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char kvm_open ();
13153 int
13154 main ()
13155 {
13156 return kvm_open ();
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_link "$LINENO"; then :
13162 ac_cv_lib_kvm_kvm_open=yes
13163 else
13164 ac_cv_lib_kvm_kvm_open=no
13165 fi
13166 rm -f core conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13169 fi
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13171 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13172 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
13173 LIBS="-lkvm $LIBS"
13174 fi
13175
13176 # Check for the 4.4BSD definition of getloadavg.
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13178 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13179 if ${ac_cv_lib_util_getloadavg+:} false; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 ac_check_lib_save_LIBS=$LIBS
13183 LIBS="-lutil $LIBS"
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186
13187 /* Override any GCC internal prototype to avoid an error.
13188 Use char because int might match the return type of a GCC
13189 builtin and then its argument prototype would still apply. */
13190 #ifdef __cplusplus
13191 extern "C"
13192 #endif
13193 char getloadavg ();
13194 int
13195 main ()
13196 {
13197 return getloadavg ();
13198 ;
13199 return 0;
13200 }
13201 _ACEOF
13202 if ac_fn_c_try_link "$LINENO"; then :
13203 ac_cv_lib_util_getloadavg=yes
13204 else
13205 ac_cv_lib_util_getloadavg=no
13206 fi
13207 rm -f core conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13209 LIBS=$ac_check_lib_save_LIBS
13210 fi
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13212 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13213 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
13214 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13215 fi
13216
13217 fi
13218
13219 if test $ac_have_func = no; then
13220 # There is a commonly available library for RS/6000 AIX.
13221 # Since it is not a standard part of AIX, it might be installed locally.
13222 ac_getloadavg_LIBS=$LIBS
13223 LIBS="-L/usr/local/lib $LIBS"
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13225 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13226 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 ac_check_lib_save_LIBS=$LIBS
13230 LIBS="-lgetloadavg $LIBS"
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233
13234 /* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13237 #ifdef __cplusplus
13238 extern "C"
13239 #endif
13240 char getloadavg ();
13241 int
13242 main ()
13243 {
13244 return getloadavg ();
13245 ;
13246 return 0;
13247 }
13248 _ACEOF
13249 if ac_fn_c_try_link "$LINENO"; then :
13250 ac_cv_lib_getloadavg_getloadavg=yes
13251 else
13252 ac_cv_lib_getloadavg_getloadavg=no
13253 fi
13254 rm -f core conftest.err conftest.$ac_objext \
13255 conftest$ac_exeext conftest.$ac_ext
13256 LIBS=$ac_check_lib_save_LIBS
13257 fi
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13259 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13260 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
13261 LIBS="-lgetloadavg $LIBS"
13262 else
13263 LIBS=$ac_getloadavg_LIBS
13264 fi
13265
13266 fi
13267
13268 # Make sure it is really in the library, if we think we found it,
13269 # otherwise set up the replacement function.
13270 for ac_func in getloadavg
13271 do :
13272 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13273 if test "x$ac_cv_func_getloadavg" = xyes; then :
13274 cat >>confdefs.h <<_ACEOF
13275 #define HAVE_GETLOADAVG 1
13276 _ACEOF
13277
13278 else
13279 case " $LIBOBJS " in
13280 *" getloadavg.$ac_objext "* ) ;;
13281 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13282 ;;
13283 esac
13284
13285
13286 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13287
13288 # Figure out what our getloadavg.c needs.
13289 ac_have_func=no
13290 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13291 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
13292 ac_have_func=yes
13293
13294 $as_echo "#define DGUX 1" >>confdefs.h
13295
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13297 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13298 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 ac_check_lib_save_LIBS=$LIBS
13302 LIBS="-ldgc $LIBS"
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305
13306 /* Override any GCC internal prototype to avoid an error.
13307 Use char because int might match the return type of a GCC
13308 builtin and then its argument prototype would still apply. */
13309 #ifdef __cplusplus
13310 extern "C"
13311 #endif
13312 char dg_sys_info ();
13313 int
13314 main ()
13315 {
13316 return dg_sys_info ();
13317 ;
13318 return 0;
13319 }
13320 _ACEOF
13321 if ac_fn_c_try_link "$LINENO"; then :
13322 ac_cv_lib_dgc_dg_sys_info=yes
13323 else
13324 ac_cv_lib_dgc_dg_sys_info=no
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext \
13327 conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13331 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13332 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
13333 cat >>confdefs.h <<_ACEOF
13334 #define HAVE_LIBDGC 1
13335 _ACEOF
13336
13337 LIBS="-ldgc $LIBS"
13338
13339 fi
13340
13341 fi
13342
13343
13344
13345 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13346 if test "x$ac_cv_header_locale_h" = xyes; then :
13347
13348 fi
13349
13350
13351 for ac_func in setlocale
13352 do :
13353 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13354 if test "x$ac_cv_func_setlocale" = xyes; then :
13355 cat >>confdefs.h <<_ACEOF
13356 #define HAVE_SETLOCALE 1
13357 _ACEOF
13358
13359 fi
13360 done
13361
13362
13363 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13364 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13365 # Irix 4.0.5F has the header but not the library.
13366 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13367 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13368 ac_have_func=yes
13369
13370 $as_echo "#define SVR4 1" >>confdefs.h
13371
13372 fi
13373
13374 if test $ac_have_func = no; then
13375 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13376 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
13377 ac_have_func=yes
13378
13379 $as_echo "#define UMAX 1" >>confdefs.h
13380
13381
13382 $as_echo "#define UMAX4_3 1" >>confdefs.h
13383
13384 fi
13385
13386
13387 fi
13388
13389 if test $ac_have_func = no; then
13390 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13391 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
13392 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13393
13394 fi
13395
13396
13397 fi
13398
13399 if test $ac_have_func = no; then
13400 for ac_header in mach/mach.h
13401 do :
13402 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13403 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
13404 cat >>confdefs.h <<_ACEOF
13405 #define HAVE_MACH_MACH_H 1
13406 _ACEOF
13407
13408 fi
13409
13410 done
13411
13412 fi
13413
13414 for ac_header in nlist.h
13415 do :
13416 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13417 if test "x$ac_cv_header_nlist_h" = xyes; then :
13418 cat >>confdefs.h <<_ACEOF
13419 #define HAVE_NLIST_H 1
13420 _ACEOF
13421 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13422 "
13423 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
13424
13425 cat >>confdefs.h <<_ACEOF
13426 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13427 _ACEOF
13428
13429
13430 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13431
13432 fi
13433
13434
13435 fi
13436
13437 done
13438
13439 fi
13440 done
13441
13442
13443 # Some definitions of getloadavg require that the program be installed setgid.
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13445 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13446 if ${ac_cv_func_getloadavg_setgid+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13452 #ifdef LDAV_PRIVILEGED
13453 Yowza Am I SETGID yet
13454 #endif
13455 _ACEOF
13456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13457 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13458 ac_cv_func_getloadavg_setgid=yes
13459 else
13460 ac_cv_func_getloadavg_setgid=no
13461 fi
13462 rm -f conftest*
13463
13464 fi
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13466 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13467 if test $ac_cv_func_getloadavg_setgid = yes; then
13468 NEED_SETGID=true
13469
13470 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13471
13472 else
13473 NEED_SETGID=false
13474 fi
13475
13476 if test $ac_cv_func_getloadavg_setgid = yes; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13478 $as_echo_n "checking group of /dev/kmem... " >&6; }
13479 if ${ac_cv_group_kmem+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13483 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13484 # If we got an error (system does not support symlinks), try without -L.
13485 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13486 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13487 | sed -ne 's/[ ][ ]*/ /g;
13488 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13489 / /s/.* //;p;'`
13490
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13493 $as_echo "$ac_cv_group_kmem" >&6; }
13494 KMEM_GROUP=$ac_cv_group_kmem
13495 fi
13496 if test "x$ac_save_LIBS" = x; then
13497 GETLOADAVG_LIBS=$LIBS
13498 else
13499 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13500 fi
13501 LIBS=$ac_save_LIBS
13502
13503
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13506 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13507 if ${ac_cv_sys_largefile_source+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 while :; do
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 #include <sys/types.h> /* for off_t */
13514 #include <stdio.h>
13515 int
13516 main ()
13517 {
13518 int (*fp) (FILE *, off_t, int) = fseeko;
13519 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13520 ;
13521 return 0;
13522 }
13523 _ACEOF
13524 if ac_fn_c_try_link "$LINENO"; then :
13525 ac_cv_sys_largefile_source=no; break
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13531 #define _LARGEFILE_SOURCE 1
13532 #include <sys/types.h> /* for off_t */
13533 #include <stdio.h>
13534 int
13535 main ()
13536 {
13537 int (*fp) (FILE *, off_t, int) = fseeko;
13538 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13539 ;
13540 return 0;
13541 }
13542 _ACEOF
13543 if ac_fn_c_try_link "$LINENO"; then :
13544 ac_cv_sys_largefile_source=1; break
13545 fi
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13548 ac_cv_sys_largefile_source=unknown
13549 break
13550 done
13551 fi
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13553 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13554 case $ac_cv_sys_largefile_source in #(
13555 no | unknown) ;;
13556 *)
13557 cat >>confdefs.h <<_ACEOF
13558 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13559 _ACEOF
13560 ;;
13561 esac
13562 rm -rf conftest*
13563
13564 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13565 # in glibc 2.1.3, but that breaks too many other things.
13566 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13567 if test $ac_cv_sys_largefile_source != unknown; then
13568
13569 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13570
13571 fi
13572
13573
13574 # Configure getopt.
13575 # getopt.m4 serial 10
13576
13577 # The getopt module assume you want GNU getopt, with getopt_long etc,
13578 # rather than vanilla POSIX getopt. This means your your code should
13579 # always include <getopt.h> for the getopt prototypes.
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591 # Prerequisites of lib/getopt*.
13592
13593
13594
13595
13596 GETOPT_H=
13597 for ac_header in getopt.h
13598 do :
13599 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13600 if test "x$ac_cv_header_getopt_h" = xyes; then :
13601 cat >>confdefs.h <<_ACEOF
13602 #define HAVE_GETOPT_H 1
13603 _ACEOF
13604
13605 else
13606 GETOPT_H=getopt.h
13607 fi
13608
13609 done
13610
13611 if test -z "$GETOPT_H"; then
13612 for ac_func in getopt_long_only
13613 do :
13614 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13615 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13616 cat >>confdefs.h <<_ACEOF
13617 #define HAVE_GETOPT_LONG_ONLY 1
13618 _ACEOF
13619
13620 else
13621 GETOPT_H=getopt.h
13622 fi
13623 done
13624
13625 fi
13626
13627 if test -z "$GETOPT_H"; then
13628 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
13629 "
13630 if test "x$ac_cv_have_decl_optreset" = xyes; then :
13631 GETOPT_H=getopt.h
13632 fi
13633
13634 fi
13635
13636 if test -z "$GETOPT_H"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13638 $as_echo_n "checking for working GNU getopt function... " >&6; }
13639 if ${gl_cv_func_gnu_getopt+:} false; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 if test "$cross_compiling" = yes; then :
13643 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
13644 "
13645 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
13646 gl_cv_func_gnu_getopt=no
13647 else
13648 gl_cv_func_gnu_getopt=yes
13649 fi
13650
13651 else
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 #include <getopt.h>
13655 int
13656 main ()
13657 {
13658
13659 char *myargv[3];
13660 myargv[0] = "conftest";
13661 myargv[1] = "-+";
13662 myargv[2] = 0;
13663 return getopt (2, myargv, "+a") != '?';
13664
13665 ;
13666 return 0;
13667 }
13668 _ACEOF
13669 if ac_fn_c_try_run "$LINENO"; then :
13670 gl_cv_func_gnu_getopt=yes
13671 else
13672 gl_cv_func_gnu_getopt=no
13673 fi
13674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13675 conftest.$ac_objext conftest.beam conftest.$ac_ext
13676 fi
13677
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
13680 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
13681 if test "$gl_cv_func_gnu_getopt" = "no"; then
13682 GETOPT_H=getopt.h
13683 fi
13684 fi
13685
13686
13687
13688 if test -n "$GETOPT_H"; then :
13689
13690
13691 GETOPT_H=getopt.h
13692
13693 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13694
13695
13696
13697 :
13698 GETOPTOBJS='getopt.o getopt1.o'
13699
13700 fi
13701
13702
13703
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13705 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13706 if ${ac_cv_func_getpgrp_void+:} false; then :
13707 $as_echo_n "(cached) " >&6
13708 else
13709 # Use it with a single arg.
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 $ac_includes_default
13713 int
13714 main ()
13715 {
13716 getpgrp (0);
13717 ;
13718 return 0;
13719 }
13720 _ACEOF
13721 if ac_fn_c_try_compile "$LINENO"; then :
13722 ac_cv_func_getpgrp_void=no
13723 else
13724 ac_cv_func_getpgrp_void=yes
13725 fi
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727
13728 fi
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13730 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13731 if test $ac_cv_func_getpgrp_void = yes; then
13732
13733 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13734
13735 fi
13736
13737
13738 # Configure gnulib.
13739
13740 if false; then
13741 GL_COND_LIBTOOL_TRUE=
13742 GL_COND_LIBTOOL_FALSE='#'
13743 else
13744 GL_COND_LIBTOOL_TRUE='#'
13745 GL_COND_LIBTOOL_FALSE=
13746 fi
13747
13748 gl_cond_libtool=false
13749 gl_libdeps=
13750 gl_ltlibdeps=
13751 gl_m4_base='m4'
13752
13753
13754
13755
13756
13757 gl_COMMON
13758 gl_source_base='lib'
13759 # Code from module dummy:
13760 # End of code from modules
13761
13762
13763
13764
13765
13766
13767
13768 gltests_libdeps=
13769 gltests_ltlibdeps=
13770
13771
13772
13773
13774
13775 gl_COMMON
13776 gl_source_base='tests'
13777 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
13778
13779 gl_module_indicator_condition=$gltests_WITNESS
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789 LIBGNU_LIBDEPS="$gl_libdeps"
13790
13791 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13792
13793
13794
13795 for ac_func in strftime
13796 do :
13797 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13798 if test "x$ac_cv_func_strftime" = xyes; then :
13799 cat >>confdefs.h <<_ACEOF
13800 #define HAVE_STRFTIME 1
13801 _ACEOF
13802
13803 else
13804 # strftime is in -lintl on SCO UNIX.
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13806 $as_echo_n "checking for strftime in -lintl... " >&6; }
13807 if ${ac_cv_lib_intl_strftime+:} false; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 ac_check_lib_save_LIBS=$LIBS
13811 LIBS="-lintl $LIBS"
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13818 #ifdef __cplusplus
13819 extern "C"
13820 #endif
13821 char strftime ();
13822 int
13823 main ()
13824 {
13825 return strftime ();
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_c_try_link "$LINENO"; then :
13831 ac_cv_lib_intl_strftime=yes
13832 else
13833 ac_cv_lib_intl_strftime=no
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13838 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13840 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13841 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13842 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13843
13844 LIBS="-lintl $LIBS"
13845 fi
13846
13847 fi
13848 done
13849
13850
13851 # UNIX98 PTYs.
13852 for ac_func in grantpt
13853 do :
13854 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13855 if test "x$ac_cv_func_grantpt" = xyes; then :
13856 cat >>confdefs.h <<_ACEOF
13857 #define HAVE_GRANTPT 1
13858 _ACEOF
13859
13860 fi
13861 done
13862
13863
13864 # PTY-related GNU extensions.
13865 for ac_func in getpt
13866 do :
13867 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13868 if test "x$ac_cv_func_getpt" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_GETPT 1
13871 _ACEOF
13872
13873 fi
13874 done
13875
13876
13877 # Check this now, so that we will NOT find the above functions in ncurses.
13878 # That is because we have not set up to link ncurses in lib-src.
13879 # It's better to believe a function is not available
13880 # than to expect to find it in ncurses.
13881 # Also we need tputs and friends to be able to build at all.
13882 have_tputs_et_al=true
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13884 $as_echo_n "checking for library containing tputs... " >&6; }
13885 if ${ac_cv_search_tputs+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 ac_func_search_save_LIBS=$LIBS
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13891
13892 /* Override any GCC internal prototype to avoid an error.
13893 Use char because int might match the return type of a GCC
13894 builtin and then its argument prototype would still apply. */
13895 #ifdef __cplusplus
13896 extern "C"
13897 #endif
13898 char tputs ();
13899 int
13900 main ()
13901 {
13902 return tputs ();
13903 ;
13904 return 0;
13905 }
13906 _ACEOF
13907 for ac_lib in '' ncurses terminfo termcap; do
13908 if test -z "$ac_lib"; then
13909 ac_res="none required"
13910 else
13911 ac_res=-l$ac_lib
13912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13913 fi
13914 if ac_fn_c_try_link "$LINENO"; then :
13915 ac_cv_search_tputs=$ac_res
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext \
13918 conftest$ac_exeext
13919 if ${ac_cv_search_tputs+:} false; then :
13920 break
13921 fi
13922 done
13923 if ${ac_cv_search_tputs+:} false; then :
13924
13925 else
13926 ac_cv_search_tputs=no
13927 fi
13928 rm conftest.$ac_ext
13929 LIBS=$ac_func_search_save_LIBS
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13932 $as_echo "$ac_cv_search_tputs" >&6; }
13933 ac_res=$ac_cv_search_tputs
13934 if test "$ac_res" != no; then :
13935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13936
13937 else
13938 have_tputs_et_al=false
13939 fi
13940
13941 if test "$have_tputs_et_al" != true; then
13942 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
13943 Maybe some development libraries/packages are missing? Try installing
13944 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13945 fi
13946 # Must define this when any termcap library is found.
13947
13948 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13949
13950 ## FIXME This was the cpp logic, but I am not sure it is right.
13951 ## The above test has not necessarily found libncurses.
13952 HAVE_LIBNCURSES=yes
13953
13954 ## Use terminfo instead of termcap?
13955 ## Note only system files NOT using terminfo are:
13956 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13957 ## darwin|gnu without ncurses.
13958 TERMINFO=no
13959 LIBS_TERMCAP=
13960 case "$opsys" in
13961 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13962 ## hpux10-20: Use the system provided termcap(3) library.
13963 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13964 ## is necessary. Otherwise Emacs dumps core when run -nw.
13965 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13966
13967 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13968 ## The ncurses library has been moved out of the System framework in
13969 ## Mac OS X 10.2. So if configure detects it, set the command-line
13970 ## option to use it.
13971 darwin|gnu*)
13972 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13973 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13974 TERMINFO=yes
13975 LIBS_TERMCAP="-lncurses"
13976 fi
13977 ;;
13978
13979 freebsd)
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13981 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13982 if ${emacs_cv_freebsd_terminfo+:} false; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13987 #include <osreldate.h>
13988 int
13989 main ()
13990 {
13991 #if __FreeBSD_version < 400000
13992 fail;
13993 #endif
13994
13995 ;
13996 return 0;
13997 }
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 emacs_cv_freebsd_terminfo=yes
14001 else
14002 emacs_cv_freebsd_terminfo=no
14003 fi
14004 rm -f core conftest.err conftest.$ac_objext \
14005 conftest$ac_exeext conftest.$ac_ext
14006 fi
14007
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14010 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14011
14012 if test $emacs_cv_freebsd_terminfo = yes; then
14013 TERMINFO=yes
14014 LIBS_TERMCAP="-lncurses"
14015 else
14016 LIBS_TERMCAP="-ltermcap"
14017 fi
14018 ;;
14019
14020 netbsd)
14021 if test $ac_cv_search_tputs = -lterminfo; then
14022 TERMINFO=yes
14023 LIBS_TERMCAP="-lterminfo"
14024 else
14025 LIBS_TERMCAP="-ltermcap"
14026 fi
14027 ;;
14028
14029 esac
14030
14031 case "$opsys" in
14032 ## hpux: Make sure we get select from libc rather than from libcurses
14033 ## because libcurses on HPUX 10.10 has a broken version of select.
14034 ## We used to use -lc -lcurses, but this may be cleaner.
14035 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14036
14037 openbsd) LIBS_TERMCAP="-lncurses" ;;
14038
14039 ## Must use system termcap, if we use any termcap. It does special things.
14040 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14041 esac
14042
14043 TERMCAP_OBJ=tparam.o
14044 if test $TERMINFO = yes; then
14045
14046 $as_echo "#define TERMINFO 1" >>confdefs.h
14047
14048
14049 ## Default used to be -ltermcap. Add a case above if need something else.
14050 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14051
14052 TERMCAP_OBJ=terminfo.o
14053 fi
14054
14055
14056
14057
14058 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14059 resolv=no
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 #include <netinet/in.h>
14063 #include <arpa/nameser.h>
14064 #include <resolv.h>
14065 int
14066 main ()
14067 {
14068 return res_init();
14069 ;
14070 return 0;
14071 }
14072 _ACEOF
14073 if ac_fn_c_try_link "$LINENO"; then :
14074 have_res_init=yes
14075 else
14076 have_res_init=no
14077 fi
14078 rm -f core conftest.err conftest.$ac_objext \
14079 conftest$ac_exeext conftest.$ac_ext
14080 if test "$have_res_init" = no; then
14081 OLIBS="$LIBS"
14082 LIBS="$LIBS -lresolv"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14084 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 #include <netinet/in.h>
14088 #include <arpa/nameser.h>
14089 #include <resolv.h>
14090 int
14091 main ()
14092 {
14093 return res_init();
14094 ;
14095 return 0;
14096 }
14097 _ACEOF
14098 if ac_fn_c_try_link "$LINENO"; then :
14099 have_res_init=yes
14100 else
14101 have_res_init=no
14102 fi
14103 rm -f core conftest.err conftest.$ac_objext \
14104 conftest$ac_exeext conftest.$ac_ext
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14106 $as_echo "$have_res_init" >&6; }
14107 if test "$have_res_init" = yes ; then
14108 resolv=yes
14109 fi
14110 LIBS="$OLIBS"
14111 fi
14112
14113 if test "$have_res_init" = yes; then
14114
14115 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14116
14117 fi
14118
14119 # Do we need the Hesiod library to provide the support routines?
14120 LIBHESIOD=
14121 if test "$with_hesiod" != no ; then
14122 # Don't set $LIBS here -- see comments above. FIXME which comments?
14123 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14124 if test "x$ac_cv_func_res_send" = xyes; then :
14125
14126 else
14127 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14128 if test "x$ac_cv_func___res_send" = xyes; then :
14129
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14132 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14133 if ${ac_cv_lib_resolv_res_send+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 ac_check_lib_save_LIBS=$LIBS
14137 LIBS="-lresolv $LIBS"
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14140
14141 /* Override any GCC internal prototype to avoid an error.
14142 Use char because int might match the return type of a GCC
14143 builtin and then its argument prototype would still apply. */
14144 #ifdef __cplusplus
14145 extern "C"
14146 #endif
14147 char res_send ();
14148 int
14149 main ()
14150 {
14151 return res_send ();
14152 ;
14153 return 0;
14154 }
14155 _ACEOF
14156 if ac_fn_c_try_link "$LINENO"; then :
14157 ac_cv_lib_resolv_res_send=yes
14158 else
14159 ac_cv_lib_resolv_res_send=no
14160 fi
14161 rm -f core conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14164 fi
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14166 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14167 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
14168 resolv=yes
14169 else
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14171 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14172 if ${ac_cv_lib_resolv___res_send+:} false; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 ac_check_lib_save_LIBS=$LIBS
14176 LIBS="-lresolv $LIBS"
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179
14180 /* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14183 #ifdef __cplusplus
14184 extern "C"
14185 #endif
14186 char __res_send ();
14187 int
14188 main ()
14189 {
14190 return __res_send ();
14191 ;
14192 return 0;
14193 }
14194 _ACEOF
14195 if ac_fn_c_try_link "$LINENO"; then :
14196 ac_cv_lib_resolv___res_send=yes
14197 else
14198 ac_cv_lib_resolv___res_send=no
14199 fi
14200 rm -f core conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
14202 LIBS=$ac_check_lib_save_LIBS
14203 fi
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14205 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14206 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
14207 resolv=yes
14208 fi
14209
14210 fi
14211
14212 fi
14213
14214 fi
14215
14216 if test "$resolv" = yes ; then
14217 RESOLVLIB=-lresolv
14218 else
14219 RESOLVLIB=
14220 fi
14221 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14222 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
14223
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14226 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14227 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 ac_check_lib_save_LIBS=$LIBS
14231 LIBS="-lhesiod $RESOLVLIB $LIBS"
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14234
14235 /* Override any GCC internal prototype to avoid an error.
14236 Use char because int might match the return type of a GCC
14237 builtin and then its argument prototype would still apply. */
14238 #ifdef __cplusplus
14239 extern "C"
14240 #endif
14241 char hes_getmailhost ();
14242 int
14243 main ()
14244 {
14245 return hes_getmailhost ();
14246 ;
14247 return 0;
14248 }
14249 _ACEOF
14250 if ac_fn_c_try_link "$LINENO"; then :
14251 ac_cv_lib_hesiod_hes_getmailhost=yes
14252 else
14253 ac_cv_lib_hesiod_hes_getmailhost=no
14254 fi
14255 rm -f core conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
14257 LIBS=$ac_check_lib_save_LIBS
14258 fi
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14260 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14261 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
14262 hesiod=yes
14263 else
14264 :
14265 fi
14266
14267 fi
14268
14269
14270 if test x"$hesiod" = xyes; then
14271
14272 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14273
14274 LIBHESIOD=-lhesiod
14275 fi
14276 fi
14277
14278
14279 # Do we need libresolv (due to res_init or Hesiod)?
14280 if test "$resolv" = yes ; then
14281
14282 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14283
14284 LIBRESOLV=-lresolv
14285 else
14286 LIBRESOLV=
14287 fi
14288
14289
14290 # These tell us which Kerberos-related libraries to use.
14291 COM_ERRLIB=
14292 CRYPTOLIB=
14293 KRB5LIB=
14294 DESLIB=
14295 KRB4LIB=
14296
14297 if test "${with_kerberos}" != no; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14299 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14300 if ${ac_cv_lib_com_err_com_err+:} false; then :
14301 $as_echo_n "(cached) " >&6
14302 else
14303 ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-lcom_err $LIBS"
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14307
14308 /* Override any GCC internal prototype to avoid an error.
14309 Use char because int might match the return type of a GCC
14310 builtin and then its argument prototype would still apply. */
14311 #ifdef __cplusplus
14312 extern "C"
14313 #endif
14314 char com_err ();
14315 int
14316 main ()
14317 {
14318 return com_err ();
14319 ;
14320 return 0;
14321 }
14322 _ACEOF
14323 if ac_fn_c_try_link "$LINENO"; then :
14324 ac_cv_lib_com_err_com_err=yes
14325 else
14326 ac_cv_lib_com_err_com_err=no
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 LIBS=$ac_check_lib_save_LIBS
14331 fi
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14333 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14334 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
14335 have_com_err=yes
14336 else
14337 have_com_err=no
14338 fi
14339
14340 if test $have_com_err = yes; then
14341 COM_ERRLIB=-lcom_err
14342 LIBS="$COM_ERRLIB $LIBS"
14343
14344 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14345
14346 fi
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14348 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14349 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-lcrypto $LIBS"
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14356
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char mit_des_cbc_encrypt ();
14364 int
14365 main ()
14366 {
14367 return mit_des_cbc_encrypt ();
14368 ;
14369 return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"; then :
14373 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14374 else
14375 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14376 fi
14377 rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379 LIBS=$ac_check_lib_save_LIBS
14380 fi
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14382 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14383 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
14384 have_crypto=yes
14385 else
14386 have_crypto=no
14387 fi
14388
14389 if test $have_crypto = yes; then
14390 CRYPTOLIB=-lcrypto
14391 LIBS="$CRYPTOLIB $LIBS"
14392
14393 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14394
14395 fi
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14397 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14398 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14401 ac_check_lib_save_LIBS=$LIBS
14402 LIBS="-lk5crypto $LIBS"
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405
14406 /* Override any GCC internal prototype to avoid an error.
14407 Use char because int might match the return type of a GCC
14408 builtin and then its argument prototype would still apply. */
14409 #ifdef __cplusplus
14410 extern "C"
14411 #endif
14412 char mit_des_cbc_encrypt ();
14413 int
14414 main ()
14415 {
14416 return mit_des_cbc_encrypt ();
14417 ;
14418 return 0;
14419 }
14420 _ACEOF
14421 if ac_fn_c_try_link "$LINENO"; then :
14422 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14423 else
14424 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14425 fi
14426 rm -f core conftest.err conftest.$ac_objext \
14427 conftest$ac_exeext conftest.$ac_ext
14428 LIBS=$ac_check_lib_save_LIBS
14429 fi
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14431 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14432 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
14433 have_k5crypto=yes
14434 else
14435 have_k5crypto=no
14436 fi
14437
14438 if test $have_k5crypto = yes; then
14439 CRYPTOLIB=-lk5crypto
14440 LIBS="$CRYPTOLIB $LIBS"
14441
14442 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14443
14444 fi
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14446 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14447 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450 ac_check_lib_save_LIBS=$LIBS
14451 LIBS="-lkrb5 $LIBS"
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454
14455 /* Override any GCC internal prototype to avoid an error.
14456 Use char because int might match the return type of a GCC
14457 builtin and then its argument prototype would still apply. */
14458 #ifdef __cplusplus
14459 extern "C"
14460 #endif
14461 char krb5_init_context ();
14462 int
14463 main ()
14464 {
14465 return krb5_init_context ();
14466 ;
14467 return 0;
14468 }
14469 _ACEOF
14470 if ac_fn_c_try_link "$LINENO"; then :
14471 ac_cv_lib_krb5_krb5_init_context=yes
14472 else
14473 ac_cv_lib_krb5_krb5_init_context=no
14474 fi
14475 rm -f core conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
14477 LIBS=$ac_check_lib_save_LIBS
14478 fi
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14480 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14481 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
14482 have_krb5=yes
14483 else
14484 have_krb5=no
14485 fi
14486
14487 if test $have_krb5=yes; then
14488 KRB5LIB=-lkrb5
14489 LIBS="$KRB5LIB $LIBS"
14490
14491 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14492
14493 fi
14494 if test "${with_kerberos5}" = no; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14496 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14497 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 ac_check_lib_save_LIBS=$LIBS
14501 LIBS="-ldes425 $LIBS"
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14504
14505 /* Override any GCC internal prototype to avoid an error.
14506 Use char because int might match the return type of a GCC
14507 builtin and then its argument prototype would still apply. */
14508 #ifdef __cplusplus
14509 extern "C"
14510 #endif
14511 char des_cbc_encrypt ();
14512 int
14513 main ()
14514 {
14515 return des_cbc_encrypt ();
14516 ;
14517 return 0;
14518 }
14519 _ACEOF
14520 if ac_fn_c_try_link "$LINENO"; then :
14521 ac_cv_lib_des425_des_cbc_encrypt=yes
14522 else
14523 ac_cv_lib_des425_des_cbc_encrypt=no
14524 fi
14525 rm -f core conftest.err conftest.$ac_objext \
14526 conftest$ac_exeext conftest.$ac_ext
14527 LIBS=$ac_check_lib_save_LIBS
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14530 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14531 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
14532 have_des425=yes
14533 else
14534 have_des425=no
14535 fi
14536
14537 if test $have_des425 = yes; then
14538 DESLIB=-ldes425
14539 LIBS="$DESLIB $LIBS"
14540
14541 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14542
14543 else
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14545 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14546 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
14547 $as_echo_n "(cached) " >&6
14548 else
14549 ac_check_lib_save_LIBS=$LIBS
14550 LIBS="-ldes $LIBS"
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553
14554 /* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply. */
14557 #ifdef __cplusplus
14558 extern "C"
14559 #endif
14560 char des_cbc_encrypt ();
14561 int
14562 main ()
14563 {
14564 return des_cbc_encrypt ();
14565 ;
14566 return 0;
14567 }
14568 _ACEOF
14569 if ac_fn_c_try_link "$LINENO"; then :
14570 ac_cv_lib_des_des_cbc_encrypt=yes
14571 else
14572 ac_cv_lib_des_des_cbc_encrypt=no
14573 fi
14574 rm -f core conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14579 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14580 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
14581 have_des=yes
14582 else
14583 have_des=no
14584 fi
14585
14586 if test $have_des = yes; then
14587 DESLIB=-ldes
14588 LIBS="$DESLIB $LIBS"
14589
14590 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14591
14592 fi
14593 fi
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14595 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14596 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 ac_check_lib_save_LIBS=$LIBS
14600 LIBS="-lkrb4 $LIBS"
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14603
14604 /* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14607 #ifdef __cplusplus
14608 extern "C"
14609 #endif
14610 char krb_get_cred ();
14611 int
14612 main ()
14613 {
14614 return krb_get_cred ();
14615 ;
14616 return 0;
14617 }
14618 _ACEOF
14619 if ac_fn_c_try_link "$LINENO"; then :
14620 ac_cv_lib_krb4_krb_get_cred=yes
14621 else
14622 ac_cv_lib_krb4_krb_get_cred=no
14623 fi
14624 rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14629 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14630 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
14631 have_krb4=yes
14632 else
14633 have_krb4=no
14634 fi
14635
14636 if test $have_krb4 = yes; then
14637 KRB4LIB=-lkrb4
14638 LIBS="$KRB4LIB $LIBS"
14639
14640 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14641
14642 else
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14644 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14645 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 ac_check_lib_save_LIBS=$LIBS
14649 LIBS="-lkrb $LIBS"
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14656 #ifdef __cplusplus
14657 extern "C"
14658 #endif
14659 char krb_get_cred ();
14660 int
14661 main ()
14662 {
14663 return krb_get_cred ();
14664 ;
14665 return 0;
14666 }
14667 _ACEOF
14668 if ac_fn_c_try_link "$LINENO"; then :
14669 ac_cv_lib_krb_krb_get_cred=yes
14670 else
14671 ac_cv_lib_krb_krb_get_cred=no
14672 fi
14673 rm -f core conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext conftest.$ac_ext
14675 LIBS=$ac_check_lib_save_LIBS
14676 fi
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14678 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14679 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
14680 have_krb=yes
14681 else
14682 have_krb=no
14683 fi
14684
14685 if test $have_krb = yes; then
14686 KRB4LIB=-lkrb
14687 LIBS="$KRB4LIB $LIBS"
14688
14689 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14690
14691 fi
14692 fi
14693 fi
14694
14695 if test "${with_kerberos5}" != no; then
14696 for ac_header in krb5.h
14697 do :
14698 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14699 if test "x$ac_cv_header_krb5_h" = xyes; then :
14700 cat >>confdefs.h <<_ACEOF
14701 #define HAVE_KRB5_H 1
14702 _ACEOF
14703 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14704 "
14705 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
14706
14707 cat >>confdefs.h <<_ACEOF
14708 #define HAVE_KRB5_ERROR_TEXT 1
14709 _ACEOF
14710
14711
14712 fi
14713 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14714 "
14715 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
14716
14717 cat >>confdefs.h <<_ACEOF
14718 #define HAVE_KRB5_ERROR_E_TEXT 1
14719 _ACEOF
14720
14721
14722 fi
14723
14724 fi
14725
14726 done
14727
14728 else
14729 for ac_header in des.h
14730 do :
14731 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14732 if test "x$ac_cv_header_des_h" = xyes; then :
14733 cat >>confdefs.h <<_ACEOF
14734 #define HAVE_DES_H 1
14735 _ACEOF
14736
14737 else
14738 for ac_header in kerberosIV/des.h
14739 do :
14740 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14741 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
14742 cat >>confdefs.h <<_ACEOF
14743 #define HAVE_KERBEROSIV_DES_H 1
14744 _ACEOF
14745
14746 else
14747 for ac_header in kerberos/des.h
14748 do :
14749 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14750 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
14751 cat >>confdefs.h <<_ACEOF
14752 #define HAVE_KERBEROS_DES_H 1
14753 _ACEOF
14754
14755 fi
14756
14757 done
14758
14759 fi
14760
14761 done
14762
14763 fi
14764
14765 done
14766
14767 for ac_header in krb.h
14768 do :
14769 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14770 if test "x$ac_cv_header_krb_h" = xyes; then :
14771 cat >>confdefs.h <<_ACEOF
14772 #define HAVE_KRB_H 1
14773 _ACEOF
14774
14775 else
14776 for ac_header in kerberosIV/krb.h
14777 do :
14778 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14779 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
14780 cat >>confdefs.h <<_ACEOF
14781 #define HAVE_KERBEROSIV_KRB_H 1
14782 _ACEOF
14783
14784 else
14785 for ac_header in kerberos/krb.h
14786 do :
14787 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14788 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
14789 cat >>confdefs.h <<_ACEOF
14790 #define HAVE_KERBEROS_KRB_H 1
14791 _ACEOF
14792
14793 fi
14794
14795 done
14796
14797 fi
14798
14799 done
14800
14801 fi
14802
14803 done
14804
14805 fi
14806 for ac_header in com_err.h
14807 do :
14808 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14809 if test "x$ac_cv_header_com_err_h" = xyes; then :
14810 cat >>confdefs.h <<_ACEOF
14811 #define HAVE_COM_ERR_H 1
14812 _ACEOF
14813
14814 fi
14815
14816 done
14817
14818 fi
14819
14820
14821
14822
14823
14824
14825
14826 # Solaris requires -lintl if you want strerror (which calls dgettext)
14827 # to return localized messages.
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14829 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14830 if ${ac_cv_lib_intl_dgettext+:} false; then :
14831 $as_echo_n "(cached) " >&6
14832 else
14833 ac_check_lib_save_LIBS=$LIBS
14834 LIBS="-lintl $LIBS"
14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14837
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14841 #ifdef __cplusplus
14842 extern "C"
14843 #endif
14844 char dgettext ();
14845 int
14846 main ()
14847 {
14848 return dgettext ();
14849 ;
14850 return 0;
14851 }
14852 _ACEOF
14853 if ac_fn_c_try_link "$LINENO"; then :
14854 ac_cv_lib_intl_dgettext=yes
14855 else
14856 ac_cv_lib_intl_dgettext=no
14857 fi
14858 rm -f core conftest.err conftest.$ac_objext \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14861 fi
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14863 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14864 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
14865 cat >>confdefs.h <<_ACEOF
14866 #define HAVE_LIBINTL 1
14867 _ACEOF
14868
14869 LIBS="-lintl $LIBS"
14870
14871 fi
14872
14873
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14875 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14876 if ${emacs_cv_localtime_cache+:} false; then :
14877 $as_echo_n "(cached) " >&6
14878 else
14879 if test x$ac_cv_func_tzset = xyes; then
14880 if test "$cross_compiling" = yes; then :
14881 # If we have tzset, assume the worst when cross-compiling.
14882 emacs_cv_localtime_cache=yes
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 #include <time.h>
14887 char TZ_GMT0[] = "TZ=GMT0";
14888 char TZ_PST8[] = "TZ=PST8";
14889 main()
14890 {
14891 time_t now = time ((time_t *) 0);
14892 int hour_GMT0, hour_unset;
14893 if (putenv (TZ_GMT0) != 0)
14894 exit (1);
14895 hour_GMT0 = localtime (&now)->tm_hour;
14896 unsetenv("TZ");
14897 hour_unset = localtime (&now)->tm_hour;
14898 if (putenv (TZ_PST8) != 0)
14899 exit (1);
14900 if (localtime (&now)->tm_hour == hour_GMT0)
14901 exit (1);
14902 unsetenv("TZ");
14903 if (localtime (&now)->tm_hour != hour_unset)
14904 exit (1);
14905 exit (0);
14906 }
14907 _ACEOF
14908 if ac_fn_c_try_run "$LINENO"; then :
14909 emacs_cv_localtime_cache=no
14910 else
14911 emacs_cv_localtime_cache=yes
14912 fi
14913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14914 conftest.$ac_objext conftest.beam conftest.$ac_ext
14915 fi
14916
14917 else
14918 # If we lack tzset, report that localtime does not cache TZ,
14919 # since we can't invalidate the cache if we don't have tzset.
14920 emacs_cv_localtime_cache=no
14921 fi
14922 fi
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14924 $as_echo "$emacs_cv_localtime_cache" >&6; }
14925 if test $emacs_cv_localtime_cache = yes; then
14926
14927 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14928
14929 fi
14930
14931 if test "x$HAVE_TIMEVAL" = xyes; then
14932 for ac_func in gettimeofday
14933 do :
14934 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14935 if test "x$ac_cv_func_gettimeofday" = xyes; then :
14936 cat >>confdefs.h <<_ACEOF
14937 #define HAVE_GETTIMEOFDAY 1
14938 _ACEOF
14939
14940 fi
14941 done
14942
14943 if test $ac_cv_func_gettimeofday = yes; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14945 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14946 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
14947 $as_echo_n "(cached) " >&6
14948 else
14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14951
14952 #ifdef TIME_WITH_SYS_TIME
14953 #include <sys/time.h>
14954 #include <time.h>
14955 #else
14956 #ifdef HAVE_SYS_TIME_H
14957 #include <sys/time.h>
14958 #else
14959 #include <time.h>
14960 #endif
14961 #endif
14962 int
14963 main ()
14964 {
14965 struct timeval time;
14966 gettimeofday (&time, 0);
14967 ;
14968 return 0;
14969 }
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"; then :
14972 emacs_cv_gettimeofday_two_arguments=yes
14973 else
14974 emacs_cv_gettimeofday_two_arguments=no
14975 fi
14976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 fi
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14979 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14980 if test $emacs_cv_gettimeofday_two_arguments = no; then
14981
14982 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14983
14984 fi
14985 fi
14986 fi
14987
14988 ok_so_far=yes
14989 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14990 if test "x$ac_cv_func_socket" = xyes; then :
14991
14992 else
14993 ok_so_far=no
14994 fi
14995
14996 if test $ok_so_far = yes; then
14997 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14998 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
14999
15000 else
15001 ok_so_far=no
15002 fi
15003
15004
15005 fi
15006 if test $ok_so_far = yes; then
15007 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15008 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
15009
15010 else
15011 ok_so_far=no
15012 fi
15013
15014
15015 fi
15016 if test $ok_so_far = yes; then
15017
15018 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15019
15020 fi
15021
15022 if test -f /usr/lpp/X11/bin/smt.exp; then
15023
15024 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15025
15026 fi
15027
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15029 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15030 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15032 $as_echo "yes" >&6; }
15033
15034 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15035
15036 else
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15038 $as_echo "no" >&6; }
15039 fi
15040
15041 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15042 if test "x$ac_cv_type_pid_t" = xyes; then :
15043
15044 else
15045
15046 cat >>confdefs.h <<_ACEOF
15047 #define pid_t int
15048 _ACEOF
15049
15050 fi
15051
15052 for ac_header in vfork.h
15053 do :
15054 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15055 if test "x$ac_cv_header_vfork_h" = xyes; then :
15056 cat >>confdefs.h <<_ACEOF
15057 #define HAVE_VFORK_H 1
15058 _ACEOF
15059
15060 fi
15061
15062 done
15063
15064 for ac_func in fork vfork
15065 do :
15066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15068 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15069 cat >>confdefs.h <<_ACEOF
15070 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15071 _ACEOF
15072
15073 fi
15074 done
15075
15076 if test "x$ac_cv_func_fork" = xyes; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15078 $as_echo_n "checking for working fork... " >&6; }
15079 if ${ac_cv_func_fork_works+:} false; then :
15080 $as_echo_n "(cached) " >&6
15081 else
15082 if test "$cross_compiling" = yes; then :
15083 ac_cv_func_fork_works=cross
15084 else
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 $ac_includes_default
15088 int
15089 main ()
15090 {
15091
15092 /* By Ruediger Kuhlmann. */
15093 return fork () < 0;
15094
15095 ;
15096 return 0;
15097 }
15098 _ACEOF
15099 if ac_fn_c_try_run "$LINENO"; then :
15100 ac_cv_func_fork_works=yes
15101 else
15102 ac_cv_func_fork_works=no
15103 fi
15104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15105 conftest.$ac_objext conftest.beam conftest.$ac_ext
15106 fi
15107
15108 fi
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15110 $as_echo "$ac_cv_func_fork_works" >&6; }
15111
15112 else
15113 ac_cv_func_fork_works=$ac_cv_func_fork
15114 fi
15115 if test "x$ac_cv_func_fork_works" = xcross; then
15116 case $host in
15117 *-*-amigaos* | *-*-msdosdjgpp*)
15118 # Override, as these systems have only a dummy fork() stub
15119 ac_cv_func_fork_works=no
15120 ;;
15121 *)
15122 ac_cv_func_fork_works=yes
15123 ;;
15124 esac
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15126 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15127 fi
15128 ac_cv_func_vfork_works=$ac_cv_func_vfork
15129 if test "x$ac_cv_func_vfork" = xyes; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15131 $as_echo_n "checking for working vfork... " >&6; }
15132 if ${ac_cv_func_vfork_works+:} false; then :
15133 $as_echo_n "(cached) " >&6
15134 else
15135 if test "$cross_compiling" = yes; then :
15136 ac_cv_func_vfork_works=cross
15137 else
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 /* Thanks to Paul Eggert for this test. */
15141 $ac_includes_default
15142 #include <sys/wait.h>
15143 #ifdef HAVE_VFORK_H
15144 # include <vfork.h>
15145 #endif
15146 /* On some sparc systems, changes by the child to local and incoming
15147 argument registers are propagated back to the parent. The compiler
15148 is told about this with #include <vfork.h>, but some compilers
15149 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15150 static variable whose address is put into a register that is
15151 clobbered by the vfork. */
15152 static void
15153 #ifdef __cplusplus
15154 sparc_address_test (int arg)
15155 # else
15156 sparc_address_test (arg) int arg;
15157 #endif
15158 {
15159 static pid_t child;
15160 if (!child) {
15161 child = vfork ();
15162 if (child < 0) {
15163 perror ("vfork");
15164 _exit(2);
15165 }
15166 if (!child) {
15167 arg = getpid();
15168 write(-1, "", 0);
15169 _exit (arg);
15170 }
15171 }
15172 }
15173
15174 int
15175 main ()
15176 {
15177 pid_t parent = getpid ();
15178 pid_t child;
15179
15180 sparc_address_test (0);
15181
15182 child = vfork ();
15183
15184 if (child == 0) {
15185 /* Here is another test for sparc vfork register problems. This
15186 test uses lots of local variables, at least as many local
15187 variables as main has allocated so far including compiler
15188 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15189 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15190 reuse the register of parent for one of the local variables,
15191 since it will think that parent can't possibly be used any more
15192 in this routine. Assigning to the local variable will thus
15193 munge parent in the parent process. */
15194 pid_t
15195 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15196 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15197 /* Convince the compiler that p..p7 are live; otherwise, it might
15198 use the same hardware register for all 8 local variables. */
15199 if (p != p1 || p != p2 || p != p3 || p != p4
15200 || p != p5 || p != p6 || p != p7)
15201 _exit(1);
15202
15203 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15204 from child file descriptors. If the child closes a descriptor
15205 before it execs or exits, this munges the parent's descriptor
15206 as well. Test for this by closing stdout in the child. */
15207 _exit(close(fileno(stdout)) != 0);
15208 } else {
15209 int status;
15210 struct stat st;
15211
15212 while (wait(&status) != child)
15213 ;
15214 return (
15215 /* Was there some problem with vforking? */
15216 child < 0
15217
15218 /* Did the child fail? (This shouldn't happen.) */
15219 || status
15220
15221 /* Did the vfork/compiler bug occur? */
15222 || parent != getpid()
15223
15224 /* Did the file descriptor bug occur? */
15225 || fstat(fileno(stdout), &st) != 0
15226 );
15227 }
15228 }
15229 _ACEOF
15230 if ac_fn_c_try_run "$LINENO"; then :
15231 ac_cv_func_vfork_works=yes
15232 else
15233 ac_cv_func_vfork_works=no
15234 fi
15235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15236 conftest.$ac_objext conftest.beam conftest.$ac_ext
15237 fi
15238
15239 fi
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15241 $as_echo "$ac_cv_func_vfork_works" >&6; }
15242
15243 fi;
15244 if test "x$ac_cv_func_fork_works" = xcross; then
15245 ac_cv_func_vfork_works=$ac_cv_func_vfork
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15247 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15248 fi
15249
15250 if test "x$ac_cv_func_vfork_works" = xyes; then
15251
15252 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15253
15254 else
15255
15256 $as_echo "#define vfork fork" >>confdefs.h
15257
15258 fi
15259 if test "x$ac_cv_func_fork_works" = xyes; then
15260
15261 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15262
15263 fi
15264
15265
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15267 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15268 if ${emacs_cv_langinfo_codeset+:} false; then :
15269 $as_echo_n "(cached) " >&6
15270 else
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 #include <langinfo.h>
15274 int
15275 main ()
15276 {
15277 char* cs = nl_langinfo(CODESET);
15278 ;
15279 return 0;
15280 }
15281 _ACEOF
15282 if ac_fn_c_try_link "$LINENO"; then :
15283 emacs_cv_langinfo_codeset=yes
15284 else
15285 emacs_cv_langinfo_codeset=no
15286 fi
15287 rm -f core conftest.err conftest.$ac_objext \
15288 conftest$ac_exeext conftest.$ac_ext
15289
15290 fi
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15292 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15293 if test $emacs_cv_langinfo_codeset = yes; then
15294
15295 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15296
15297 fi
15298
15299 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15300 if test "x$ac_cv_type_size_t" = xyes; then :
15301
15302 cat >>confdefs.h <<_ACEOF
15303 #define HAVE_SIZE_T 1
15304 _ACEOF
15305
15306
15307 fi
15308
15309
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15311 $as_echo_n "checking for mbstate_t... " >&6; }
15312 if ${ac_cv_type_mbstate_t+:} false; then :
15313 $as_echo_n "(cached) " >&6
15314 else
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 $ac_includes_default
15318 # include <wchar.h>
15319 int
15320 main ()
15321 {
15322 mbstate_t x; return sizeof x;
15323 ;
15324 return 0;
15325 }
15326 _ACEOF
15327 if ac_fn_c_try_compile "$LINENO"; then :
15328 ac_cv_type_mbstate_t=yes
15329 else
15330 ac_cv_type_mbstate_t=no
15331 fi
15332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15333 fi
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15335 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15336 if test $ac_cv_type_mbstate_t = yes; then
15337
15338 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15339
15340 else
15341
15342 $as_echo "#define mbstate_t int" >>confdefs.h
15343
15344 fi
15345
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
15347 $as_echo_n "checking for C restrict keyword... " >&6; }
15348 if ${emacs_cv_c_restrict+:} false; then :
15349 $as_echo_n "(cached) " >&6
15350 else
15351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15352 /* end confdefs.h. */
15353 void fred (int *restrict x);
15354 int
15355 main ()
15356 {
15357
15358 ;
15359 return 0;
15360 }
15361 _ACEOF
15362 if ac_fn_c_try_compile "$LINENO"; then :
15363 emacs_cv_c_restrict=yes
15364 else
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15367 void fred (int *__restrict x);
15368 int
15369 main ()
15370 {
15371
15372 ;
15373 return 0;
15374 }
15375 _ACEOF
15376 if ac_fn_c_try_compile "$LINENO"; then :
15377 emacs_cv_c_restrict=__restrict
15378 else
15379 emacs_cv_c_restrict=no
15380 fi
15381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 fi
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
15386 $as_echo "$emacs_cv_c_restrict" >&6; }
15387 case "$emacs_cv_c_restrict" in
15388 yes) emacs_restrict=restrict;;
15389 no) emacs_restrict="";;
15390 *) emacs_restrict="$emacs_cv_c_restrict";;
15391 esac
15392 if test "$emacs_restrict" != __restrict; then
15393
15394 cat >>confdefs.h <<_ACEOF
15395 #define __restrict $emacs_restrict
15396 _ACEOF
15397
15398 fi
15399
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15401 $as_echo_n "checking for C restricted array declarations... " >&6; }
15402 if ${emacs_cv_c_restrict_arr+:} false; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407 void fred (int x[__restrict]);
15408 int
15409 main ()
15410 {
15411
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_compile "$LINENO"; then :
15417 emacs_cv_c_restrict_arr=yes
15418 else
15419 emacs_cv_c_restrict_arr=no
15420 fi
15421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422 fi
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15424 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15425 if test "$emacs_cv_c_restrict_arr" = yes; then
15426
15427 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15428
15429 fi
15430
15431
15432
15433 # Set up the CFLAGS for real compilation, so we can substitute it.
15434 CFLAGS="$REAL_CFLAGS"
15435 CPPFLAGS="$REAL_CPPFLAGS"
15436
15437 ## Hack to detect a buggy GCC version.
15438 if test "x$GCC" = xyes \
15439 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15440 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15441 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15442 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15443 fi
15444
15445 #### Find out which version of Emacs this is.
15446 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
15447 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15448 if test x"${version}" = x; then
15449 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
15450 fi
15451 if test x"${version}" != x"$PACKAGE_VERSION"; then
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
15453 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
15454 fi
15455
15456 ### Specify what sort of things we'll be editing into Makefile and config.h.
15457 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15458
15459
15460 ## Unused?
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15482 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15483 ## end of LIBX_BASE, but nothing ever set it.
15484
15485
15486
15487
15488 ## Used in lwlib/Makefile.in.
15489
15490 if test -n "${machfile}"; then
15491 M_FILE="\$(srcdir)/${machfile}"
15492 else
15493 M_FILE=
15494 fi
15495 S_FILE="\$(srcdir)/${opsysfile}"
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507 cat >>confdefs.h <<_ACEOF
15508 #define EMACS_CONFIGURATION "${canonical}"
15509 _ACEOF
15510
15511
15512 cat >>confdefs.h <<_ACEOF
15513 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15514 _ACEOF
15515
15516 if test -n "$machfile"; then
15517
15518 cat >>confdefs.h <<_ACEOF
15519 #define config_machfile "${machfile}"
15520 _ACEOF
15521
15522 fi
15523
15524 cat >>confdefs.h <<_ACEOF
15525 #define config_opsysfile "${opsysfile}"
15526 _ACEOF
15527
15528
15529 XMENU_OBJ=
15530 XOBJ=
15531 FONT_OBJ=
15532 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15533
15534 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15535
15536 XMENU_OBJ=xmenu.o
15537 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15538 FONT_OBJ=xfont.o
15539 if test "$HAVE_XFT" = "yes"; then
15540 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15541 elif test "$HAVE_FREETYPE" = "yes"; then
15542 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15543 fi
15544
15545 fi
15546
15547
15548
15549
15550 WIDGET_OBJ=
15551 MOTIF_LIBW=
15552 if test "${USE_X_TOOLKIT}" != "none" ; then
15553 WIDGET_OBJ=widget.o
15554
15555 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15556
15557 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15558
15559 $as_echo "#define USE_LUCID 1" >>confdefs.h
15560
15561 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15562
15563 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15564
15565 MOTIF_LIBW=-lXm
15566 case "$opsys" in
15567 gnu-linux)
15568 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15569 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15570 ;;
15571
15572 unixware)
15573 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15574 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15575 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15576 ;;
15577
15578 aix4-2)
15579 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15580 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15581 ;;
15582 esac
15583 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15584 fi
15585 fi
15586
15587
15588 TOOLKIT_LIBW=
15589 case "$USE_X_TOOLKIT" in
15590 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15591 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15592 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15593 esac
15594
15595
15596 if test "$USE_X_TOOLKIT" = "none"; then
15597 LIBXT_OTHER="\$(LIBXSM)"
15598 OLDXMENU_TARGET="really-oldXMenu"
15599 else
15600 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15601 OLDXMENU_TARGET="really-lwlib"
15602 fi
15603
15604
15605 ## The X Menu stuff is present in the X10 distribution, but missing
15606 ## from X11. If we have X10, just use the installed library;
15607 ## otherwise, use our own copy.
15608 if test "${HAVE_X11}" = "yes" ; then
15609
15610 $as_echo "#define HAVE_X11 1" >>confdefs.h
15611
15612
15613 if test "$USE_X_TOOLKIT" = "none"; then
15614 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15615 else
15616 OLDXMENU="\${lwlibdir}/liblw.a"
15617 fi
15618 LIBXMENU="\$(OLDXMENU)"
15619 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15620 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15621 else
15622 ## For a syntactically valid Makefile; not actually used for anything.
15623 ## See comments in src/Makefile.in.
15624 OLDXMENU=nothing
15625 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15626 if test "${HAVE_X_WINDOWS}" = "yes"; then
15627 LIBXMENU="-lXMenu"
15628 else
15629 LIBXMENU=
15630 fi
15631 LIBX_OTHER=
15632 OLDXMENU_DEPS=
15633 fi
15634
15635 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15636 OLDXMENU_TARGET=
15637 OLDXMENU=nothing
15638 LIBXMENU=
15639 OLDXMENU_DEPS=
15640 fi
15641
15642
15643
15644
15645
15646
15647
15648 if test "${HAVE_MENUS}" = "yes" ; then
15649
15650 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15651
15652 fi
15653
15654 if test "${GNU_MALLOC}" = "yes" ; then
15655
15656 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15657
15658 fi
15659
15660 RALLOC_OBJ=
15661 if test "${REL_ALLOC}" = "yes" ; then
15662
15663 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15664
15665
15666 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15667 fi
15668
15669
15670 if test "$opsys" = "cygwin"; then
15671 CYGWIN_OBJ="sheap.o"
15672 ## Cygwin differs because of its unexec().
15673 PRE_ALLOC_OBJ=
15674 POST_ALLOC_OBJ=lastfile.o
15675 else
15676 CYGWIN_OBJ=
15677 PRE_ALLOC_OBJ=lastfile.o
15678 POST_ALLOC_OBJ=
15679 fi
15680
15681
15682
15683
15684
15685 case "$opsys" in
15686 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
15687
15688 darwin)
15689 ## The -headerpad option tells ld (see man page) to leave room at the
15690 ## end of the header for adding load commands. Needed for dumping.
15691 ## 0x690 is the total size of 30 segment load commands (at 56
15692 ## each); under Cocoa 31 commands are required.
15693 if test "$HAVE_NS" = "yes"; then
15694 libs_nsgui="-framework AppKit"
15695 headerpad_extra=6C8
15696 else
15697 libs_nsgui=
15698 headerpad_extra=690
15699 fi
15700 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
15701
15702 ## This is here because src/Makefile.in did some extra fiddling around
15703 ## with LD_SWITCH_SYSTEM. The cpp logic was:
15704 ## #ifndef LD_SWITCH_SYSTEM
15705 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
15706 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
15707 ## not using gcc, darwin system not on an alpha (ie darwin, since
15708 ## darwin + alpha does not occur).
15709 ## Because this was done in src/Makefile.in, the resulting part of
15710 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
15711 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
15712 ## rather than LD_SWITCH_SYSTEM.
15713 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
15714 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
15715 ;;
15716
15717 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
15718 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
15719 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
15720 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
15721 ## had different values in configure (in ac_link) and src/Makefile.in.
15722 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
15723 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
15724
15725 *) LD_SWITCH_SYSTEM_TEMACS= ;;
15726 esac
15727
15728 if test "$NS_IMPL_GNUSTEP" = "yes"; then
15729 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
15730 fi
15731
15732
15733
15734
15735 LD_FIRSTFLAG=
15736 ORDINARY_LINK=
15737 case "$opsys" in
15738 ## gnu: GNU needs its own crt0.
15739 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
15740
15741 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
15742 ## library search parth, i.e. it won't search /usr/lib for libc and
15743 ## friends. Using -nostartfiles instead avoids this problem, and
15744 ## will also work on earlier NetBSD releases.
15745 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
15746
15747 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
15748 ## MkLinux/LinuxPPC needs this.
15749 ## ibms390x only supports opsys = gnu-linux so it can be added here.
15750 gnu-*)
15751 case "$machine" in
15752 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
15753 esac
15754 ;;
15755 esac
15756
15757
15758 if test "x$ORDINARY_LINK" = "xyes"; then
15759
15760 LD_FIRSTFLAG=""
15761
15762 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
15763
15764
15765 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
15766 ## freebsd, gnu-* not on macppc|ibms390x.
15767 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
15768
15769 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
15770 ## places that are difficult to figure out at make time. Fortunately,
15771 ## these same versions allow you to pass arbitrary flags on to the
15772 ## linker, so there is no reason not to use it as a linker.
15773 ##
15774 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
15775 ## searching for libraries in its internal directories, so we have to
15776 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
15777 LD_FIRSTFLAG="-nostdlib"
15778 fi
15779
15780 ## FIXME? What setting of EDIT_LDFLAGS should this have?
15781 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
15782
15783
15784
15785
15786 ## FIXME? The logic here is not precisely the same as that above.
15787 ## There is no check here for a pre-defined LD_FIRSTFLAG.
15788 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
15789 LIB_GCC=
15790 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
15791
15792 case "$opsys" in
15793 freebsd|netbsd|openbsd) LIB_GCC= ;;
15794
15795 gnu-*)
15796 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
15797 ## build on ARM EABI under GNU/Linux. (Bug#5518)
15798 case $host_cpu in
15799 arm*)
15800 LIB_GCC="-lgcc_s"
15801 ;;
15802 *)
15803 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
15804 ## immediately undefine it again and redefine it to empty.
15805 ## Was the C_SWITCH_X_SITE part really necessary?
15806 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
15807 LIB_GCC=
15808 ;;
15809 esac
15810 ;;
15811
15812 ## Ask GCC where to find libgcc.a.
15813 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
15814 esac
15815 fi
15816
15817
15818 TOOLTIP_SUPPORT=
15819 WINDOW_SUPPORT=
15820 ## If we're using X11/GNUstep, define some consequences.
15821 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
15822
15823 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
15824
15825
15826 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
15827
15828 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
15829 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
15830
15831 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
15832 test "$HAVE_X_WINDOWS" = "yes" && \
15833 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
15834
15835 fi
15836
15837
15838
15839
15840
15841
15842
15843 #### Report on what we decided to do.
15844 #### Report GTK as a toolkit, even if it doesn't use Xt.
15845 #### It makes printing result more understandable as using GTK sets
15846 #### toolkit_scroll_bars to yes by default.
15847 if test "${HAVE_GTK}" = "yes"; then
15848 USE_X_TOOLKIT=GTK
15849 fi
15850
15851 and_machfile=
15852 if test -n "$machfile"; then
15853 and_machfile=" and \`${machfile}'"
15854 fi
15855
15856 echo "
15857 Configured for \`${canonical}'.
15858
15859 Where should the build process find the source code? ${srcdir}
15860 What operating system and machine description files should Emacs use?
15861 \`${opsysfile}'${and_machfile}
15862 What compiler should emacs be built with? ${CC} ${CFLAGS}
15863 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
15864 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
15865 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
15866 What window system should Emacs use? ${window_system}
15867 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
15868
15869 if test -n "${x_includes}"; then
15870 echo " Where do we find X Windows header files? ${x_includes}"
15871 else
15872 echo " Where do we find X Windows header files? Standard dirs"
15873 fi
15874 if test -n "${x_libraries}"; then
15875 echo " Where do we find X Windows libraries? ${x_libraries}"
15876 else
15877 echo " Where do we find X Windows libraries? Standard dirs"
15878 fi
15879
15880 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
15881 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
15882 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
15883 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
15884 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
15885 echo " Does Emacs use -lpng? ${HAVE_PNG}"
15886 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
15887 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
15888
15889 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
15890 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
15891 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
15892 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
15893 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
15894 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
15895
15896 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
15897 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
15898 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
15899 echo " Does Emacs use -lxft? ${HAVE_XFT}"
15900
15901 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15902 echo
15903
15904 if test $USE_XASSERTS = yes; then
15905 echo " Compiling with asserts turned on."
15906 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
15907 fi
15908
15909 echo
15910
15911 if test "$HAVE_NS" = "yes"; then
15912 echo
15913 echo "You must run \"make install\" in order to test the built application.
15914 The installed application will go to nextstep/Emacs.app and can be
15915 run or moved from there."
15916 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
15917 echo "The application will be fully self-contained."
15918 else
15919 echo "The lisp resources for the application will be installed under ${prefix}.
15920 You may need to run \"make install\" with sudo. The application will fail
15921 to run if these resources are not installed."
15922 fi
15923 echo
15924 fi
15925
15926
15927 # Remove any trailing slashes in these variables.
15928 test "${prefix}" != NONE &&
15929 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15930 test "${exec_prefix}" != NONE &&
15931 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15932
15933 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"
15934
15935 ac_config_commands="$ac_config_commands default"
15936
15937 cat >confcache <<\_ACEOF
15938 # This file is a shell script that caches the results of configure
15939 # tests run on this system so they can be shared between configure
15940 # scripts and configure runs, see configure's option --config-cache.
15941 # It is not useful on other systems. If it contains results you don't
15942 # want to keep, you may remove or edit it.
15943 #
15944 # config.status only pays attention to the cache file if you give it
15945 # the --recheck option to rerun configure.
15946 #
15947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15949 # following values.
15950
15951 _ACEOF
15952
15953 # The following way of writing the cache mishandles newlines in values,
15954 # but we know of no workaround that is simple, portable, and efficient.
15955 # So, we kill variables containing newlines.
15956 # Ultrix sh set writes to stderr and can't be redirected directly,
15957 # and sets the high bit in the cache file unless we assign to the vars.
15958 (
15959 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15960 eval ac_val=\$$ac_var
15961 case $ac_val in #(
15962 *${as_nl}*)
15963 case $ac_var in #(
15964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15965 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15966 esac
15967 case $ac_var in #(
15968 _ | IFS | as_nl) ;; #(
15969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15970 *) { eval $ac_var=; unset $ac_var;} ;;
15971 esac ;;
15972 esac
15973 done
15974
15975 (set) 2>&1 |
15976 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15977 *${as_nl}ac_space=\ *)
15978 # `set' does not quote correctly, so add quotes: double-quote
15979 # substitution turns \\\\ into \\, and sed turns \\ into \.
15980 sed -n \
15981 "s/'/'\\\\''/g;
15982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15983 ;; #(
15984 *)
15985 # `set' quotes correctly as required by POSIX, so do not add quotes.
15986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15987 ;;
15988 esac |
15989 sort
15990 ) |
15991 sed '
15992 /^ac_cv_env_/b end
15993 t clear
15994 :clear
15995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15996 t end
15997 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15998 :end' >>confcache
15999 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16000 if test -w "$cache_file"; then
16001 if test "x$cache_file" != "x/dev/null"; then
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16003 $as_echo "$as_me: updating cache $cache_file" >&6;}
16004 if test ! -f "$cache_file" || test -h "$cache_file"; then
16005 cat confcache >"$cache_file"
16006 else
16007 case $cache_file in #(
16008 */* | ?:*)
16009 mv -f confcache "$cache_file"$$ &&
16010 mv -f "$cache_file"$$ "$cache_file" ;; #(
16011 *)
16012 mv -f confcache "$cache_file" ;;
16013 esac
16014 fi
16015 fi
16016 else
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16018 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16019 fi
16020 fi
16021 rm -f confcache
16022
16023 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16024 # Let make expand exec_prefix.
16025 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16026
16027 DEFS=-DHAVE_CONFIG_H
16028
16029 ac_libobjs=
16030 ac_ltlibobjs=
16031 U=
16032 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16033 # 1. Remove the extension, and $U if already installed.
16034 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16035 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16037 # will be set to the directory where LIBOBJS objects are built.
16038 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16039 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16040 done
16041 LIBOBJS=$ac_libobjs
16042
16043 LTLIBOBJS=$ac_ltlibobjs
16044
16045
16046 if test -n "$EXEEXT"; then
16047 am__EXEEXT_TRUE=
16048 am__EXEEXT_FALSE='#'
16049 else
16050 am__EXEEXT_TRUE='#'
16051 am__EXEEXT_FALSE=
16052 fi
16053
16054 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16055 as_fn_error $? "conditional \"AMDEP\" was never defined.
16056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16057 fi
16058 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16059 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16061 fi
16062
16063 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16064 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
16065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16066 fi
16067
16068 gl_libobjs=
16069 gl_ltlibobjs=
16070 if test -n "$gl_LIBOBJS"; then
16071 # Remove the extension.
16072 sed_drop_objext='s/\.o$//;s/\.obj$//'
16073 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16074 gl_libobjs="$gl_libobjs $i.$ac_objext"
16075 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16076 done
16077 fi
16078 gl_LIBOBJS=$gl_libobjs
16079
16080 gl_LTLIBOBJS=$gl_ltlibobjs
16081
16082
16083
16084 gltests_libobjs=
16085 gltests_ltlibobjs=
16086 if test -n "$gltests_LIBOBJS"; then
16087 # Remove the extension.
16088 sed_drop_objext='s/\.o$//;s/\.obj$//'
16089 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16090 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16091 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16092 done
16093 fi
16094 gltests_LIBOBJS=$gltests_libobjs
16095
16096 gltests_LTLIBOBJS=$gltests_ltlibobjs
16097
16098
16099
16100 : "${CONFIG_STATUS=./config.status}"
16101 ac_write_fail=0
16102 ac_clean_files_save=$ac_clean_files
16103 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16105 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16106 as_write_fail=0
16107 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16108 #! $SHELL
16109 # Generated by $as_me.
16110 # Run this file to recreate the current configuration.
16111 # Compiler output produced by configure, useful for debugging
16112 # configure, is in config.log if it exists.
16113
16114 debug=false
16115 ac_cs_recheck=false
16116 ac_cs_silent=false
16117
16118 SHELL=\${CONFIG_SHELL-$SHELL}
16119 export SHELL
16120 _ASEOF
16121 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16122 ## -------------------- ##
16123 ## M4sh Initialization. ##
16124 ## -------------------- ##
16125
16126 # Be more Bourne compatible
16127 DUALCASE=1; export DUALCASE # for MKS sh
16128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16129 emulate sh
16130 NULLCMD=:
16131 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16132 # is contrary to our usage. Disable this feature.
16133 alias -g '${1+"$@"}'='"$@"'
16134 setopt NO_GLOB_SUBST
16135 else
16136 case `(set -o) 2>/dev/null` in #(
16137 *posix*) :
16138 set -o posix ;; #(
16139 *) :
16140 ;;
16141 esac
16142 fi
16143
16144
16145 as_nl='
16146 '
16147 export as_nl
16148 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16149 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16150 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16151 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16152 # Prefer a ksh shell builtin over an external printf program on Solaris,
16153 # but without wasting forks for bash or zsh.
16154 if test -z "$BASH_VERSION$ZSH_VERSION" \
16155 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16156 as_echo='print -r --'
16157 as_echo_n='print -rn --'
16158 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16159 as_echo='printf %s\n'
16160 as_echo_n='printf %s'
16161 else
16162 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16163 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16164 as_echo_n='/usr/ucb/echo -n'
16165 else
16166 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16167 as_echo_n_body='eval
16168 arg=$1;
16169 case $arg in #(
16170 *"$as_nl"*)
16171 expr "X$arg" : "X\\(.*\\)$as_nl";
16172 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16173 esac;
16174 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16175 '
16176 export as_echo_n_body
16177 as_echo_n='sh -c $as_echo_n_body as_echo'
16178 fi
16179 export as_echo_body
16180 as_echo='sh -c $as_echo_body as_echo'
16181 fi
16182
16183 # The user is always right.
16184 if test "${PATH_SEPARATOR+set}" != set; then
16185 PATH_SEPARATOR=:
16186 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16187 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16188 PATH_SEPARATOR=';'
16189 }
16190 fi
16191
16192
16193 # IFS
16194 # We need space, tab and new line, in precisely that order. Quoting is
16195 # there to prevent editors from complaining about space-tab.
16196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16197 # splitting by setting IFS to empty value.)
16198 IFS=" "" $as_nl"
16199
16200 # Find who we are. Look in the path if we contain no directory separator.
16201 as_myself=
16202 case $0 in #((
16203 *[\\/]* ) as_myself=$0 ;;
16204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16205 for as_dir in $PATH
16206 do
16207 IFS=$as_save_IFS
16208 test -z "$as_dir" && as_dir=.
16209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16210 done
16211 IFS=$as_save_IFS
16212
16213 ;;
16214 esac
16215 # We did not find ourselves, most probably we were run as `sh COMMAND'
16216 # in which case we are not to be found in the path.
16217 if test "x$as_myself" = x; then
16218 as_myself=$0
16219 fi
16220 if test ! -f "$as_myself"; then
16221 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16222 exit 1
16223 fi
16224
16225 # Unset variables that we do not need and which cause bugs (e.g. in
16226 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16227 # suppresses any "Segmentation fault" message there. '((' could
16228 # trigger a bug in pdksh 5.2.14.
16229 for as_var in BASH_ENV ENV MAIL MAILPATH
16230 do eval test x\${$as_var+set} = xset \
16231 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16232 done
16233 PS1='$ '
16234 PS2='> '
16235 PS4='+ '
16236
16237 # NLS nuisances.
16238 LC_ALL=C
16239 export LC_ALL
16240 LANGUAGE=C
16241 export LANGUAGE
16242
16243 # CDPATH.
16244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16245
16246
16247 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16248 # ----------------------------------------
16249 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16250 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16251 # script with STATUS, using 1 if that was 0.
16252 as_fn_error ()
16253 {
16254 as_status=$1; test $as_status -eq 0 && as_status=1
16255 if test "$4"; then
16256 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16257 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16258 fi
16259 $as_echo "$as_me: error: $2" >&2
16260 as_fn_exit $as_status
16261 } # as_fn_error
16262
16263
16264 # as_fn_set_status STATUS
16265 # -----------------------
16266 # Set $? to STATUS, without forking.
16267 as_fn_set_status ()
16268 {
16269 return $1
16270 } # as_fn_set_status
16271
16272 # as_fn_exit STATUS
16273 # -----------------
16274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16275 as_fn_exit ()
16276 {
16277 set +e
16278 as_fn_set_status $1
16279 exit $1
16280 } # as_fn_exit
16281
16282 # as_fn_unset VAR
16283 # ---------------
16284 # Portably unset VAR.
16285 as_fn_unset ()
16286 {
16287 { eval $1=; unset $1;}
16288 }
16289 as_unset=as_fn_unset
16290 # as_fn_append VAR VALUE
16291 # ----------------------
16292 # Append the text in VALUE to the end of the definition contained in VAR. Take
16293 # advantage of any shell optimizations that allow amortized linear growth over
16294 # repeated appends, instead of the typical quadratic growth present in naive
16295 # implementations.
16296 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16297 eval 'as_fn_append ()
16298 {
16299 eval $1+=\$2
16300 }'
16301 else
16302 as_fn_append ()
16303 {
16304 eval $1=\$$1\$2
16305 }
16306 fi # as_fn_append
16307
16308 # as_fn_arith ARG...
16309 # ------------------
16310 # Perform arithmetic evaluation on the ARGs, and store the result in the
16311 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16312 # must be portable across $(()) and expr.
16313 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16314 eval 'as_fn_arith ()
16315 {
16316 as_val=$(( $* ))
16317 }'
16318 else
16319 as_fn_arith ()
16320 {
16321 as_val=`expr "$@" || test $? -eq 1`
16322 }
16323 fi # as_fn_arith
16324
16325
16326 if expr a : '\(a\)' >/dev/null 2>&1 &&
16327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16328 as_expr=expr
16329 else
16330 as_expr=false
16331 fi
16332
16333 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16334 as_basename=basename
16335 else
16336 as_basename=false
16337 fi
16338
16339 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16340 as_dirname=dirname
16341 else
16342 as_dirname=false
16343 fi
16344
16345 as_me=`$as_basename -- "$0" ||
16346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16347 X"$0" : 'X\(//\)$' \| \
16348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16349 $as_echo X/"$0" |
16350 sed '/^.*\/\([^/][^/]*\)\/*$/{
16351 s//\1/
16352 q
16353 }
16354 /^X\/\(\/\/\)$/{
16355 s//\1/
16356 q
16357 }
16358 /^X\/\(\/\).*/{
16359 s//\1/
16360 q
16361 }
16362 s/.*/./; q'`
16363
16364 # Avoid depending upon Character Ranges.
16365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16368 as_cr_digits='0123456789'
16369 as_cr_alnum=$as_cr_Letters$as_cr_digits
16370
16371 ECHO_C= ECHO_N= ECHO_T=
16372 case `echo -n x` in #(((((
16373 -n*)
16374 case `echo 'xy\c'` in
16375 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16376 xy) ECHO_C='\c';;
16377 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16378 ECHO_T=' ';;
16379 esac;;
16380 *)
16381 ECHO_N='-n';;
16382 esac
16383
16384 rm -f conf$$ conf$$.exe conf$$.file
16385 if test -d conf$$.dir; then
16386 rm -f conf$$.dir/conf$$.file
16387 else
16388 rm -f conf$$.dir
16389 mkdir conf$$.dir 2>/dev/null
16390 fi
16391 if (echo >conf$$.file) 2>/dev/null; then
16392 if ln -s conf$$.file conf$$ 2>/dev/null; then
16393 as_ln_s='ln -s'
16394 # ... but there are two gotchas:
16395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16397 # In both cases, we have to default to `cp -p'.
16398 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16399 as_ln_s='cp -p'
16400 elif ln conf$$.file conf$$ 2>/dev/null; then
16401 as_ln_s=ln
16402 else
16403 as_ln_s='cp -p'
16404 fi
16405 else
16406 as_ln_s='cp -p'
16407 fi
16408 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16409 rmdir conf$$.dir 2>/dev/null
16410
16411
16412 # as_fn_mkdir_p
16413 # -------------
16414 # Create "$as_dir" as a directory, including parents if necessary.
16415 as_fn_mkdir_p ()
16416 {
16417
16418 case $as_dir in #(
16419 -*) as_dir=./$as_dir;;
16420 esac
16421 test -d "$as_dir" || eval $as_mkdir_p || {
16422 as_dirs=
16423 while :; do
16424 case $as_dir in #(
16425 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16426 *) as_qdir=$as_dir;;
16427 esac
16428 as_dirs="'$as_qdir' $as_dirs"
16429 as_dir=`$as_dirname -- "$as_dir" ||
16430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431 X"$as_dir" : 'X\(//\)[^/]' \| \
16432 X"$as_dir" : 'X\(//\)$' \| \
16433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16434 $as_echo X"$as_dir" |
16435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16436 s//\1/
16437 q
16438 }
16439 /^X\(\/\/\)[^/].*/{
16440 s//\1/
16441 q
16442 }
16443 /^X\(\/\/\)$/{
16444 s//\1/
16445 q
16446 }
16447 /^X\(\/\).*/{
16448 s//\1/
16449 q
16450 }
16451 s/.*/./; q'`
16452 test -d "$as_dir" && break
16453 done
16454 test -z "$as_dirs" || eval "mkdir $as_dirs"
16455 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16456
16457
16458 } # as_fn_mkdir_p
16459 if mkdir -p . 2>/dev/null; then
16460 as_mkdir_p='mkdir -p "$as_dir"'
16461 else
16462 test -d ./-p && rmdir ./-p
16463 as_mkdir_p=false
16464 fi
16465
16466 if test -x / >/dev/null 2>&1; then
16467 as_test_x='test -x'
16468 else
16469 if ls -dL / >/dev/null 2>&1; then
16470 as_ls_L_option=L
16471 else
16472 as_ls_L_option=
16473 fi
16474 as_test_x='
16475 eval sh -c '\''
16476 if test -d "$1"; then
16477 test -d "$1/.";
16478 else
16479 case $1 in #(
16480 -*)set "./$1";;
16481 esac;
16482 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16483 ???[sx]*):;;*)false;;esac;fi
16484 '\'' sh
16485 '
16486 fi
16487 as_executable_p=$as_test_x
16488
16489 # Sed expression to map a string onto a valid CPP name.
16490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16491
16492 # Sed expression to map a string onto a valid variable name.
16493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16494
16495
16496 exec 6>&1
16497 ## ----------------------------------- ##
16498 ## Main body of $CONFIG_STATUS script. ##
16499 ## ----------------------------------- ##
16500 _ASEOF
16501 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16502
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 # Save the log message, to keep $0 and so on meaningful, and to
16505 # report actual input values of CONFIG_FILES etc. instead of their
16506 # values after options handling.
16507 ac_log="
16508 This file was extended by emacs $as_me 24.0.50, which was
16509 generated by GNU Autoconf 2.68. Invocation command line was
16510
16511 CONFIG_FILES = $CONFIG_FILES
16512 CONFIG_HEADERS = $CONFIG_HEADERS
16513 CONFIG_LINKS = $CONFIG_LINKS
16514 CONFIG_COMMANDS = $CONFIG_COMMANDS
16515 $ $0 $@
16516
16517 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16518 "
16519
16520 _ACEOF
16521
16522 case $ac_config_files in *"
16523 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16524 esac
16525
16526 case $ac_config_headers in *"
16527 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16528 esac
16529
16530
16531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16532 # Files that config.status was made for.
16533 config_files="$ac_config_files"
16534 config_headers="$ac_config_headers"
16535 config_commands="$ac_config_commands"
16536
16537 _ACEOF
16538
16539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16540 ac_cs_usage="\
16541 \`$as_me' instantiates files and other configuration actions
16542 from templates according to the current configuration. Unless the files
16543 and actions are specified as TAGs, all are instantiated by default.
16544
16545 Usage: $0 [OPTION]... [TAG]...
16546
16547 -h, --help print this help, then exit
16548 -V, --version print version number and configuration settings, then exit
16549 --config print configuration, then exit
16550 -q, --quiet, --silent
16551 do not print progress messages
16552 -d, --debug don't remove temporary files
16553 --recheck update $as_me by reconfiguring in the same conditions
16554 --file=FILE[:TEMPLATE]
16555 instantiate the configuration file FILE
16556 --header=FILE[:TEMPLATE]
16557 instantiate the configuration header FILE
16558
16559 Configuration files:
16560 $config_files
16561
16562 Configuration headers:
16563 $config_headers
16564
16565 Configuration commands:
16566 $config_commands
16567
16568 Report bugs to the package provider."
16569
16570 _ACEOF
16571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16572 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16573 ac_cs_version="\\
16574 emacs config.status 24.0.50
16575 configured by $0, generated by GNU Autoconf 2.68,
16576 with options \\"\$ac_cs_config\\"
16577
16578 Copyright (C) 2010 Free Software Foundation, Inc.
16579 This config.status script is free software; the Free Software Foundation
16580 gives unlimited permission to copy, distribute and modify it."
16581
16582 ac_pwd='$ac_pwd'
16583 srcdir='$srcdir'
16584 INSTALL='$INSTALL'
16585 MKDIR_P='$MKDIR_P'
16586 AWK='$AWK'
16587 test -n "\$AWK" || AWK=awk
16588 _ACEOF
16589
16590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16591 # The default lists apply if the user does not specify any file.
16592 ac_need_defaults=:
16593 while test $# != 0
16594 do
16595 case $1 in
16596 --*=?*)
16597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16599 ac_shift=:
16600 ;;
16601 --*=)
16602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16603 ac_optarg=
16604 ac_shift=:
16605 ;;
16606 *)
16607 ac_option=$1
16608 ac_optarg=$2
16609 ac_shift=shift
16610 ;;
16611 esac
16612
16613 case $ac_option in
16614 # Handling of the options.
16615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16616 ac_cs_recheck=: ;;
16617 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16618 $as_echo "$ac_cs_version"; exit ;;
16619 --config | --confi | --conf | --con | --co | --c )
16620 $as_echo "$ac_cs_config"; exit ;;
16621 --debug | --debu | --deb | --de | --d | -d )
16622 debug=: ;;
16623 --file | --fil | --fi | --f )
16624 $ac_shift
16625 case $ac_optarg in
16626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16627 '') as_fn_error $? "missing file argument" ;;
16628 esac
16629 as_fn_append CONFIG_FILES " '$ac_optarg'"
16630 ac_need_defaults=false;;
16631 --header | --heade | --head | --hea )
16632 $ac_shift
16633 case $ac_optarg in
16634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16635 esac
16636 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16637 ac_need_defaults=false;;
16638 --he | --h)
16639 # Conflict between --help and --header
16640 as_fn_error $? "ambiguous option: \`$1'
16641 Try \`$0 --help' for more information.";;
16642 --help | --hel | -h )
16643 $as_echo "$ac_cs_usage"; exit ;;
16644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16645 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16646 ac_cs_silent=: ;;
16647
16648 # This is an error.
16649 -*) as_fn_error $? "unrecognized option: \`$1'
16650 Try \`$0 --help' for more information." ;;
16651
16652 *) as_fn_append ac_config_targets " $1"
16653 ac_need_defaults=false ;;
16654
16655 esac
16656 shift
16657 done
16658
16659 ac_configure_extra_args=
16660
16661 if $ac_cs_silent; then
16662 exec 6>/dev/null
16663 ac_configure_extra_args="$ac_configure_extra_args --silent"
16664 fi
16665
16666 _ACEOF
16667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16668 if \$ac_cs_recheck; then
16669 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16670 shift
16671 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16672 CONFIG_SHELL='$SHELL'
16673 export CONFIG_SHELL
16674 exec "\$@"
16675 fi
16676
16677 _ACEOF
16678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16679 exec 5>>config.log
16680 {
16681 echo
16682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16683 ## Running $as_me. ##
16684 _ASBOX
16685 $as_echo "$ac_log"
16686 } >&5
16687
16688 _ACEOF
16689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16690 #
16691 # INIT-COMMANDS
16692 #
16693 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16694 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
16695
16696 _ACEOF
16697
16698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16699
16700 # Handling of arguments.
16701 for ac_config_target in $ac_config_targets
16702 do
16703 case $ac_config_target in
16704 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16705 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16706 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16707 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16708 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
16709 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
16710 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
16711 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
16712 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
16713 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
16714 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16715 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
16716 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
16717 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
16718 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16719
16720 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16721 esac
16722 done
16723
16724
16725 # If the user did not use the arguments to specify the items to instantiate,
16726 # then the envvar interface is used. Set only those that are not.
16727 # We use the long form for the default assignment because of an extremely
16728 # bizarre bug on SunOS 4.1.3.
16729 if $ac_need_defaults; then
16730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16731 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16732 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16733 fi
16734
16735 # Have a temporary directory for convenience. Make it in the build tree
16736 # simply because there is no reason against having it here, and in addition,
16737 # creating and moving files from /tmp can sometimes cause problems.
16738 # Hook for its removal unless debugging.
16739 # Note that there is a small window in which the directory will not be cleaned:
16740 # after its creation but before its name has been assigned to `$tmp'.
16741 $debug ||
16742 {
16743 tmp= ac_tmp=
16744 trap 'exit_status=$?
16745 : "${ac_tmp:=$tmp}"
16746 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16747 ' 0
16748 trap 'as_fn_exit 1' 1 2 13 15
16749 }
16750 # Create a (secure) tmp directory for tmp files.
16751
16752 {
16753 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16754 test -d "$tmp"
16755 } ||
16756 {
16757 tmp=./conf$$-$RANDOM
16758 (umask 077 && mkdir "$tmp")
16759 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16760 ac_tmp=$tmp
16761
16762 # Set up the scripts for CONFIG_FILES section.
16763 # No need to generate them if there are no CONFIG_FILES.
16764 # This happens for instance with `./config.status config.h'.
16765 if test -n "$CONFIG_FILES"; then
16766
16767 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16768 ac_cs_awk_getline=:
16769 ac_cs_awk_pipe_init=
16770 ac_cs_awk_read_file='
16771 while ((getline aline < (F[key])) > 0)
16772 print(aline)
16773 close(F[key])'
16774 ac_cs_awk_pipe_fini=
16775 else
16776 ac_cs_awk_getline=false
16777 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16778 ac_cs_awk_read_file='
16779 print "|#_!!_#|"
16780 print "cat " F[key] " &&"
16781 '$ac_cs_awk_pipe_init
16782 # The final `:' finishes the AND list.
16783 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16784 fi
16785 ac_cr=`echo X | tr X '\015'`
16786 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16787 # But we know of no other shell where ac_cr would be empty at this
16788 # point, so we can use a bashism as a fallback.
16789 if test "x$ac_cr" = x; then
16790 eval ac_cr=\$\'\\r\'
16791 fi
16792 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16793 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16794 ac_cs_awk_cr='\\r'
16795 else
16796 ac_cs_awk_cr=$ac_cr
16797 fi
16798
16799 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16800 _ACEOF
16801
16802 # Create commands to substitute file output variables.
16803 {
16804 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16805 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16806 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16807 echo "_ACAWK" &&
16808 echo "_ACEOF"
16809 } >conf$$files.sh &&
16810 . ./conf$$files.sh ||
16811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16812 rm -f conf$$files.sh
16813
16814 {
16815 echo "cat >conf$$subs.awk <<_ACEOF" &&
16816 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16817 echo "_ACEOF"
16818 } >conf$$subs.sh ||
16819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16820 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16821 ac_delim='%!_!# '
16822 for ac_last_try in false false false false false :; do
16823 . ./conf$$subs.sh ||
16824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16825
16826 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16827 if test $ac_delim_n = $ac_delim_num; then
16828 break
16829 elif $ac_last_try; then
16830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16831 else
16832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16833 fi
16834 done
16835 rm -f conf$$subs.sh
16836
16837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16838 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16839 _ACEOF
16840 sed -n '
16841 h
16842 s/^/S["/; s/!.*/"]=/
16843 p
16844 g
16845 s/^[^!]*!//
16846 :repl
16847 t repl
16848 s/'"$ac_delim"'$//
16849 t delim
16850 :nl
16851 h
16852 s/\(.\{148\}\)..*/\1/
16853 t more1
16854 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16855 p
16856 n
16857 b repl
16858 :more1
16859 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16860 p
16861 g
16862 s/.\{148\}//
16863 t nl
16864 :delim
16865 h
16866 s/\(.\{148\}\)..*/\1/
16867 t more2
16868 s/["\\]/\\&/g; s/^/"/; s/$/"/
16869 p
16870 b
16871 :more2
16872 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16873 p
16874 g
16875 s/.\{148\}//
16876 t delim
16877 ' <conf$$subs.awk | sed '
16878 /^[^""]/{
16879 N
16880 s/\n//
16881 }
16882 ' >>$CONFIG_STATUS || ac_write_fail=1
16883 rm -f conf$$subs.awk
16884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16885 _ACAWK
16886 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16887 for (key in S) S_is_set[key] = 1
16888 FS = "\a"
16889 \$ac_cs_awk_pipe_init
16890 }
16891 {
16892 line = $ 0
16893 nfields = split(line, field, "@")
16894 substed = 0
16895 len = length(field[1])
16896 for (i = 2; i < nfields; i++) {
16897 key = field[i]
16898 keylen = length(key)
16899 if (S_is_set[key]) {
16900 value = S[key]
16901 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16902 len += length(value) + length(field[++i])
16903 substed = 1
16904 } else
16905 len += 1 + keylen
16906 }
16907 if (nfields == 3 && !substed) {
16908 key = field[2]
16909 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16910 \$ac_cs_awk_read_file
16911 next
16912 }
16913 }
16914 print line
16915 }
16916 \$ac_cs_awk_pipe_fini
16917 _ACAWK
16918 _ACEOF
16919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16922 else
16923 cat
16924 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16925 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16926 _ACEOF
16927
16928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16930 # trailing colons and then remove the whole line if VPATH becomes empty
16931 # (actually we leave an empty line to preserve line numbers).
16932 if test "x$srcdir" = x.; then
16933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16934 h
16935 s///
16936 s/^/:/
16937 s/[ ]*$/:/
16938 s/:\$(srcdir):/:/g
16939 s/:\${srcdir}:/:/g
16940 s/:@srcdir@:/:/g
16941 s/^:*//
16942 s/:*$//
16943 x
16944 s/\(=[ ]*\).*/\1/
16945 G
16946 s/\n//
16947 s/^[^=]*=[ ]*$//
16948 }'
16949 fi
16950
16951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16952 fi # test -n "$CONFIG_FILES"
16953
16954 # Set up the scripts for CONFIG_HEADERS section.
16955 # No need to generate them if there are no CONFIG_HEADERS.
16956 # This happens for instance with `./config.status Makefile'.
16957 if test -n "$CONFIG_HEADERS"; then
16958 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16959 BEGIN {
16960 _ACEOF
16961
16962 # Transform confdefs.h into an awk script `defines.awk', embedded as
16963 # here-document in config.status, that substitutes the proper values into
16964 # config.h.in to produce config.h.
16965
16966 # Create a delimiter string that does not exist in confdefs.h, to ease
16967 # handling of long lines.
16968 ac_delim='%!_!# '
16969 for ac_last_try in false false :; do
16970 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16971 if test -z "$ac_tt"; then
16972 break
16973 elif $ac_last_try; then
16974 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16975 else
16976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16977 fi
16978 done
16979
16980 # For the awk script, D is an array of macro values keyed by name,
16981 # likewise P contains macro parameters if any. Preserve backslash
16982 # newline sequences.
16983
16984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16985 sed -n '
16986 s/.\{148\}/&'"$ac_delim"'/g
16987 t rset
16988 :rset
16989 s/^[ ]*#[ ]*define[ ][ ]*/ /
16990 t def
16991 d
16992 :def
16993 s/\\$//
16994 t bsnl
16995 s/["\\]/\\&/g
16996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16997 D["\1"]=" \3"/p
16998 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16999 d
17000 :bsnl
17001 s/["\\]/\\&/g
17002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17003 D["\1"]=" \3\\\\\\n"\\/p
17004 t cont
17005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17006 t cont
17007 d
17008 :cont
17009 n
17010 s/.\{148\}/&'"$ac_delim"'/g
17011 t clear
17012 :clear
17013 s/\\$//
17014 t bsnlc
17015 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17016 d
17017 :bsnlc
17018 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17019 b cont
17020 ' <confdefs.h | sed '
17021 s/'"$ac_delim"'/"\\\
17022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17023
17024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17025 for (key in D) D_is_set[key] = 1
17026 FS = "\a"
17027 }
17028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17029 line = \$ 0
17030 split(line, arg, " ")
17031 if (arg[1] == "#") {
17032 defundef = arg[2]
17033 mac1 = arg[3]
17034 } else {
17035 defundef = substr(arg[1], 2)
17036 mac1 = arg[2]
17037 }
17038 split(mac1, mac2, "(") #)
17039 macro = mac2[1]
17040 prefix = substr(line, 1, index(line, defundef) - 1)
17041 if (D_is_set[macro]) {
17042 # Preserve the white space surrounding the "#".
17043 print prefix "define", macro P[macro] D[macro]
17044 next
17045 } else {
17046 # Replace #undef with comments. This is necessary, for example,
17047 # in the case of _POSIX_SOURCE, which is predefined and required
17048 # on some systems where configure will not decide to define it.
17049 if (defundef == "undef") {
17050 print "/*", prefix defundef, macro, "*/"
17051 next
17052 }
17053 }
17054 }
17055 { print }
17056 _ACAWK
17057 _ACEOF
17058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17059 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17060 fi # test -n "$CONFIG_HEADERS"
17061
17062
17063 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17064 shift
17065 for ac_tag
17066 do
17067 case $ac_tag in
17068 :[FHLC]) ac_mode=$ac_tag; continue;;
17069 esac
17070 case $ac_mode$ac_tag in
17071 :[FHL]*:*);;
17072 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17073 :[FH]-) ac_tag=-:-;;
17074 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17075 esac
17076 ac_save_IFS=$IFS
17077 IFS=:
17078 set x $ac_tag
17079 IFS=$ac_save_IFS
17080 shift
17081 ac_file=$1
17082 shift
17083
17084 case $ac_mode in
17085 :L) ac_source=$1;;
17086 :[FH])
17087 ac_file_inputs=
17088 for ac_f
17089 do
17090 case $ac_f in
17091 -) ac_f="$ac_tmp/stdin";;
17092 *) # Look for the file first in the build tree, then in the source tree
17093 # (if the path is not absolute). The absolute path cannot be DOS-style,
17094 # because $ac_f cannot contain `:'.
17095 test -f "$ac_f" ||
17096 case $ac_f in
17097 [\\/$]*) false;;
17098 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17099 esac ||
17100 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17101 esac
17102 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17103 as_fn_append ac_file_inputs " '$ac_f'"
17104 done
17105
17106 # Let's still pretend it is `configure' which instantiates (i.e., don't
17107 # use $as_me), people would be surprised to read:
17108 # /* config.h. Generated by config.status. */
17109 configure_input='Generated from '`
17110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17111 `' by configure.'
17112 if test x"$ac_file" != x-; then
17113 configure_input="$ac_file. $configure_input"
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17115 $as_echo "$as_me: creating $ac_file" >&6;}
17116 fi
17117 # Neutralize special characters interpreted by sed in replacement strings.
17118 case $configure_input in #(
17119 *\&* | *\|* | *\\* )
17120 ac_sed_conf_input=`$as_echo "$configure_input" |
17121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17122 *) ac_sed_conf_input=$configure_input;;
17123 esac
17124
17125 case $ac_tag in
17126 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17128 esac
17129 ;;
17130 esac
17131
17132 ac_dir=`$as_dirname -- "$ac_file" ||
17133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17134 X"$ac_file" : 'X\(//\)[^/]' \| \
17135 X"$ac_file" : 'X\(//\)$' \| \
17136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17137 $as_echo X"$ac_file" |
17138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17139 s//\1/
17140 q
17141 }
17142 /^X\(\/\/\)[^/].*/{
17143 s//\1/
17144 q
17145 }
17146 /^X\(\/\/\)$/{
17147 s//\1/
17148 q
17149 }
17150 /^X\(\/\).*/{
17151 s//\1/
17152 q
17153 }
17154 s/.*/./; q'`
17155 as_dir="$ac_dir"; as_fn_mkdir_p
17156 ac_builddir=.
17157
17158 case "$ac_dir" in
17159 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17160 *)
17161 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17162 # A ".." for each directory in $ac_dir_suffix.
17163 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17164 case $ac_top_builddir_sub in
17165 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17166 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17167 esac ;;
17168 esac
17169 ac_abs_top_builddir=$ac_pwd
17170 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17171 # for backward compatibility:
17172 ac_top_builddir=$ac_top_build_prefix
17173
17174 case $srcdir in
17175 .) # We are building in place.
17176 ac_srcdir=.
17177 ac_top_srcdir=$ac_top_builddir_sub
17178 ac_abs_top_srcdir=$ac_pwd ;;
17179 [\\/]* | ?:[\\/]* ) # Absolute name.
17180 ac_srcdir=$srcdir$ac_dir_suffix;
17181 ac_top_srcdir=$srcdir
17182 ac_abs_top_srcdir=$srcdir ;;
17183 *) # Relative name.
17184 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17185 ac_top_srcdir=$ac_top_build_prefix$srcdir
17186 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17187 esac
17188 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17189
17190
17191 case $ac_mode in
17192 :F)
17193 #
17194 # CONFIG_FILE
17195 #
17196
17197 case $INSTALL in
17198 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17199 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17200 esac
17201 ac_MKDIR_P=$MKDIR_P
17202 case $MKDIR_P in
17203 [\\/$]* | ?:[\\/]* ) ;;
17204 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17205 esac
17206 _ACEOF
17207
17208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17209 # If the template does not know about datarootdir, expand it.
17210 # FIXME: This hack should be removed a few years after 2.60.
17211 ac_datarootdir_hack=; ac_datarootdir_seen=
17212 ac_sed_dataroot='
17213 /datarootdir/ {
17214 p
17215 q
17216 }
17217 /@datadir@/p
17218 /@docdir@/p
17219 /@infodir@/p
17220 /@localedir@/p
17221 /@mandir@/p'
17222 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17223 *datarootdir*) ac_datarootdir_seen=yes;;
17224 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17226 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17227 _ACEOF
17228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17229 ac_datarootdir_hack='
17230 s&@datadir@&$datadir&g
17231 s&@docdir@&$docdir&g
17232 s&@infodir@&$infodir&g
17233 s&@localedir@&$localedir&g
17234 s&@mandir@&$mandir&g
17235 s&\\\${datarootdir}&$datarootdir&g' ;;
17236 esac
17237 _ACEOF
17238
17239 # Neutralize VPATH when `$srcdir' = `.'.
17240 # Shell code in configure.ac might set extrasub.
17241 # FIXME: do we really want to maintain this feature?
17242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17243 ac_sed_extra="$ac_vpsub
17244 $extrasub
17245 _ACEOF
17246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17247 :t
17248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17249 s|@configure_input@|$ac_sed_conf_input|;t t
17250 s&@top_builddir@&$ac_top_builddir_sub&;t t
17251 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17252 s&@srcdir@&$ac_srcdir&;t t
17253 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17254 s&@top_srcdir@&$ac_top_srcdir&;t t
17255 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17256 s&@builddir@&$ac_builddir&;t t
17257 s&@abs_builddir@&$ac_abs_builddir&;t t
17258 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17259 s&@INSTALL@&$ac_INSTALL&;t t
17260 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17261 $ac_datarootdir_hack
17262 "
17263 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17264 if $ac_cs_awk_getline; then
17265 $AWK -f "$ac_tmp/subs.awk"
17266 else
17267 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17268 fi \
17269 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17270
17271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17272 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17274 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17276 which seems to be undefined. Please make sure it is defined" >&5
17277 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17278 which seems to be undefined. Please make sure it is defined" >&2;}
17279
17280 rm -f "$ac_tmp/stdin"
17281 case $ac_file in
17282 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17283 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17284 esac \
17285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17286 ;;
17287 :H)
17288 #
17289 # CONFIG_HEADER
17290 #
17291 if test x"$ac_file" != x-; then
17292 {
17293 $as_echo "/* $configure_input */" \
17294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17295 } >"$ac_tmp/config.h" \
17296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17297 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17299 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17300 else
17301 rm -f "$ac_file"
17302 mv "$ac_tmp/config.h" "$ac_file" \
17303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17304 fi
17305 else
17306 $as_echo "/* $configure_input */" \
17307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17308 || as_fn_error $? "could not create -" "$LINENO" 5
17309 fi
17310 # Compute "$ac_file"'s index in $config_headers.
17311 _am_arg="$ac_file"
17312 _am_stamp_count=1
17313 for _am_header in $config_headers :; do
17314 case $_am_header in
17315 $_am_arg | $_am_arg:* )
17316 break ;;
17317 * )
17318 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17319 esac
17320 done
17321 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17322 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17323 X"$_am_arg" : 'X\(//\)[^/]' \| \
17324 X"$_am_arg" : 'X\(//\)$' \| \
17325 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17326 $as_echo X"$_am_arg" |
17327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17328 s//\1/
17329 q
17330 }
17331 /^X\(\/\/\)[^/].*/{
17332 s//\1/
17333 q
17334 }
17335 /^X\(\/\/\)$/{
17336 s//\1/
17337 q
17338 }
17339 /^X\(\/\).*/{
17340 s//\1/
17341 q
17342 }
17343 s/.*/./; q'`/stamp-h$_am_stamp_count
17344 ;;
17345
17346 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17347 $as_echo "$as_me: executing $ac_file commands" >&6;}
17348 ;;
17349 esac
17350
17351
17352 case $ac_file$ac_mode in
17353 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17354 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17355 # are listed without --file. Let's play safe and only enable the eval
17356 # if we detect the quoting.
17357 case $CONFIG_FILES in
17358 *\'*) eval set x "$CONFIG_FILES" ;;
17359 *) set x $CONFIG_FILES ;;
17360 esac
17361 shift
17362 for mf
17363 do
17364 # Strip MF so we end up with the name of the file.
17365 mf=`echo "$mf" | sed -e 's/:.*$//'`
17366 # Check whether this is an Automake generated Makefile or not.
17367 # We used to match only the files named `Makefile.in', but
17368 # some people rename them; so instead we look at the file content.
17369 # Grep'ing the first line is not enough: some people post-process
17370 # each Makefile.in and add a new line on top of each file to say so.
17371 # Grep'ing the whole file is not good either: AIX grep has a line
17372 # limit of 2048, but all sed's we know have understand at least 4000.
17373 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17374 dirpart=`$as_dirname -- "$mf" ||
17375 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17376 X"$mf" : 'X\(//\)[^/]' \| \
17377 X"$mf" : 'X\(//\)$' \| \
17378 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17379 $as_echo X"$mf" |
17380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17381 s//\1/
17382 q
17383 }
17384 /^X\(\/\/\)[^/].*/{
17385 s//\1/
17386 q
17387 }
17388 /^X\(\/\/\)$/{
17389 s//\1/
17390 q
17391 }
17392 /^X\(\/\).*/{
17393 s//\1/
17394 q
17395 }
17396 s/.*/./; q'`
17397 else
17398 continue
17399 fi
17400 # Extract the definition of DEPDIR, am__include, and am__quote
17401 # from the Makefile without running `make'.
17402 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17403 test -z "$DEPDIR" && continue
17404 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17405 test -z "am__include" && continue
17406 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17407 # When using ansi2knr, U may be empty or an underscore; expand it
17408 U=`sed -n 's/^U = //p' < "$mf"`
17409 # Find all dependency output files, they are included files with
17410 # $(DEPDIR) in their names. We invoke sed twice because it is the
17411 # simplest approach to changing $(DEPDIR) to its actual value in the
17412 # expansion.
17413 for file in `sed -n "
17414 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17415 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17416 # Make sure the directory exists.
17417 test -f "$dirpart/$file" && continue
17418 fdir=`$as_dirname -- "$file" ||
17419 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17420 X"$file" : 'X\(//\)[^/]' \| \
17421 X"$file" : 'X\(//\)$' \| \
17422 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17423 $as_echo X"$file" |
17424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17425 s//\1/
17426 q
17427 }
17428 /^X\(\/\/\)[^/].*/{
17429 s//\1/
17430 q
17431 }
17432 /^X\(\/\/\)$/{
17433 s//\1/
17434 q
17435 }
17436 /^X\(\/\).*/{
17437 s//\1/
17438 q
17439 }
17440 s/.*/./; q'`
17441 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17442 # echo "creating $dirpart/$file"
17443 echo '# dummy' > "$dirpart/$file"
17444 done
17445 done
17446 }
17447 ;;
17448 "default":C)
17449
17450 ### Make the necessary directories, if they don't exist.
17451 for dir in etc lisp ; do
17452 test -d ${dir} || mkdir ${dir}
17453 done
17454
17455 echo creating src/epaths.h
17456 ${MAKE-make} epaths-force
17457
17458 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
17459 echo creating src/.gdbinit
17460 echo source $srcdir/src/.gdbinit > src/.gdbinit
17461 fi
17462
17463 ;;
17464
17465 esac
17466 done # for ac_tag
17467
17468
17469 as_fn_exit 0
17470 _ACEOF
17471 ac_clean_files=$ac_clean_files_save
17472
17473 test $ac_write_fail = 0 ||
17474 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17475
17476
17477 # configure is writing to config.log, and then calls config.status.
17478 # config.status does its own redirection, appending to config.log.
17479 # Unfortunately, on DOS this fails, as config.log is still kept open
17480 # by configure, so config.status won't be able to write to it; its
17481 # output is simply discarded. So we exec the FD to /dev/null,
17482 # effectively closing config.log, so it can be properly (re)opened and
17483 # appended to by config.status. When coming back to configure, we
17484 # need to make the FD available again.
17485 if test "$no_create" != yes; then
17486 ac_cs_success=:
17487 ac_config_status_args=
17488 test "$silent" = yes &&
17489 ac_config_status_args="$ac_config_status_args --quiet"
17490 exec 5>/dev/null
17491 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17492 exec 5>>config.log
17493 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17494 # would make configure fail if this is the last instruction.
17495 $ac_cs_success || as_fn_exit 1
17496 fi
17497 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17499 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17500 fi
17501
17502