Regenerate.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_config_libobj_dir=src
603 ac_header_list=
604 ac_func_list=
605 ac_subst_vars='gltests_LTLIBOBJS
606 gltests_LIBOBJS
607 gl_LTLIBOBJS
608 gl_LIBOBJS
609 am__EXEEXT_FALSE
610 am__EXEEXT_TRUE
611 LTLIBOBJS
612 WINDOW_SUPPORT
613 TOOLTIP_SUPPORT
614 MOUSE_SUPPORT
615 LIB_GCC
616 LD_FIRSTFLAG
617 LD_SWITCH_SYSTEM_TEMACS
618 POST_ALLOC_OBJ
619 PRE_ALLOC_OBJ
620 CYGWIN_OBJ
621 RALLOC_OBJ
622 OLDXMENU_DEPS
623 LIBX_OTHER
624 LIBXMENU
625 OLDXMENU
626 OLDXMENU_TARGET
627 LIBXT_OTHER
628 TOOLKIT_LIBW
629 WIDGET_OBJ
630 XOBJ
631 XMENU_OBJ
632 FONT_OBJ
633 OTHER_FILES
634 GNU_OBJC_CFLAGS
635 ns_appsrc
636 ns_appresdir
637 ns_appbindir
638 ns_appdir
639 S_FILE
640 M_FILE
641 X_TOOLKIT_TYPE
642 C_SWITCH_X_SYSTEM
643 C_SWITCH_X_SITE
644 LD_SWITCH_X_SITE
645 gameuser
646 gamedir
647 bitmapdir
648 archlibdir
649 etcdir
650 x_default_search_path
651 lisppath
652 locallisppath
653 lispdir
654 srcdir
655 canonical
656 configuration
657 version
658 KRB4LIB
659 DESLIB
660 KRB5LIB
661 CRYPTOLIB
662 COM_ERRLIB
663 LIBRESOLV
664 LIBHESIOD
665 TERMCAP_OBJ
666 LIBS_TERMCAP
667 LIBGNU_LTLIBDEPS
668 LIBGNU_LIBDEPS
669 gltests_WITNESS
670 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
671 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
672 TIME_H_DEFINES_STRUCT_TIMESPEC
673 NEXT_AS_FIRST_DIRECTIVE_TIME_H
674 NEXT_TIME_H
675 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
676 NEXT_STDDEF_H
677 PRAGMA_COLUMNS
678 PRAGMA_SYSTEM_HEADER
679 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
680 INCLUDE_NEXT
681 STDDEF_H
682 HAVE_WCHAR_T
683 REPLACE_NULL
684 APPLE_UNIVERSAL_BUILD
685 REPLACE_TIMEGM
686 REPLACE_NANOSLEEP
687 REPLACE_MKTIME
688 REPLACE_LOCALTIME_R
689 HAVE_TIMEGM
690 HAVE_STRPTIME
691 HAVE_NANOSLEEP
692 HAVE_DECL_LOCALTIME_R
693 GNULIB_TIME_R
694 GNULIB_TIMEGM
695 GNULIB_STRPTIME
696 GNULIB_NANOSLEEP
697 GNULIB_MKTIME
698 GL_COND_LIBTOOL_FALSE
699 GL_COND_LIBTOOL_TRUE
700 GETOPTOBJS
701 GETOPT_H
702 GETLOADAVG_LIBS
703 KMEM_GROUP
704 NEED_SETGID
705 LIBOBJS
706 BLESSMAIL_TARGET
707 LIBS_MAIL
708 liblockfile
709 ALLOCA
710 LIBXML2_LIBS
711 LIBXML2_CFLAGS
712 LIBXSM
713 LIBGPM
714 LIBGIF
715 LIBTIFF
716 LIBPNG
717 LIBJPEG
718 LIBXPM
719 FREETYPE_LIBS
720 FREETYPE_CFLAGS
721 M17N_FLT_LIBS
722 M17N_FLT_CFLAGS
723 LIBOTF_LIBS
724 LIBOTF_CFLAGS
725 XFT_LIBS
726 XFT_CFLAGS
727 FONTCONFIG_LIBS
728 FONTCONFIG_CFLAGS
729 LIBXMU
730 LIBXTR6
731 LIBGNUTLS_LIBS
732 LIBGNUTLS_CFLAGS
733 LIBSELINUX_LIBS
734 GCONF_LIBS
735 GCONF_CFLAGS
736 DBUS_OBJ
737 DBUS_LIBS
738 DBUS_CFLAGS
739 GTK_OBJ
740 GTK_LIBS
741 GTK_CFLAGS
742 IMAGEMAGICK_LIBS
743 IMAGEMAGICK_CFLAGS
744 RSVG_LIBS
745 RSVG_CFLAGS
746 VMLIMIT_OBJ
747 GMALLOC_OBJ
748 HAVE_XSERVER
749 LIB_STANDARD
750 NS_SUPPORT
751 NS_OBJ
752 TEMACS_LDFLAGS2
753 LD_SWITCH_X_SITE_AUX_RPATH
754 LD_SWITCH_X_SITE_AUX
755 XMKMF
756 DEPFLAGS
757 MKDEPDIR
758 CFLAGS_SOUND
759 ALSA_LIBS
760 ALSA_CFLAGS
761 PKG_CONFIG
762 LIBSOUND
763 START_FILES
764 LIB_MATH
765 CRT_DIR
766 LIBS_SYSTEM
767 C_SWITCH_SYSTEM
768 UNEXEC_OBJ
769 C_SWITCH_MACHINE
770 LD_SWITCH_SYSTEM
771 CANNOT_DUMP
772 HAVE_MAKEINFO
773 GZIP_PROG
774 INSTALL_INFO
775 C_WARNINGS_SWITCH
776 EGREP
777 GREP
778 CPP
779 RANLIB
780 am__fastdepCC_FALSE
781 am__fastdepCC_TRUE
782 CCDEPMODE
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__quote
787 am__include
788 DEPDIR
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 host_os
797 host_vendor
798 host_cpu
799 host
800 build_os
801 build_vendor
802 build_cpu
803 build
804 PROFILING_CFLAGS
805 MAINT
806 GZIP_INFO
807 am__untar
808 am__tar
809 AMTAR
810 am__leading_dot
811 SET_MAKE
812 AWK
813 mkdir_p
814 MKDIR_P
815 INSTALL_STRIP_PROGRAM
816 STRIP
817 install_sh
818 MAKEINFO
819 AUTOHEADER
820 AUTOMAKE
821 AUTOCONF
822 ACLOCAL
823 VERSION
824 PACKAGE
825 CYGPATH_W
826 am__isrc
827 INSTALL_DATA
828 INSTALL_SCRIPT
829 INSTALL_PROGRAM
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files='deps_frag
869 ns_frag'
870 ac_user_opts='
871 enable_option_checking
872 with_pop
873 with_kerberos
874 with_kerberos5
875 with_hesiod
876 with_mmdf
877 with_mail_unlink
878 with_mailhost
879 with_sound
880 with_sync_input
881 with_x_toolkit
882 with_xpm
883 with_jpeg
884 with_tiff
885 with_gif
886 with_png
887 with_rsvg
888 with_xml2
889 with_imagemagick
890 with_xft
891 with_libotf
892 with_m17n_flt
893 with_toolkit_scroll_bars
894 with_xaw3d
895 with_xim
896 with_ns
897 with_gpm
898 with_dbus
899 with_gconf
900 with_selinux
901 with_gnutls
902 with_makeinfo
903 with_compress_info
904 with_pkg_config_prog
905 with_crt_dir
906 with_gameuser
907 with_gnustep_conf
908 enable_ns_self_contained
909 enable_asserts
910 enable_maintainer_mode
911 enable_locallisppath
912 enable_checking
913 enable_use_lisp_union_type
914 enable_profiling
915 enable_autodepend
916 enable_dependency_tracking
917 enable_largefile
918 with_x
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP
929 CPPFLAGS
930 CPP
931 CPPFLAGS
932 XMKMF'
933
934
935 # Initialize some variables set by options.
936 ac_init_help=
937 ac_init_version=false
938 ac_unrecognized_opts=
939 ac_unrecognized_sep=
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
942 cache_file=/dev/null
943 exec_prefix=NONE
944 no_create=
945 no_recursion=
946 prefix=NONE
947 program_prefix=NONE
948 program_suffix=NONE
949 program_transform_name=s,x,x,
950 silent=
951 site=
952 srcdir=
953 verbose=
954 x_includes=NONE
955 x_libraries=NONE
956
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 includedir='${prefix}/include'
972 oldincludedir='/usr/include'
973 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974 infodir='${datarootdir}/info'
975 htmldir='${docdir}'
976 dvidir='${docdir}'
977 pdfdir='${docdir}'
978 psdir='${docdir}'
979 libdir='${exec_prefix}/lib'
980 localedir='${datarootdir}/locale'
981 mandir='${datarootdir}/man'
982
983 ac_prev=
984 ac_dashdash=
985 for ac_option
986 do
987 # If the previous option needs an argument, assign it.
988 if test -n "$ac_prev"; then
989 eval $ac_prev=\$ac_option
990 ac_prev=
991 continue
992 fi
993
994 case $ac_option in
995 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996 *=) ac_optarg= ;;
997 *) ac_optarg=yes ;;
998 esac
999
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1001
1002 case $ac_dashdash$ac_option in
1003 --)
1004 ac_dashdash=yes ;;
1005
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1010
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1015
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1022
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1025
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1030
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1037
1038 -disable-* | --disable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=no ;;
1053
1054 -docdir | --docdir | --docdi | --doc | --do)
1055 ac_prev=docdir ;;
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1058
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 ac_prev=dvidir ;;
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1063
1064 -enable-* | --enable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid feature name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073 "enable_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=\$ac_optarg ;;
1079
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1088
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1091 with_gas=yes ;;
1092
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1099
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1104
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 ac_prev=htmldir ;;
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 | --ht=*)
1109 htmldir=$ac_optarg ;;
1110
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1117
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 ac_prev=infodir ;;
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1122
1123 -libdir | --libdir | --libdi | --libd)
1124 ac_prev=libdir ;;
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1127
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1134
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1139
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1146
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 ac_prev=mandir ;;
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1151
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1154 with_fp=no ;;
1155
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1158 no_create=yes ;;
1159
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 no_recursion=yes ;;
1163
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1172
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 ac_prev=prefix ;;
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1177
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1184
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1191
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1208
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 ac_prev=pdfdir ;;
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1213
1214 -psdir | --psdir | --psdi | --psd | --ps)
1215 ac_prev=psdir ;;
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 psdir=$ac_optarg ;;
1218
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 silent=yes ;;
1222
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 ac_prev=sbindir ;;
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 | --sbi=* | --sb=*)
1227 sbindir=$ac_optarg ;;
1228
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1232 | --sha | --sh)
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 | --sha=* | --sh=*)
1238 sharedstatedir=$ac_optarg ;;
1239
1240 -site | --site | --sit)
1241 ac_prev=site ;;
1242 -site=* | --site=* | --sit=*)
1243 site=$ac_optarg ;;
1244
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 ac_prev=srcdir ;;
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1249
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1256
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1261
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 verbose=yes ;;
1264
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1267
1268 -with-* | --with-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error $? "invalid package name: $ac_useropt"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=\$ac_optarg ;;
1283
1284 -without-* | --without-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error $? "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1292 *"
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=no ;;
1299
1300 --x)
1301 # Obsolete; use --with-x.
1302 with_x=yes ;;
1303
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305 | --x-incl | --x-inc | --x-in | --x-i)
1306 ac_prev=x_includes ;;
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309 x_includes=$ac_optarg ;;
1310
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313 ac_prev=x_libraries ;;
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316 x_libraries=$ac_optarg ;;
1317
1318 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1319 Try \`$0 --help' for more information"
1320 ;;
1321
1322 *=*)
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 case $ac_envvar in #(
1326 '' | [0-9]* | *[!_$as_cr_alnum]* )
1327 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1328 esac
1329 eval $ac_envvar=\$ac_optarg
1330 export $ac_envvar ;;
1331
1332 *)
1333 # FIXME: should be removed in autoconf 3.0.
1334 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1338 ;;
1339
1340 esac
1341 done
1342
1343 if test -n "$ac_prev"; then
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345 as_fn_error $? "missing argument to $ac_option"
1346 fi
1347
1348 if test -n "$ac_unrecognized_opts"; then
1349 case $enable_option_checking in
1350 no) ;;
1351 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1352 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1353 esac
1354 fi
1355
1356 # Check all directory arguments for consistency.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1361 do
1362 eval ac_val=\$$ac_var
1363 # Remove trailing slashes.
1364 case $ac_val in
1365 */ )
1366 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1367 eval $ac_var=\$ac_val;;
1368 esac
1369 # Be sure to have absolute directory names.
1370 case $ac_val in
1371 [\\/$]* | ?:[\\/]* ) continue;;
1372 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 esac
1374 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1375 done
1376
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1380 build=$build_alias
1381 host=$host_alias
1382 target=$target_alias
1383
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used" >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1392 fi
1393 fi
1394
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398 test "$silent" = yes && exec 6>/dev/null
1399
1400
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 as_fn_error $? "working directory cannot be determined"
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 as_fn_error $? "pwd does not report name of working directory"
1407
1408
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$as_myself" ||
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418 $as_echo X"$as_myself" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
1436 srcdir=$ac_confdir
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 srcdir=..
1439 fi
1440 else
1441 ac_srcdir_defaulted=no
1442 fi
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1446 fi
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1450 pwd)`
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1454 fi
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1458 case $srcdir in
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 esac
1461 for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 done
1467
1468 #
1469 # Report the --help message.
1470 #
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1474 cat <<_ACEOF
1475 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1476
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1481
1482 Defaults for the options are specified in brackets.
1483
1484 Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking ...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 [PREFIX]
1500
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1505
1506 For better control, use the options below.
1507
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1528 _ACEOF
1529
1530 cat <<\_ACEOF
1531
1532 Program names:
1533 --program-prefix=PREFIX prepend PREFIX to installed program names
1534 --program-suffix=SUFFIX append SUFFIX to installed program names
1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536
1537 X features:
1538 --x-includes=DIR X include files are in DIR
1539 --x-libraries=DIR X library files are in DIR
1540
1541 System types:
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 _ACEOF
1545 fi
1546
1547 if test -n "$ac_init_help"; then
1548 case $ac_init_help in
1549 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1550 esac
1551 cat <<\_ACEOF
1552
1553 Optional Features:
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --disable-ns-self-contained
1558 disable self contained build under NeXTstep
1559 --enable-asserts compile code with asserts enabled
1560 --enable-maintainer-mode
1561 enable make rules and dependencies not useful (and
1562 sometimes confusing) to the casual installer
1563 --enable-locallisppath=PATH
1564 directories Emacs should search for lisp files
1565 specific to this site
1566 --enable-checking[=LIST]
1567 enable expensive run-time checks. With LIST, enable
1568 only specific categories of checks. Categories are:
1569 all,yes,no. Flags are: stringbytes, stringoverrun,
1570 stringfreelist, xmallocoverrun, conslist
1571 --enable-use-lisp-union-type
1572 use a union for the Lisp_Object data type. This is
1573 only useful for development for catching certain
1574 types of bugs.
1575 --enable-profiling build emacs with profiling support. This might not
1576 work on all platforms
1577 --enable-autodepend automatically generate dependencies to .h-files.
1578 Requires GNU Make and Gcc. Enabled if GNU Make and
1579 Gcc is found
1580 --disable-dependency-tracking speeds up one-time build
1581 --enable-dependency-tracking do not reject slow dependency extractors
1582 --disable-largefile omit support for large files
1583
1584 Optional Packages:
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1587 --without-pop don't support POP mail retrieval with movemail
1588 --with-kerberos support Kerberos-authenticated POP
1589 --with-kerberos5 support Kerberos version 5 authenticated POP
1590 --with-hesiod support Hesiod to get the POP server host
1591 --with-mmdf support MMDF mailboxes
1592 --with-mail-unlink unlink, rather than empty, mail spool after reading
1593 --with-mailhost=HOSTNAME
1594 string giving default POP mail host
1595 --without-sound don't compile with sound support
1596 --without-sync-input process async input synchronously
1597 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1598 lucid or athena, motif, no)
1599 --without-xpm don't compile with XPM image support
1600 --without-jpeg don't compile with JPEG image support
1601 --without-tiff don't compile with TIFF image support
1602 --without-gif don't compile with GIF image support
1603 --without-png don't compile with PNG image support
1604 --without-rsvg don't compile with SVG image support
1605 --without-xml2 don't compile with XML parsing support
1606 --without-imagemagick don't compile with ImageMagick image support
1607 --without-xft don't use XFT for anti aliased fonts
1608 --without-libotf don't use libotf for OpenType font support
1609 --without-m17n-flt don't use m17n-flt for text shaping
1610 --without-toolkit-scroll-bars
1611 don't use Motif or Xaw3d scroll bars
1612 --without-xaw3d don't use Xaw3d
1613 --without-xim don't use X11 XIM
1614 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1615 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1616 console
1617 --without-dbus don't compile with D-Bus support
1618 --without-gconf don't compile with GConf support
1619 --without-selinux don't compile with SELinux support
1620 --without-gnutls don't use -lgnutls for SSL/TLS support
1621 --without-makeinfo don't require makeinfo for building manuals
1622 --without-compress-info don't compress the installed Info pages
1623 --with-pkg-config-prog=PATH
1624 path to pkg-config for finding GTK and librsvg
1625 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1626 /usr/lib, or /usr/lib64 on some platforms.
1627 --with-gameuser=USER user for shared game score files
1628 --with-gnustep-conf=PATH
1629 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1630 or /etc/GNUstep/GNUstep.conf
1631 --with-x use the X Window System
1632
1633 Some influential environment variables:
1634 CC C compiler command
1635 CFLAGS C compiler flags
1636 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1637 nonstandard directory <lib dir>
1638 LIBS libraries to pass to the linker, e.g. -l<library>
1639 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1640 you have headers in a nonstandard directory <include dir>
1641 CPP C preprocessor
1642 XMKMF Path to xmkmf, Makefile generator for X Window System
1643
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1646
1647 Report bugs to the package provider.
1648 _ACEOF
1649 ac_status=$?
1650 fi
1651
1652 if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655 test -d "$ac_dir" ||
1656 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 continue
1658 ac_builddir=.
1659
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *)
1663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1675
1676 case $srcdir in
1677 .) # We are building in place.
1678 ac_srcdir=.
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1682 ac_srcdir=$srcdir$ac_dir_suffix;
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1685 *) # Relative name.
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1700 else
1701 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 fi || ac_status=$?
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1704 done
1705 fi
1706
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709 cat <<\_ACEOF
1710 emacs configure 24.0.50
1711 generated by GNU Autoconf 2.68
1712
1713 Copyright (C) 2010 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1716 _ACEOF
1717 exit
1718 fi
1719
1720 ## ------------------------ ##
1721 ## Autoconf initialization. ##
1722 ## ------------------------ ##
1723
1724 # ac_fn_c_try_compile LINENO
1725 # --------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_compile ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_compile
1761
1762 # ac_fn_c_try_cpp LINENO
1763 # ----------------------
1764 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_cpp ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_cpp conftest.$ac_ext"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } > conftest.i && {
1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 }; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1
1793 fi
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1796
1797 } # ac_fn_c_try_cpp
1798
1799 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802 # the include files in INCLUDES and setting the cache variable VAR
1803 # accordingly.
1804 ac_fn_c_check_header_mongrel ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if eval \${$3+:} false; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 fi
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 else
1817 # Is the header compilable?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819 $as_echo_n "checking $2 usability... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 $4
1823 #include <$2>
1824 _ACEOF
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826 ac_header_compiler=yes
1827 else
1828 ac_header_compiler=no
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832 $as_echo "$ac_header_compiler" >&6; }
1833
1834 # Is the header present?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836 $as_echo_n "checking $2 presence... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_cpp "$LINENO"; then :
1842 ac_header_preproc=yes
1843 else
1844 ac_header_preproc=no
1845 fi
1846 rm -f conftest.err conftest.i conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848 $as_echo "$ac_header_preproc" >&6; }
1849
1850 # So? What about this header?
1851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 yes:no: )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 ;;
1858 no:yes:* )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1862 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1866 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ;;
1870 esac
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1875 else
1876 eval "$3=\$ac_header_compiler"
1877 fi
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 fi
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884 } # ac_fn_c_check_header_mongrel
1885
1886 # ac_fn_c_try_run LINENO
1887 # ----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889 # that executables *can* be run.
1890 ac_fn_c_try_run ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>&5
1901 ac_status=$?
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904 { { case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_try") 2>&5
1911 ac_status=$?
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; }; }; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: program exited with status $ac_status" >&5
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=$ac_status
1921 fi
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1925
1926 } # ac_fn_c_try_run
1927
1928 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists and can be compiled using the include files in
1931 # INCLUDES, setting the cache variable VAR accordingly.
1932 ac_fn_c_check_header_compile ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $4
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 eval "$3=yes"
1947 else
1948 eval "$3=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 fi
1952 eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957 } # ac_fn_c_check_header_compile
1958
1959 # ac_fn_c_try_link LINENO
1960 # -----------------------
1961 # Try to link conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_c_try_link ()
1963 {
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 rm -f conftest.$ac_objext conftest$ac_exeext
1966 if { { ac_try="$ac_link"
1967 case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_link") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1979 fi
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && {
1982 test -z "$ac_c_werror_flag" ||
1983 test ! -s conftest.err
1984 } && test -s conftest$ac_exeext && {
1985 test "$cross_compiling" = yes ||
1986 $as_test_x conftest$ac_exeext
1987 }; then :
1988 ac_retval=0
1989 else
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 ac_retval=1
1994 fi
1995 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1996 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1997 # interfere with the next link command; also delete a directory that is
1998 # left behind by Apple's compiler. We do this before executing the actions.
1999 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 as_fn_set_status $ac_retval
2002
2003 } # ac_fn_c_try_link
2004
2005 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2006 # ---------------------------------------------
2007 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2008 # accordingly.
2009 ac_fn_c_check_decl ()
2010 {
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 as_decl_name=`echo $2|sed 's/ *(.*//'`
2013 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2015 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 $4
2022 int
2023 main ()
2024 {
2025 #ifndef $as_decl_name
2026 #ifdef __cplusplus
2027 (void) $as_decl_use;
2028 #else
2029 (void) $as_decl_name;
2030 #endif
2031 #endif
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 eval "$3=yes"
2039 else
2040 eval "$3=no"
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_decl
2050
2051 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2052 # ----------------------------------------------
2053 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2054 ac_fn_c_check_header_preproc ()
2055 {
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2061 else
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 #include <$2>
2065 _ACEOF
2066 if ac_fn_c_try_cpp "$LINENO"; then :
2067 eval "$3=yes"
2068 else
2069 eval "$3=no"
2070 fi
2071 rm -f conftest.err conftest.i conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_header_preproc
2079
2080 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2081 # ----------------------------------------------------
2082 # Tries to find if the field MEMBER exists in type AGGR, after including
2083 # INCLUDES, setting cache variable VAR accordingly.
2084 ac_fn_c_check_member ()
2085 {
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2088 $as_echo_n "checking for $2.$3... " >&6; }
2089 if eval \${$4+:} false; then :
2090 $as_echo_n "(cached) " >&6
2091 else
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 $5
2095 int
2096 main ()
2097 {
2098 static $2 ac_aggr;
2099 if (ac_aggr.$3)
2100 return 0;
2101 ;
2102 return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 eval "$4=yes"
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 $5
2111 int
2112 main ()
2113 {
2114 static $2 ac_aggr;
2115 if (sizeof ac_aggr.$3)
2116 return 0;
2117 ;
2118 return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 eval "$4=yes"
2123 else
2124 eval "$4=no"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 eval ac_res=\$$4
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_c_check_member
2136
2137 # ac_fn_c_check_func LINENO FUNC VAR
2138 # ----------------------------------
2139 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2140 ac_fn_c_check_func ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2152 #define $2 innocuous_$2
2153
2154 /* System header to define __stub macros and hopefully few prototypes,
2155 which can conflict with char $2 (); below.
2156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2157 <limits.h> exists even on freestanding compilers. */
2158
2159 #ifdef __STDC__
2160 # include <limits.h>
2161 #else
2162 # include <assert.h>
2163 #endif
2164
2165 #undef $2
2166
2167 /* Override any GCC internal prototype to avoid an error.
2168 Use char because int might match the return type of a GCC
2169 builtin and then its argument prototype would still apply. */
2170 #ifdef __cplusplus
2171 extern "C"
2172 #endif
2173 char $2 ();
2174 /* The GNU C library defines this for functions which it implements
2175 to always fail with ENOSYS. Some functions are actually named
2176 something starting with __ and the normal name is an alias. */
2177 #if defined __stub_$2 || defined __stub___$2
2178 choke me
2179 #endif
2180
2181 int
2182 main ()
2183 {
2184 return $2 ();
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_link "$LINENO"; then :
2190 eval "$3=yes"
2191 else
2192 eval "$3=no"
2193 fi
2194 rm -f core conftest.err conftest.$ac_objext \
2195 conftest$ac_exeext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202 } # ac_fn_c_check_func
2203
2204 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2205 # -------------------------------------------
2206 # Tests whether TYPE exists after having included INCLUDES, setting cache
2207 # variable VAR accordingly.
2208 ac_fn_c_check_type ()
2209 {
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if eval \${$3+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 eval "$3=no"
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 $4
2220 int
2221 main ()
2222 {
2223 if (sizeof ($2))
2224 return 0;
2225 ;
2226 return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 $4
2233 int
2234 main ()
2235 {
2236 if (sizeof (($2)))
2237 return 0;
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243
2244 else
2245 eval "$3=yes"
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255
2256 } # ac_fn_c_check_type
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2260
2261 It was created by emacs $as_me 24.0.50, which was
2262 generated by GNU Autoconf 2.68. Invocation command line was
2263
2264 $ $0 $@
2265
2266 _ACEOF
2267 exec 5>>config.log
2268 {
2269 cat <<_ASUNAME
2270 ## --------- ##
2271 ## Platform. ##
2272 ## --------- ##
2273
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2282
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290
2291 _ASUNAME
2292
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2299 done
2300 IFS=$as_save_IFS
2301
2302 } >&5
2303
2304 cat >&5 <<_ACEOF
2305
2306
2307 ## ----------- ##
2308 ## Core tests. ##
2309 ## ----------- ##
2310
2311 _ACEOF
2312
2313
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_configure_args=
2320 ac_configure_args0=
2321 ac_configure_args1=
2322 ac_must_keep_next=false
2323 for ac_pass in 1 2
2324 do
2325 for ac_arg
2326 do
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 esac
2335 case $ac_pass in
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337 2)
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2350 ;;
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2353 fi
2354 as_fn_append ac_configure_args " '$ac_arg'"
2355 ;;
2356 esac
2357 done
2358 done
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2361
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2369 {
2370 echo
2371
2372 $as_echo "## ---------------- ##
2373 ## Cache variables. ##
2374 ## ---------------- ##"
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2377 (
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2400 *)
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 ;;
2403 esac |
2404 sort
2405 )
2406 echo
2407
2408 $as_echo "## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##"
2411 echo
2412 for ac_var in $ac_subst_vars
2413 do
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 $as_echo "$ac_var='\''$ac_val'\''"
2419 done | sort
2420 echo
2421
2422 if test -n "$ac_subst_files"; then
2423 $as_echo "## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##"
2426 echo
2427 for ac_var in $ac_subst_files
2428 do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2436 fi
2437
2438 if test -s confdefs.h; then
2439 $as_echo "## ----------- ##
2440 ## confdefs.h. ##
2441 ## ----------- ##"
2442 echo
2443 cat confdefs.h
2444 echo
2445 fi
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2449 } >&5
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 exit $exit_status
2453 ' 0
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 done
2457 ac_signal=0
2458
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2461
2462 $as_echo "/* confdefs.h */" > confdefs.h
2463
2464 # Predefined preprocessor variables.
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 _ACEOF
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 _ACEOF
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2488 _ACEOF
2489
2490
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2493 ac_site_file1=NONE
2494 ac_site_file2=NONE
2495 if test -n "$CONFIG_SITE"; then
2496 # We do not want a PATH search for config.site.
2497 case $CONFIG_SITE in #((
2498 -*) ac_site_file1=./$CONFIG_SITE;;
2499 */*) ac_site_file1=$CONFIG_SITE;;
2500 *) ac_site_file1=./$CONFIG_SITE;;
2501 esac
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2508 fi
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510 do
2511 test "x$ac_site_file" = xNONE && continue
2512 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file" \
2517 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 as_fn_error $? "failed to load site script $ac_site_file
2520 See \`config.log' for more details" "$LINENO" 5; }
2521 fi
2522 done
2523
2524 if test -r "$cache_file"; then
2525 # Some versions of bash will fail to source /dev/null (special files
2526 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2527 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 case $cache_file in
2531 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532 *) . "./$cache_file";;
2533 esac
2534 fi
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537 $as_echo "$as_me: creating cache $cache_file" >&6;}
2538 >$cache_file
2539 fi
2540
2541 as_fn_append ac_header_list " stdlib.h"
2542 as_fn_append ac_header_list " unistd.h"
2543 as_fn_append ac_header_list " sys/param.h"
2544 as_fn_append ac_func_list " alarm"
2545 as_fn_append ac_header_list " stddef.h"
2546 as_fn_append ac_header_list " time.h"
2547 as_fn_append ac_header_list " sys/time.h"
2548 as_fn_append ac_func_list " localtime_r"
2549 # Check that the precious variables saved in the cache have kept the same
2550 # value.
2551 ac_cache_corrupted=false
2552 for ac_var in $ac_precious_vars; do
2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554 eval ac_new_set=\$ac_env_${ac_var}_set
2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556 eval ac_new_val=\$ac_env_${ac_var}_value
2557 case $ac_old_set,$ac_new_set in
2558 set,)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,set)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2566 ,);;
2567 *)
2568 if test "x$ac_old_val" != "x$ac_new_val"; then
2569 # differences in whitespace do not lead to failure.
2570 ac_old_val_w=`echo x $ac_old_val`
2571 ac_new_val_w=`echo x $ac_new_val`
2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575 ac_cache_corrupted=:
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579 eval $ac_var=\$ac_old_val
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2582 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2584 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2585 fi;;
2586 esac
2587 # Pass precious variables to config.status.
2588 if test "$ac_new_set" = set; then
2589 case $ac_new_val in
2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591 *) ac_arg=$ac_var=$ac_new_val ;;
2592 esac
2593 case " $ac_configure_args " in
2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2596 esac
2597 fi
2598 done
2599 if $ac_cache_corrupted; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2604 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2605 fi
2606 ## -------------------- ##
2607 ## Main body of script. ##
2608 ## -------------------- ##
2609
2610 ac_ext=c
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615
2616
2617 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2618
2619
2620 am__api_version='1.11'
2621
2622 ac_aux_dir=
2623 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2624 if test -f "$ac_dir/install-sh"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/install-sh -c"
2627 break
2628 elif test -f "$ac_dir/install.sh"; then
2629 ac_aux_dir=$ac_dir
2630 ac_install_sh="$ac_aux_dir/install.sh -c"
2631 break
2632 elif test -f "$ac_dir/shtool"; then
2633 ac_aux_dir=$ac_dir
2634 ac_install_sh="$ac_aux_dir/shtool install -c"
2635 break
2636 fi
2637 done
2638 if test -z "$ac_aux_dir"; then
2639 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2640 fi
2641
2642 # These three variables are undocumented and unsupported,
2643 # and are intended to be withdrawn in a future Autoconf release.
2644 # They can cause serious problems if a builder's source tree is in a directory
2645 # whose full name contains unusual characters.
2646 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2647 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2648 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2649
2650
2651 # Find a good install program. We prefer a C program (faster),
2652 # so one script is as good as another. But avoid the broken or
2653 # incompatible versions:
2654 # SysV /etc/install, /usr/sbin/install
2655 # SunOS /usr/etc/install
2656 # IRIX /sbin/install
2657 # AIX /bin/install
2658 # AmigaOS /C/install, which installs bootblocks on floppy discs
2659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2662 # OS/2's system install, which has a completely different semantic
2663 # ./install, which can be erroneously created by make from ./install.sh.
2664 # Reject install programs that cannot install multiple files.
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2666 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2667 if test -z "$INSTALL"; then
2668 if ${ac_cv_path_install+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 # Account for people who put trailing slashes in PATH elements.
2677 case $as_dir/ in #((
2678 ./ | .// | /[cC]/* | \
2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2681 /usr/ucb/* ) ;;
2682 *)
2683 # OSF1 and SCO ODT 3.0 have their own names for install.
2684 # Don't use installbsd from OSF since it installs stuff as root
2685 # by default.
2686 for ac_prog in ginstall scoinst install; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2689 if test $ac_prog = install &&
2690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # AIX install. It has an incompatible calling convention.
2692 :
2693 elif test $ac_prog = install &&
2694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695 # program-specific install script used by HP pwplus--don't use.
2696 :
2697 else
2698 rm -rf conftest.one conftest.two conftest.dir
2699 echo one > conftest.one
2700 echo two > conftest.two
2701 mkdir conftest.dir
2702 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2703 test -s conftest.one && test -s conftest.two &&
2704 test -s conftest.dir/conftest.one &&
2705 test -s conftest.dir/conftest.two
2706 then
2707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2708 break 3
2709 fi
2710 fi
2711 fi
2712 done
2713 done
2714 ;;
2715 esac
2716
2717 done
2718 IFS=$as_save_IFS
2719
2720 rm -rf conftest.one conftest.two conftest.dir
2721
2722 fi
2723 if test "${ac_cv_path_install+set}" = set; then
2724 INSTALL=$ac_cv_path_install
2725 else
2726 # As a last resort, use the slow shell script. Don't cache a
2727 # value for INSTALL within a source directory, because that will
2728 # break other packages using the cache if that directory is
2729 # removed, or if the value is a relative name.
2730 INSTALL=$ac_install_sh
2731 fi
2732 fi
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2734 $as_echo "$INSTALL" >&6; }
2735
2736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737 # It thinks the first close brace ends the variable substitution.
2738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2739
2740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2741
2742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2745 $as_echo_n "checking whether build environment is sane... " >&6; }
2746 # Just in case
2747 sleep 1
2748 echo timestamp > conftest.file
2749 # Reject unsafe characters in $srcdir or the absolute working directory
2750 # name. Accept space and tab only in the latter.
2751 am_lf='
2752 '
2753 case `pwd` in
2754 *[\\\"\#\$\&\'\`$am_lf]*)
2755 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2756 esac
2757 case $srcdir in
2758 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2759 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2760 esac
2761
2762 # Do `set' in a subshell so we don't clobber the current shell's
2763 # arguments. Must try -L first in case configure is actually a
2764 # symlink; some systems play weird games with the mod time of symlinks
2765 # (eg FreeBSD returns the mod time of the symlink's containing
2766 # directory).
2767 if (
2768 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2769 if test "$*" = "X"; then
2770 # -L didn't work.
2771 set X `ls -t "$srcdir/configure" conftest.file`
2772 fi
2773 rm -f conftest.file
2774 if test "$*" != "X $srcdir/configure conftest.file" \
2775 && test "$*" != "X conftest.file $srcdir/configure"; then
2776
2777 # If neither matched, then we have a broken ls. This can happen
2778 # if, for instance, CONFIG_SHELL is bash and it inherits a
2779 # broken ls alias from the environment. This has actually
2780 # happened. Such a system could not be considered "sane".
2781 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2782 alias in your environment" "$LINENO" 5
2783 fi
2784
2785 test "$2" = conftest.file
2786 )
2787 then
2788 # Ok.
2789 :
2790 else
2791 as_fn_error $? "newly created file is older than distributed files!
2792 Check your system clock" "$LINENO" 5
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 $as_echo "yes" >&6; }
2796 test "$program_prefix" != NONE &&
2797 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2798 # Use a double $ so make ignores it.
2799 test "$program_suffix" != NONE &&
2800 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2801 # Double any \ or $.
2802 # By default was `s,x,x', remove it if useless.
2803 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2804 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2805
2806 # expand $ac_aux_dir to an absolute path
2807 am_aux_dir=`cd $ac_aux_dir && pwd`
2808
2809 if test x"${MISSING+set}" != xset; then
2810 case $am_aux_dir in
2811 *\ * | *\ *)
2812 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2813 *)
2814 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2815 esac
2816 fi
2817 # Use eval to expand $SHELL
2818 if eval "$MISSING --run true"; then
2819 am_missing_run="$MISSING --run "
2820 else
2821 am_missing_run=
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2823 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2824 fi
2825
2826 if test x"${install_sh}" != xset; then
2827 case $am_aux_dir in
2828 *\ * | *\ *)
2829 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2830 *)
2831 install_sh="\${SHELL} $am_aux_dir/install-sh"
2832 esac
2833 fi
2834
2835 # Installed binaries are usually stripped using `strip' when the user
2836 # run `make install-strip'. However `strip' might not be the right
2837 # tool to use in cross-compilation environments, therefore Automake
2838 # will honor the `STRIP' environment variable to overrule this program.
2839 if test "$cross_compiling" != no; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}strip; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_STRIP+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$STRIP"; then
2849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 STRIP=$ac_cv_prog_STRIP
2869 if test -n "$STRIP"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2871 $as_echo "$STRIP" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877
2878 fi
2879 if test -z "$ac_cv_prog_STRIP"; then
2880 ac_ct_STRIP=$STRIP
2881 # Extract the first word of "strip", so it can be a program name with args.
2882 set dummy strip; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$ac_ct_STRIP"; then
2889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_ac_ct_STRIP="strip"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2909 if test -n "$ac_ct_STRIP"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2911 $as_echo "$ac_ct_STRIP" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917 if test "x$ac_ct_STRIP" = x; then
2918 STRIP=":"
2919 else
2920 case $cross_compiling:$ac_tool_warned in
2921 yes:)
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924 ac_tool_warned=yes ;;
2925 esac
2926 STRIP=$ac_ct_STRIP
2927 fi
2928 else
2929 STRIP="$ac_cv_prog_STRIP"
2930 fi
2931
2932 fi
2933 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2934
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2936 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2937 if test -z "$MKDIR_P"; then
2938 if ${ac_cv_path_mkdir+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_prog in mkdir gmkdir; do
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2949 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2950 'mkdir (GNU coreutils) '* | \
2951 'mkdir (coreutils) '* | \
2952 'mkdir (fileutils) '4.1*)
2953 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2954 break 3;;
2955 esac
2956 done
2957 done
2958 done
2959 IFS=$as_save_IFS
2960
2961 fi
2962
2963 test -d ./--version && rmdir ./--version
2964 if test "${ac_cv_path_mkdir+set}" = set; then
2965 MKDIR_P="$ac_cv_path_mkdir -p"
2966 else
2967 # As a last resort, use the slow shell script. Don't cache a
2968 # value for MKDIR_P within a source directory, because that will
2969 # break other packages using the cache if that directory is
2970 # removed, or if the value is a relative name.
2971 MKDIR_P="$ac_install_sh -d"
2972 fi
2973 fi
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2975 $as_echo "$MKDIR_P" >&6; }
2976
2977
2978 mkdir_p="$MKDIR_P"
2979 case $mkdir_p in
2980 [\\/$]* | ?:[\\/]*) ;;
2981 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2982 esac
2983
2984 for ac_prog in gawk mawk nawk awk
2985 do
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_AWK+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$AWK"; then
2994 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 ac_cv_prog_AWK="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 AWK=$ac_cv_prog_AWK
3014 if test -n "$AWK"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3016 $as_echo "$AWK" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 test -n "$AWK" && break
3024 done
3025
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3027 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3028 set x ${MAKE-make}
3029 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3030 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 cat >conftest.make <<\_ACEOF
3034 SHELL = /bin/sh
3035 all:
3036 @echo '@@@%%%=$(MAKE)=@@@%%%'
3037 _ACEOF
3038 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3039 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3040 *@@@%%%=?*=@@@%%%*)
3041 eval ac_cv_prog_make_${ac_make}_set=yes;;
3042 *)
3043 eval ac_cv_prog_make_${ac_make}_set=no;;
3044 esac
3045 rm -f conftest.make
3046 fi
3047 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049 $as_echo "yes" >&6; }
3050 SET_MAKE=
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 SET_MAKE="MAKE=${MAKE-make}"
3055 fi
3056
3057 rm -rf .tst 2>/dev/null
3058 mkdir .tst 2>/dev/null
3059 if test -d .tst; then
3060 am__leading_dot=.
3061 else
3062 am__leading_dot=_
3063 fi
3064 rmdir .tst 2>/dev/null
3065
3066 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3067 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3068 # is not polluted with repeated "-I."
3069 am__isrc=' -I$(srcdir)'
3070 # test to see if srcdir already configured
3071 if test -f $srcdir/config.status; then
3072 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3073 fi
3074 fi
3075
3076 # test whether we have cygpath
3077 if test -z "$CYGPATH_W"; then
3078 if (cygpath --version) >/dev/null 2>/dev/null; then
3079 CYGPATH_W='cygpath -w'
3080 else
3081 CYGPATH_W=echo
3082 fi
3083 fi
3084
3085
3086 # Define the identity of the package.
3087 PACKAGE='emacs'
3088 VERSION='24.0.50'
3089
3090
3091 cat >>confdefs.h <<_ACEOF
3092 #define PACKAGE "$PACKAGE"
3093 _ACEOF
3094
3095
3096 cat >>confdefs.h <<_ACEOF
3097 #define VERSION "$VERSION"
3098 _ACEOF
3099
3100 # Some tools Automake needs.
3101
3102 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3103
3104
3105 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3106
3107
3108 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3109
3110
3111 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3112
3113
3114 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3115
3116 # We need awk for the "check" target. The system "awk" is bad on
3117 # some platforms.
3118 # Always define AMTAR for backward compatibility.
3119
3120 AMTAR=${AMTAR-"${am_missing_run}tar"}
3121
3122 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3123
3124
3125
3126
3127
3128
3129
3130
3131 lispdir='${datadir}/emacs/${version}/lisp'
3132 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3133 '${datadir}/emacs/site-lisp'
3134 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3135 etcdir='${datadir}/emacs/${version}/etc'
3136 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3137 docdir='${datadir}/emacs/${version}/etc'
3138 gamedir='${localstatedir}/games/emacs'
3139
3140
3141
3142
3143 # Check whether --with-pop was given.
3144 if test "${with_pop+set}" = set; then :
3145 withval=$with_pop;
3146 else
3147 with_pop=yes
3148 fi
3149
3150 if test "$with_pop" = yes; then
3151 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3152
3153 fi
3154
3155
3156 # Check whether --with-kerberos was given.
3157 if test "${with_kerberos+set}" = set; then :
3158 withval=$with_kerberos;
3159 else
3160 with_kerberos=no
3161 fi
3162
3163 if test "$with_kerberos" != no; then
3164 $as_echo "#define KERBEROS 1" >>confdefs.h
3165
3166 fi
3167
3168
3169 # Check whether --with-kerberos5 was given.
3170 if test "${with_kerberos5+set}" = set; then :
3171 withval=$with_kerberos5;
3172 else
3173 with_kerberos5=no
3174 fi
3175
3176 if test "${with_kerberos5}" != no; then
3177 if test "${with_kerberos}" = no; then
3178 with_kerberos=yes
3179 $as_echo "#define KERBEROS 1" >>confdefs.h
3180
3181 fi
3182
3183 $as_echo "#define KERBEROS5 1" >>confdefs.h
3184
3185 fi
3186
3187
3188 # Check whether --with-hesiod was given.
3189 if test "${with_hesiod+set}" = set; then :
3190 withval=$with_hesiod;
3191 else
3192 with_hesiod=no
3193 fi
3194
3195 if test "$with_hesiod" != no; then
3196
3197 $as_echo "#define HESIOD 1" >>confdefs.h
3198
3199 fi
3200
3201
3202 # Check whether --with-mmdf was given.
3203 if test "${with_mmdf+set}" = set; then :
3204 withval=$with_mmdf;
3205 else
3206 with_mmdf=no
3207 fi
3208
3209 if test "$with_mmdf" != no; then
3210
3211 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3212
3213 fi
3214
3215
3216 # Check whether --with-mail-unlink was given.
3217 if test "${with_mail_unlink+set}" = set; then :
3218 withval=$with_mail_unlink;
3219 else
3220 with_mail_unlink=no
3221 fi
3222
3223 if test "$with_mail_unlink" != no; then
3224
3225 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3226
3227 fi
3228
3229
3230 # Check whether --with-mailhost was given.
3231 if test "${with_mailhost+set}" = set; then :
3232 withval=$with_mailhost;
3233 cat >>confdefs.h <<_ACEOF
3234 #define MAILHOST "$withval"
3235 _ACEOF
3236
3237 fi
3238
3239
3240
3241 # Check whether --with-sound was given.
3242 if test "${with_sound+set}" = set; then :
3243 withval=$with_sound;
3244 else
3245 with_sound=yes
3246 fi
3247
3248
3249
3250 # Check whether --with-sync-input was given.
3251 if test "${with_sync_input+set}" = set; then :
3252 withval=$with_sync_input;
3253 else
3254 with_sync_input=yes
3255 fi
3256
3257 if test "$with_sync_input" = yes; then
3258
3259 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3260
3261 fi
3262
3263
3264 # Check whether --with-x-toolkit was given.
3265 if test "${with_x_toolkit+set}" = set; then :
3266 withval=$with_x_toolkit; case "${withval}" in
3267 y | ye | yes ) val=gtk ;;
3268 n | no ) val=no ;;
3269 l | lu | luc | luci | lucid ) val=lucid ;;
3270 a | at | ath | athe | athen | athena ) val=athena ;;
3271 m | mo | mot | moti | motif ) val=motif ;;
3272 g | gt | gtk ) val=gtk ;;
3273 gtk3 ) val=gtk3 ;;
3274 * )
3275 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3276 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3277 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3278 ;;
3279 esac
3280 with_x_toolkit=$val
3281
3282 fi
3283
3284
3285
3286 # Check whether --with-xpm was given.
3287 if test "${with_xpm+set}" = set; then :
3288 withval=$with_xpm;
3289 else
3290 with_xpm=yes
3291 fi
3292
3293
3294 # Check whether --with-jpeg was given.
3295 if test "${with_jpeg+set}" = set; then :
3296 withval=$with_jpeg;
3297 else
3298 with_jpeg=yes
3299 fi
3300
3301
3302 # Check whether --with-tiff was given.
3303 if test "${with_tiff+set}" = set; then :
3304 withval=$with_tiff;
3305 else
3306 with_tiff=yes
3307 fi
3308
3309
3310 # Check whether --with-gif was given.
3311 if test "${with_gif+set}" = set; then :
3312 withval=$with_gif;
3313 else
3314 with_gif=yes
3315 fi
3316
3317
3318 # Check whether --with-png was given.
3319 if test "${with_png+set}" = set; then :
3320 withval=$with_png;
3321 else
3322 with_png=yes
3323 fi
3324
3325
3326 # Check whether --with-rsvg was given.
3327 if test "${with_rsvg+set}" = set; then :
3328 withval=$with_rsvg;
3329 else
3330 with_rsvg=yes
3331 fi
3332
3333
3334 # Check whether --with-xml2 was given.
3335 if test "${with_xml2+set}" = set; then :
3336 withval=$with_xml2;
3337 else
3338 with_xml2=yes
3339 fi
3340
3341
3342 # Check whether --with-imagemagick was given.
3343 if test "${with_imagemagick+set}" = set; then :
3344 withval=$with_imagemagick;
3345 else
3346 with_imagemagick=yes
3347 fi
3348
3349
3350
3351 # Check whether --with-xft was given.
3352 if test "${with_xft+set}" = set; then :
3353 withval=$with_xft;
3354 else
3355 with_xft=yes
3356 fi
3357
3358
3359 # Check whether --with-libotf was given.
3360 if test "${with_libotf+set}" = set; then :
3361 withval=$with_libotf;
3362 else
3363 with_libotf=yes
3364 fi
3365
3366
3367 # Check whether --with-m17n-flt was given.
3368 if test "${with_m17n_flt+set}" = set; then :
3369 withval=$with_m17n_flt;
3370 else
3371 with_m17n_flt=yes
3372 fi
3373
3374
3375
3376 # Check whether --with-toolkit-scroll-bars was given.
3377 if test "${with_toolkit_scroll_bars+set}" = set; then :
3378 withval=$with_toolkit_scroll_bars;
3379 else
3380 with_toolkit_scroll_bars=yes
3381 fi
3382
3383
3384 # Check whether --with-xaw3d was given.
3385 if test "${with_xaw3d+set}" = set; then :
3386 withval=$with_xaw3d;
3387 else
3388 with_xaw3d=yes
3389 fi
3390
3391
3392 # Check whether --with-xim was given.
3393 if test "${with_xim+set}" = set; then :
3394 withval=$with_xim;
3395 else
3396 with_xim=yes
3397 fi
3398
3399
3400 # Check whether --with-ns was given.
3401 if test "${with_ns+set}" = set; then :
3402 withval=$with_ns;
3403 else
3404 with_ns=no
3405 fi
3406
3407
3408
3409 # Check whether --with-gpm was given.
3410 if test "${with_gpm+set}" = set; then :
3411 withval=$with_gpm;
3412 else
3413 with_gpm=yes
3414 fi
3415
3416
3417 # Check whether --with-dbus was given.
3418 if test "${with_dbus+set}" = set; then :
3419 withval=$with_dbus;
3420 else
3421 with_dbus=yes
3422 fi
3423
3424
3425 # Check whether --with-gconf was given.
3426 if test "${with_gconf+set}" = set; then :
3427 withval=$with_gconf;
3428 else
3429 with_gconf=yes
3430 fi
3431
3432
3433 # Check whether --with-selinux was given.
3434 if test "${with_selinux+set}" = set; then :
3435 withval=$with_selinux;
3436 else
3437 with_selinux=yes
3438 fi
3439
3440
3441 # Check whether --with-gnutls was given.
3442 if test "${with_gnutls+set}" = set; then :
3443 withval=$with_gnutls;
3444 else
3445 with_gnutls=yes
3446 fi
3447
3448
3449 ## For the times when you want to build Emacs but don't have
3450 ## a suitable makeinfo, and can live without the manuals.
3451
3452 # Check whether --with-makeinfo was given.
3453 if test "${with_makeinfo+set}" = set; then :
3454 withval=$with_makeinfo;
3455 else
3456 with_makeinfo=yes
3457 fi
3458
3459
3460 ## This is an option because I do not know if all info/man support
3461 ## compressed files, nor how to test if they do so.
3462
3463 # Check whether --with-compress-info was given.
3464 if test "${with_compress_info+set}" = set; then :
3465 withval=$with_compress_info;
3466 else
3467 with_compress_info=yes
3468 fi
3469
3470 if test $with_compress_info = yes; then
3471 GZIP_INFO=yes
3472 else
3473 GZIP_INFO=
3474 fi
3475
3476
3477
3478 # Check whether --with-pkg-config-prog was given.
3479 if test "${with_pkg_config_prog+set}" = set; then :
3480 withval=$with_pkg_config_prog;
3481 fi
3482
3483 if test "X${with_pkg_config_prog}" != X; then
3484 if test "${with_pkg_config_prog}" != yes; then
3485 PKG_CONFIG="${with_pkg_config_prog}"
3486 fi
3487 fi
3488
3489 CRT_DIR=
3490
3491 # Check whether --with-crt-dir was given.
3492 if test "${with_crt_dir+set}" = set; then :
3493 withval=$with_crt_dir;
3494 fi
3495
3496 CRT_DIR="${with_crt_dir}"
3497
3498
3499 # Check whether --with-gameuser was given.
3500 if test "${with_gameuser+set}" = set; then :
3501 withval=$with_gameuser;
3502 fi
3503
3504 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3505 && gameuser="${with_gameuser}"
3506 test "X$gameuser" = X && gameuser=games
3507
3508
3509 # Check whether --with-gnustep-conf was given.
3510 if test "${with_gnustep_conf+set}" = set; then :
3511 withval=$with_gnustep_conf;
3512 fi
3513
3514 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3515 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3516 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3517 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3518
3519 # Check whether --enable-ns-self-contained was given.
3520 if test "${enable_ns_self_contained+set}" = set; then :
3521 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3522 else
3523 EN_NS_SELF_CONTAINED=yes
3524 fi
3525
3526
3527 # Check whether --enable-asserts was given.
3528 if test "${enable_asserts+set}" = set; then :
3529 enableval=$enable_asserts; USE_XASSERTS=$enableval
3530 else
3531 USE_XASSERTS=no
3532 fi
3533
3534
3535 # Check whether --enable-maintainer-mode was given.
3536 if test "${enable_maintainer_mode+set}" = set; then :
3537 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3538 else
3539 USE_MAINTAINER_MODE=no
3540 fi
3541
3542 if test $USE_MAINTAINER_MODE = yes; then
3543 MAINT=
3544 else
3545 MAINT=#
3546 fi
3547
3548
3549 # Check whether --enable-locallisppath was given.
3550 if test "${enable_locallisppath+set}" = set; then :
3551 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3552 locallisppath=
3553 elif test "${enableval}" != "yes"; then
3554 locallisppath=${enableval}
3555 fi
3556 fi
3557
3558
3559 # Check whether --enable-checking was given.
3560 if test "${enable_checking+set}" = set; then :
3561 enableval=$enable_checking; ac_checking_flags="${enableval}"
3562 fi
3563
3564 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3565 for check in $ac_checking_flags
3566 do
3567 case $check in
3568 # these set all the flags to specific states
3569 yes) ac_enable_checking=1 ;;
3570 no) ac_enable_checking= ;
3571 ac_gc_check_stringbytes= ;
3572 ac_gc_check_string_overrun= ;
3573 ac_gc_check_string_free_list= ;
3574 ac_xmalloc_overrun= ;
3575 ac_gc_check_cons_list= ;;
3576 all) ac_enable_checking=1 ;
3577 ac_gc_check_stringbytes=1 ;
3578 ac_gc_check_string_overrun=1 ;
3579 ac_gc_check_string_free_list=1 ;
3580 ac_xmalloc_overrun=1 ;
3581 ac_gc_check_cons_list=1 ;;
3582 # these enable particular checks
3583 stringbytes) ac_gc_check_stringbytes=1 ;;
3584 stringoverrun) ac_gc_check_string_overrun=1 ;;
3585 stringfreelist) ac_gc_check_string_free_list=1 ;;
3586 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3587 conslist) ac_gc_check_cons_list=1 ;;
3588 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3589 esac
3590 done
3591 IFS="$ac_save_IFS"
3592
3593 if test x$ac_enable_checking != x ; then
3594
3595 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3596
3597 fi
3598 if test x$ac_gc_check_stringbytes != x ; then
3599
3600 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3601
3602 fi
3603 if test x$ac_gc_check_stringoverrun != x ; then
3604
3605 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3606
3607 fi
3608 if test x$ac_gc_check_string_free_list != x ; then
3609
3610 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3611
3612 fi
3613 if test x$ac_xmalloc_overrun != x ; then
3614
3615 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3616
3617 fi
3618 if test x$ac_gc_check_cons_list != x ; then
3619
3620 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3621
3622 fi
3623
3624 # Check whether --enable-use-lisp-union-type was given.
3625 if test "${enable_use_lisp_union_type+set}" = set; then :
3626 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3627
3628 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3629
3630 fi
3631 fi
3632
3633
3634
3635 # Check whether --enable-profiling was given.
3636 if test "${enable_profiling+set}" = set; then :
3637 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3638 fi
3639
3640 if test x$ac_enable_profiling != x ; then
3641 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3642 else
3643 PROFILING_CFLAGS=
3644 fi
3645
3646
3647 # Check whether --enable-autodepend was given.
3648 if test "${enable_autodepend+set}" = set; then :
3649 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3650 else
3651 ac_enable_autodepend=yes
3652 fi
3653
3654
3655 #### Make srcdir absolute, if it isn't already. It's important to
3656 #### avoid running the path through pwd unnecessarily, since pwd can
3657 #### give you automounter prefixes, which can go away. We do all this
3658 #### so Emacs can find its files when run uninstalled.
3659 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3660 unset CDPATH
3661 case "${srcdir}" in
3662 /* ) ;;
3663 . )
3664 ## We may be able to use the $PWD environment variable to make this
3665 ## absolute. But sometimes PWD is inaccurate.
3666 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3667 ## but that tested only for a well-formed and valid PWD,
3668 ## it did not object when PWD was well-formed and valid but just wrong.
3669 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3670 then
3671 srcdir="$PWD"
3672 else
3673 srcdir="`(cd ${srcdir}; pwd)`"
3674 fi
3675 ;;
3676 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3677 esac
3678
3679 #### Check if the source directory already has a configured system in it.
3680 if test `pwd` != `(cd ${srcdir} && pwd)` \
3681 && test -f "${srcdir}/src/config.h" ; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3683 as a build directory right now; it has been configured in its own
3684 right. To configure in another directory as well, you MUST
3685 use GNU make. If you do not have GNU make, then you must
3686 now do \`make distclean' in ${srcdir},
3687 and then run $0 again." >&5
3688 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3689 as a build directory right now; it has been configured in its own
3690 right. To configure in another directory as well, you MUST
3691 use GNU make. If you do not have GNU make, then you must
3692 now do \`make distclean' in ${srcdir},
3693 and then run $0 again." >&2;}
3694 fi
3695
3696 #### Given the configuration name, set machfile and opsysfile to the
3697 #### names of the m/*.h and s/*.h files we should use.
3698
3699 ### Canonicalize the configuration name.
3700
3701 # Make sure we can run config.sub.
3702 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3703 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3704
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3706 $as_echo_n "checking build system type... " >&6; }
3707 if ${ac_cv_build+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 ac_build_alias=$build_alias
3711 test "x$ac_build_alias" = x &&
3712 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3713 test "x$ac_build_alias" = x &&
3714 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3715 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3716 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3717
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3720 $as_echo "$ac_cv_build" >&6; }
3721 case $ac_cv_build in
3722 *-*-*) ;;
3723 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3724 esac
3725 build=$ac_cv_build
3726 ac_save_IFS=$IFS; IFS='-'
3727 set x $ac_cv_build
3728 shift
3729 build_cpu=$1
3730 build_vendor=$2
3731 shift; shift
3732 # Remember, the first character of IFS is used to create $*,
3733 # except with old shells:
3734 build_os=$*
3735 IFS=$ac_save_IFS
3736 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3737
3738
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3740 $as_echo_n "checking host system type... " >&6; }
3741 if ${ac_cv_host+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 if test "x$host_alias" = x; then
3745 ac_cv_host=$ac_cv_build
3746 else
3747 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3748 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3749 fi
3750
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3753 $as_echo "$ac_cv_host" >&6; }
3754 case $ac_cv_host in
3755 *-*-*) ;;
3756 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3757 esac
3758 host=$ac_cv_host
3759 ac_save_IFS=$IFS; IFS='-'
3760 set x $ac_cv_host
3761 shift
3762 host_cpu=$1
3763 host_vendor=$2
3764 shift; shift
3765 # Remember, the first character of IFS is used to create $*,
3766 # except with old shells:
3767 host_os=$*
3768 IFS=$ac_save_IFS
3769 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3770
3771
3772 canonical=$host
3773 configuration=${host_alias-${build_alias-$host}}
3774
3775
3776
3777 ### If you add support for a new configuration, add code to this
3778 ### switch statement to recognize your configuration name and select
3779 ### the appropriate operating system and machine description files.
3780
3781 ### You would hope that you could choose an m/*.h file pretty much
3782 ### based on the machine portion of the configuration name, and an s/*.h
3783 ### file based on the operating system portion. However, it turns out
3784 ### that each m/*.h file is pretty manufacturer-specific - for
3785 ### example mips.h is MIPS
3786 ### So we basically have to have a special case for each
3787 ### configuration name.
3788 ###
3789 ### As far as handling version numbers on operating systems is
3790 ### concerned, make sure things will fail in a fixable way. If
3791 ### /etc/MACHINES doesn't say anything about version numbers, be
3792 ### prepared to handle anything reasonably. If version numbers
3793 ### matter, be sure /etc/MACHINES says something about it.
3794
3795 machine='' opsys='' unported=no
3796 case "${canonical}" in
3797
3798 ## GNU/Linux ports
3799 *-*-linux-gnu*)
3800 opsys=gnu-linux
3801 case ${canonical} in
3802 alpha*) machine=alpha ;;
3803 s390-*) machine=ibms390 ;;
3804 s390x-*) machine=ibms390x ;;
3805 powerpc*) machine=macppc ;;
3806 sparc*) machine=sparc ;;
3807 ia64*) machine=ia64 ;;
3808 m68k*) machine=m68k ;;
3809 x86_64*) machine=amdx86-64 ;;
3810 esac
3811 ;;
3812
3813 ## FreeBSD ports
3814 *-*-freebsd* )
3815 opsys=freebsd
3816 case "${canonical}" in
3817 alpha*) machine=alpha ;;
3818 amd64-*|x86_64-*) machine=amdx86-64 ;;
3819 ia64-*) machine=ia64 ;;
3820 i[3456]86-*) machine=intel386 ;;
3821 powerpc-*) machine=macppc ;;
3822 sparc-*) machine=sparc ;;
3823 sparc64-*) machine=sparc ;;
3824 esac
3825 ;;
3826
3827 ## FreeBSD kernel + glibc based userland
3828 *-*-kfreebsd*gnu* )
3829 opsys=gnu-kfreebsd
3830 case "${canonical}" in
3831 alpha*) machine=alpha ;;
3832 amd64-*|x86_64-*) machine=amdx86-64 ;;
3833 ia64-*) machine=ia64 ;;
3834 i[3456]86-*) machine=intel386 ;;
3835 powerpc-*) machine=macppc ;;
3836 sparc-*) machine=sparc ;;
3837 sparc64-*) machine=sparc ;;
3838 esac
3839 ;;
3840
3841 ## NetBSD ports
3842 *-*-netbsd* )
3843 opsys=netbsd
3844 case "${canonical}" in
3845 alpha*) machine=alpha ;;
3846 x86_64-*) machine=amdx86-64 ;;
3847 i[3456]86-*) machine=intel386 ;;
3848 m68k-*) machine=m68k ;;
3849 powerpc-*) machine=macppc ;;
3850 sparc*-) machine=sparc ;;
3851 vax-*) machine=vax ;;
3852 esac
3853 ;;
3854
3855 ## OpenBSD ports
3856 *-*-openbsd* )
3857 opsys=openbsd
3858 case "${canonical}" in
3859 alpha*) machine=alpha ;;
3860 x86_64-*) machine=amdx86-64 ;;
3861 i386-*) machine=intel386 ;;
3862 powerpc-*) machine=macppc ;;
3863 sparc*) machine=sparc ;;
3864 vax-*) machine=vax ;;
3865 esac
3866 ;;
3867
3868 ## Apple Darwin / Mac OS X
3869 *-apple-darwin* )
3870 case "${canonical}" in
3871 i[3456]86-* ) machine=intel386 ;;
3872 powerpc-* ) machine=macppc ;;
3873 x86_64-* ) machine=amdx86-64 ;;
3874 * ) unported=yes ;;
3875 esac
3876 opsys=darwin
3877 # Define CPP as follows to make autoconf work correctly.
3878 CPP="${CC-cc} -E -no-cpp-precomp"
3879 # Use fink packages if available.
3880 if test -d /sw/include && test -d /sw/lib; then
3881 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3882 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3883 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3884 fi
3885 ;;
3886
3887 ## HP 9000 series 700 and 800, running HP/UX
3888 hppa*-hp-hpux10.2* )
3889 opsys=hpux10-20
3890 ;;
3891 hppa*-hp-hpux1[1-9]* )
3892 opsys=hpux11
3893 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3894 ;;
3895
3896 ## IBM machines
3897 rs6000-ibm-aix4.[23]* )
3898 machine=ibmrs6000 opsys=aix4-2
3899 ;;
3900 powerpc-ibm-aix4.[23]* )
3901 machine=ibmrs6000 opsys=aix4-2
3902 ;;
3903 rs6000-ibm-aix[56]* )
3904 machine=ibmrs6000 opsys=aix4-2
3905 ;;
3906 powerpc-ibm-aix[56]* )
3907 machine=ibmrs6000 opsys=aix4-2
3908 ;;
3909
3910 ## Silicon Graphics machines
3911 ## Iris 4D
3912 mips-sgi-irix6.5 )
3913 machine=iris4d opsys=irix6-5
3914 # Without defining _LANGUAGE_C, things get masked out in the headers
3915 # so that, for instance, grepping for `free' in stdlib.h fails and
3916 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3917 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3918 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3919 ;;
3920
3921 ## Suns
3922 *-sun-solaris* \
3923 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3924 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3925 case "${canonical}" in
3926 i[3456]86-*-* ) machine=intel386 ;;
3927 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3928 sparc* ) machine=sparc ;;
3929 * ) unported=yes ;;
3930 esac
3931 case "${canonical}" in
3932 *-sunos5.6* | *-solaris2.6* )
3933 opsys=sol2-6
3934 NON_GNU_CPP=/usr/ccs/lib/cpp
3935 RANLIB="ar -ts"
3936 ;;
3937 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3938 opsys=sol2-6
3939 emacs_check_sunpro_c=yes
3940 NON_GNU_CPP=/usr/ccs/lib/cpp
3941 ;;
3942 *-sunos5* | *-solaris* )
3943 opsys=sol2-10
3944 emacs_check_sunpro_c=yes
3945 NON_GNU_CPP=/usr/ccs/lib/cpp
3946 ;;
3947 esac
3948 ## Watch out for a compiler that we know will not work.
3949 case "${canonical}" in
3950 *-solaris* | *-sunos5* )
3951 if [ "x$CC" = x/usr/ucb/cc ]; then
3952 ## /usr/ucb/cc doesn't work;
3953 ## we should find some other compiler that does work.
3954 unset CC
3955 fi
3956 ;;
3957 *) ;;
3958 esac
3959 ;;
3960
3961 ## Intel 386 machines where we don't care about the manufacturer.
3962 i[3456]86-*-* )
3963 machine=intel386
3964 case "${canonical}" in
3965 *-cygwin ) opsys=cygwin ;;
3966 *-darwin* ) opsys=darwin
3967 CPP="${CC-cc} -E -no-cpp-precomp"
3968 ;;
3969 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3970 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3971 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3972 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3973 esac
3974 ;;
3975
3976 * )
3977 unported=yes
3978 ;;
3979 esac
3980
3981 ### If the code above didn't choose an operating system, just choose
3982 ### an operating system based on the configuration name. You really
3983 ### only want to use this when you have no idea what the right
3984 ### operating system is; if you know what operating systems a machine
3985 ### runs, it's cleaner to make it explicit in the case statement
3986 ### above.
3987 if test x"${opsys}" = x; then
3988 case "${canonical}" in
3989 *-gnu* ) opsys=gnu ;;
3990 * )
3991 unported=yes
3992 ;;
3993 esac
3994 fi
3995
3996
3997
3998 if test $unported = yes; then
3999 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4000 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4001 fi
4002
4003 if test -n "$machine"; then
4004 machfile="m/${machine}.h"
4005 else
4006 machfile=
4007 fi
4008 opsysfile="s/${opsys}.h"
4009
4010
4011 #### Choose a compiler.
4012 test -n "$CC" && cc_specified=yes
4013
4014 # Save the value of CFLAGS that the user specified.
4015 SPECIFIED_CFLAGS="$CFLAGS"
4016
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022 if test -n "$ac_tool_prefix"; then
4023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_prog_CC+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 fi
4049 fi
4050 CC=$ac_cv_prog_CC
4051 if test -n "$CC"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4053 $as_echo "$CC" >&6; }
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4057 fi
4058
4059
4060 fi
4061 if test -z "$ac_cv_prog_CC"; then
4062 ac_ct_CC=$CC
4063 # Extract the first word of "gcc", so it can be a program name with args.
4064 set dummy gcc; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080 ac_cv_prog_ac_ct_CC="gcc"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4083 fi
4084 done
4085 done
4086 IFS=$as_save_IFS
4087
4088 fi
4089 fi
4090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091 if test -n "$ac_ct_CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093 $as_echo "$ac_ct_CC" >&6; }
4094 else
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 fi
4098
4099 if test "x$ac_ct_CC" = x; then
4100 CC=""
4101 else
4102 case $cross_compiling:$ac_tool_warned in
4103 yes:)
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106 ac_tool_warned=yes ;;
4107 esac
4108 CC=$ac_ct_CC
4109 fi
4110 else
4111 CC="$ac_cv_prog_CC"
4112 fi
4113
4114 if test -z "$CC"; then
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}cc; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if ${ac_cv_prog_CC+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_prog_CC="${ac_tool_prefix}cc"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137 done
4138 done
4139 IFS=$as_save_IFS
4140
4141 fi
4142 fi
4143 CC=$ac_cv_prog_CC
4144 if test -n "$CC"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4146 $as_echo "$CC" >&6; }
4147 else
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4150 fi
4151
4152
4153 fi
4154 fi
4155 if test -z "$CC"; then
4156 # Extract the first word of "cc", so it can be a program name with args.
4157 set dummy cc; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4165 else
4166 ac_prog_rejected=no
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4175 ac_prog_rejected=yes
4176 continue
4177 fi
4178 ac_cv_prog_CC="cc"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182 done
4183 done
4184 IFS=$as_save_IFS
4185
4186 if test $ac_prog_rejected = yes; then
4187 # We found a bogon in the path, so make sure we never use it.
4188 set dummy $ac_cv_prog_CC
4189 shift
4190 if test $# != 0; then
4191 # We chose a different compiler from the bogus one.
4192 # However, it has the same basename, so the bogon will be chosen
4193 # first if we set CC to just the basename; use the full file name.
4194 shift
4195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4196 fi
4197 fi
4198 fi
4199 fi
4200 CC=$ac_cv_prog_CC
4201 if test -n "$CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203 $as_echo "$CC" >&6; }
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4207 fi
4208
4209
4210 fi
4211 if test -z "$CC"; then
4212 if test -n "$ac_tool_prefix"; then
4213 for ac_prog in cl.exe
4214 do
4215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_CC+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236 done
4237 done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 CC=$ac_cv_prog_CC
4243 if test -n "$CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4245 $as_echo "$CC" >&6; }
4246 else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252 test -n "$CC" && break
4253 done
4254 fi
4255 if test -z "$CC"; then
4256 ac_ct_CC=$CC
4257 for ac_prog in cl.exe
4258 do
4259 # Extract the first word of "$ac_prog", so it can be a program name with args.
4260 set dummy $ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if test -n "$ac_ct_CC"; then
4267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_ac_ct_CC="$ac_prog"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280 done
4281 done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4287 if test -n "$ac_ct_CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4289 $as_echo "$ac_ct_CC" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294
4295
4296 test -n "$ac_ct_CC" && break
4297 done
4298
4299 if test "x$ac_ct_CC" = x; then
4300 CC=""
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308 CC=$ac_ct_CC
4309 fi
4310 fi
4311
4312 fi
4313
4314
4315 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error $? "no acceptable C compiler found in \$PATH
4318 See \`config.log' for more details" "$LINENO" 5; }
4319
4320 # Provide some information about the compiler.
4321 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4322 set X $ac_compile
4323 ac_compiler=$2
4324 for ac_option in --version -v -V -qversion; do
4325 { { ac_try="$ac_compiler $ac_option >&5"
4326 case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4333 ac_status=$?
4334 if test -s conftest.err; then
4335 sed '10a\
4336 ... rest of stderr output deleted ...
4337 10q' conftest.err >conftest.er1
4338 cat conftest.er1 >&5
4339 fi
4340 rm -f conftest.er1 conftest.err
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4343 done
4344
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347
4348 int
4349 main ()
4350 {
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 ac_clean_files_save=$ac_clean_files
4357 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4358 # Try to create an executable without -o first, disregard a.out.
4359 # It will help us diagnose broken compilers, and finding out an intuition
4360 # of exeext.
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4362 $as_echo_n "checking whether the C compiler works... " >&6; }
4363 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4364
4365 # The possible output files:
4366 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4367
4368 ac_rmfiles=
4369 for ac_file in $ac_files
4370 do
4371 case $ac_file in
4372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4374 esac
4375 done
4376 rm -f $ac_rmfiles
4377
4378 if { { ac_try="$ac_link_default"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_link_default") 2>&5
4386 ac_status=$?
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }; then :
4389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4390 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4391 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4392 # so that the user can short-circuit this test for compilers unknown to
4393 # Autoconf.
4394 for ac_file in $ac_files ''
4395 do
4396 test -f "$ac_file" || continue
4397 case $ac_file in
4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4399 ;;
4400 [ab].out )
4401 # We found the default executable, but exeext='' is most
4402 # certainly right.
4403 break;;
4404 *.* )
4405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4406 then :; else
4407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408 fi
4409 # We set ac_cv_exeext here because the later test for it is not
4410 # safe: cross compilers may not add the suffix if given an `-o'
4411 # argument, so we may need to know it at that point already.
4412 # Even if this section looks crufty: it has the advantage of
4413 # actually working.
4414 break;;
4415 * )
4416 break;;
4417 esac
4418 done
4419 test "$ac_cv_exeext" = no && ac_cv_exeext=
4420
4421 else
4422 ac_file=''
4423 fi
4424 if test -z "$ac_file"; then :
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 $as_echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432 as_fn_error 77 "C compiler cannot create executables
4433 See \`config.log' for more details" "$LINENO" 5; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436 $as_echo "yes" >&6; }
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4439 $as_echo_n "checking for C compiler default output file name... " >&6; }
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4441 $as_echo "$ac_file" >&6; }
4442 ac_exeext=$ac_cv_exeext
4443
4444 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4445 ac_clean_files=$ac_clean_files_save
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4447 $as_echo_n "checking for suffix of executables... " >&6; }
4448 if { { ac_try="$ac_link"
4449 case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_link") 2>&5
4456 ac_status=$?
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; then :
4459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4460 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4461 # work properly (i.e., refer to `conftest.exe'), while it won't with
4462 # `rm'.
4463 for ac_file in conftest.exe conftest conftest.*; do
4464 test -f "$ac_file" || continue
4465 case $ac_file in
4466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4468 break;;
4469 * ) break;;
4470 esac
4471 done
4472 else
4473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4475 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4476 See \`config.log' for more details" "$LINENO" 5; }
4477 fi
4478 rm -f conftest conftest$ac_cv_exeext
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4480 $as_echo "$ac_cv_exeext" >&6; }
4481
4482 rm -f conftest.$ac_ext
4483 EXEEXT=$ac_cv_exeext
4484 ac_exeext=$EXEEXT
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <stdio.h>
4488 int
4489 main ()
4490 {
4491 FILE *f = fopen ("conftest.out", "w");
4492 return ferror (f) || fclose (f) != 0;
4493
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 ac_clean_files="$ac_clean_files conftest.out"
4499 # Check that the compiler produces executables we can run. If not, either
4500 # the compiler is broken, or we cross compile.
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4502 $as_echo_n "checking whether we are cross compiling... " >&6; }
4503 if test "$cross_compiling" != yes; then
4504 { { ac_try="$ac_link"
4505 case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_link") 2>&5
4512 ac_status=$?
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515 if { ac_try='./conftest$ac_cv_exeext'
4516 { { case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_try") 2>&5
4523 ac_status=$?
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }; }; then
4526 cross_compiling=no
4527 else
4528 if test "$cross_compiling" = maybe; then
4529 cross_compiling=yes
4530 else
4531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4533 as_fn_error $? "cannot run C compiled programs.
4534 If you meant to cross compile, use \`--host'.
4535 See \`config.log' for more details" "$LINENO" 5; }
4536 fi
4537 fi
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4540 $as_echo "$cross_compiling" >&6; }
4541
4542 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4543 ac_clean_files=$ac_clean_files_save
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4545 $as_echo_n "checking for suffix of object files... " >&6; }
4546 if ${ac_cv_objext+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551
4552 int
4553 main ()
4554 {
4555
4556 ;
4557 return 0;
4558 }
4559 _ACEOF
4560 rm -f conftest.o conftest.obj
4561 if { { ac_try="$ac_compile"
4562 case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565 esac
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_compile") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4571 test $ac_status = 0; }; then :
4572 for ac_file in conftest.o conftest.obj conftest.*; do
4573 test -f "$ac_file" || continue;
4574 case $ac_file in
4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4577 break;;
4578 esac
4579 done
4580 else
4581 $as_echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586 as_fn_error $? "cannot compute suffix of object files: cannot compile
4587 See \`config.log' for more details" "$LINENO" 5; }
4588 fi
4589 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4592 $as_echo "$ac_cv_objext" >&6; }
4593 OBJEXT=$ac_cv_objext
4594 ac_objext=$OBJEXT
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4596 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4597 if ${ac_cv_c_compiler_gnu+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602
4603 int
4604 main ()
4605 {
4606 #ifndef __GNUC__
4607 choke me
4608 #endif
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_compiler_gnu=yes
4616 else
4617 ac_compiler_gnu=no
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4624 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4625 if test $ac_compiler_gnu = yes; then
4626 GCC=yes
4627 else
4628 GCC=
4629 fi
4630 ac_test_CFLAGS=${CFLAGS+set}
4631 ac_save_CFLAGS=$CFLAGS
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4633 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4634 if ${ac_cv_prog_cc_g+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 ac_save_c_werror_flag=$ac_c_werror_flag
4638 ac_c_werror_flag=yes
4639 ac_cv_prog_cc_g=no
4640 CFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643
4644 int
4645 main ()
4646 {
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_g=yes
4654 else
4655 CFLAGS=""
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658
4659 int
4660 main ()
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668
4669 else
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="-g"
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674
4675 int
4676 main ()
4677 {
4678
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 ac_cv_prog_cc_g=yes
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_c_werror_flag=$ac_save_c_werror_flag
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4694 $as_echo "$ac_cv_prog_cc_g" >&6; }
4695 if test "$ac_test_CFLAGS" = set; then
4696 CFLAGS=$ac_save_CFLAGS
4697 elif test $ac_cv_prog_cc_g = yes; then
4698 if test "$GCC" = yes; then
4699 CFLAGS="-g -O2"
4700 else
4701 CFLAGS="-g"
4702 fi
4703 else
4704 if test "$GCC" = yes; then
4705 CFLAGS="-O2"
4706 else
4707 CFLAGS=
4708 fi
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4711 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4712 if ${ac_cv_prog_cc_c89+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 ac_cv_prog_cc_c89=no
4716 ac_save_CC=$CC
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4719 #include <stdarg.h>
4720 #include <stdio.h>
4721 #include <sys/types.h>
4722 #include <sys/stat.h>
4723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4724 struct buf { int x; };
4725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4726 static char *e (p, i)
4727 char **p;
4728 int i;
4729 {
4730 return p[i];
4731 }
4732 static char *f (char * (*g) (char **, int), char **p, ...)
4733 {
4734 char *s;
4735 va_list v;
4736 va_start (v,p);
4737 s = g (p, va_arg (v,int));
4738 va_end (v);
4739 return s;
4740 }
4741
4742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4743 function prototypes and stuff, but not '\xHH' hex character constants.
4744 These don't provoke an error unfortunately, instead are silently treated
4745 as 'x'. The following induces an error, until -std is added to get
4746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4747 array size at least. It's necessary to write '\x00'==0 to get something
4748 that's true only with -std. */
4749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4750
4751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4752 inside strings and character constants. */
4753 #define FOO(x) 'x'
4754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4755
4756 int test (int i, double x);
4757 struct s1 {int (*f) (int a);};
4758 struct s2 {int (*f) (double a);};
4759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4760 int argc;
4761 char **argv;
4762 int
4763 main ()
4764 {
4765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4772 do
4773 CC="$ac_save_CC $ac_arg"
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_cv_prog_cc_c89=$ac_arg
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext
4778 test "x$ac_cv_prog_cc_c89" != "xno" && break
4779 done
4780 rm -f conftest.$ac_ext
4781 CC=$ac_save_CC
4782
4783 fi
4784 # AC_CACHE_VAL
4785 case "x$ac_cv_prog_cc_c89" in
4786 x)
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4788 $as_echo "none needed" >&6; } ;;
4789 xno)
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4791 $as_echo "unsupported" >&6; } ;;
4792 *)
4793 CC="$CC $ac_cv_prog_cc_c89"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4795 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4796 esac
4797 if test "x$ac_cv_prog_cc_c89" != xno; then :
4798
4799 fi
4800
4801 ac_ext=c
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806 DEPDIR="${am__leading_dot}deps"
4807
4808 ac_config_commands="$ac_config_commands depfiles"
4809
4810
4811 am_make=${MAKE-make}
4812 cat > confinc << 'END'
4813 am__doit:
4814 @echo this is the am__doit target
4815 .PHONY: am__doit
4816 END
4817 # If we don't find an include directive, just comment out the code.
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4819 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4820 am__include="#"
4821 am__quote=
4822 _am_result=none
4823 # First try GNU make style include.
4824 echo "include confinc" > confmf
4825 # Ignore all kinds of additional output from `make'.
4826 case `$am_make -s -f confmf 2> /dev/null` in #(
4827 *the\ am__doit\ target*)
4828 am__include=include
4829 am__quote=
4830 _am_result=GNU
4831 ;;
4832 esac
4833 # Now try BSD make style include.
4834 if test "$am__include" = "#"; then
4835 echo '.include "confinc"' > confmf
4836 case `$am_make -s -f confmf 2> /dev/null` in #(
4837 *the\ am__doit\ target*)
4838 am__include=.include
4839 am__quote="\""
4840 _am_result=BSD
4841 ;;
4842 esac
4843 fi
4844
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4847 $as_echo "$_am_result" >&6; }
4848 rm -f confinc confmf
4849
4850 # Check whether --enable-dependency-tracking was given.
4851 if test "${enable_dependency_tracking+set}" = set; then :
4852 enableval=$enable_dependency_tracking;
4853 fi
4854
4855 if test "x$enable_dependency_tracking" != xno; then
4856 am_depcomp="$ac_aux_dir/depcomp"
4857 AMDEPBACKSLASH='\'
4858 fi
4859 if test "x$enable_dependency_tracking" != xno; then
4860 AMDEP_TRUE=
4861 AMDEP_FALSE='#'
4862 else
4863 AMDEP_TRUE='#'
4864 AMDEP_FALSE=
4865 fi
4866
4867
4868
4869 depcc="$CC" am_compiler_list=
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4872 $as_echo_n "checking dependency style of $depcc... " >&6; }
4873 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4877 # We make a subdir and do the tests there. Otherwise we can end up
4878 # making bogus files that we don't know about and never remove. For
4879 # instance it was reported that on HP-UX the gcc test will end up
4880 # making a dummy file named `D' -- because `-MD' means `put the output
4881 # in D'.
4882 mkdir conftest.dir
4883 # Copy depcomp to subdir because otherwise we won't find it if we're
4884 # using a relative directory.
4885 cp "$am_depcomp" conftest.dir
4886 cd conftest.dir
4887 # We will build objects and dependencies in a subdirectory because
4888 # it helps to detect inapplicable dependency modes. For instance
4889 # both Tru64's cc and ICC support -MD to output dependencies as a
4890 # side effect of compilation, but ICC will put the dependencies in
4891 # the current directory while Tru64 will put them in the object
4892 # directory.
4893 mkdir sub
4894
4895 am_cv_CC_dependencies_compiler_type=none
4896 if test "$am_compiler_list" = ""; then
4897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4898 fi
4899 am__universal=false
4900 case " $depcc " in #(
4901 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4902 esac
4903
4904 for depmode in $am_compiler_list; do
4905 # Setup a source with many dependencies, because some compilers
4906 # like to wrap large dependency lists on column 80 (with \), and
4907 # we should not choose a depcomp mode which is confused by this.
4908 #
4909 # We need to recreate these files for each test, as the compiler may
4910 # overwrite some of them when testing with obscure command lines.
4911 # This happens at least with the AIX C compiler.
4912 : > sub/conftest.c
4913 for i in 1 2 3 4 5 6; do
4914 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4915 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4916 # Solaris 8's {/usr,}/bin/sh.
4917 touch sub/conftst$i.h
4918 done
4919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4920
4921 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4922 # mode. It turns out that the SunPro C++ compiler does not properly
4923 # handle `-M -o', and we need to detect this. Also, some Intel
4924 # versions had trouble with output in subdirs
4925 am__obj=sub/conftest.${OBJEXT-o}
4926 am__minus_obj="-o $am__obj"
4927 case $depmode in
4928 gcc)
4929 # This depmode causes a compiler race in universal mode.
4930 test "$am__universal" = false || continue
4931 ;;
4932 nosideeffect)
4933 # after this tag, mechanisms are not by side-effect, so they'll
4934 # only be used when explicitly requested
4935 if test "x$enable_dependency_tracking" = xyes; then
4936 continue
4937 else
4938 break
4939 fi
4940 ;;
4941 msvisualcpp | msvcmsys)
4942 # This compiler won't grok `-c -o', but also, the minuso test has
4943 # not run yet. These depmodes are late enough in the game, and
4944 # so weak that their functioning should not be impacted.
4945 am__obj=conftest.${OBJEXT-o}
4946 am__minus_obj=
4947 ;;
4948 none) break ;;
4949 esac
4950 if depmode=$depmode \
4951 source=sub/conftest.c object=$am__obj \
4952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4954 >/dev/null 2>conftest.err &&
4955 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4957 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4959 # icc doesn't choke on unknown options, it will just issue warnings
4960 # or remarks (even with -Werror). So we grep stderr for any message
4961 # that says an option was ignored or not supported.
4962 # When given -MP, icc 7.0 and 7.1 complain thusly:
4963 # icc: Command line warning: ignoring option '-M'; no argument required
4964 # The diagnosis changed in icc 8.0:
4965 # icc: Command line remark: option '-MP' not supported
4966 if (grep 'ignoring option' conftest.err ||
4967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4968 am_cv_CC_dependencies_compiler_type=$depmode
4969 break
4970 fi
4971 fi
4972 done
4973
4974 cd ..
4975 rm -rf conftest.dir
4976 else
4977 am_cv_CC_dependencies_compiler_type=none
4978 fi
4979
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4982 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4983 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4984
4985 if
4986 test "x$enable_dependency_tracking" != xno \
4987 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4988 am__fastdepCC_TRUE=
4989 am__fastdepCC_FALSE='#'
4990 else
4991 am__fastdepCC_TRUE='#'
4992 am__fastdepCC_FALSE=
4993 fi
4994
4995
4996 if test "x$CC" != xcc; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4998 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5001 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5002 fi
5003 set dummy $CC; ac_cc=`$as_echo "$2" |
5004 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5005 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010
5011 int
5012 main ()
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 # Make sure it works both with $CC and with simple cc.
5020 # We do the test twice because some compilers refuse to overwrite an
5021 # existing .o file with -o, though they will create one.
5022 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5023 rm -f conftest2.*
5024 if { { case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5029 $as_echo "$ac_try_echo"; } >&5
5030 (eval "$ac_try") 2>&5
5031 ac_status=$?
5032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5033 test $ac_status = 0; } &&
5034 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037 esac
5038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039 $as_echo "$ac_try_echo"; } >&5
5040 (eval "$ac_try") 2>&5
5041 ac_status=$?
5042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; };
5044 then
5045 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5046 if test "x$CC" != xcc; then
5047 # Test first that cc exists at all.
5048 if { ac_try='cc -c conftest.$ac_ext >&5'
5049 { { case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5054 $as_echo "$ac_try_echo"; } >&5
5055 (eval "$ac_try") 2>&5
5056 ac_status=$?
5057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5058 test $ac_status = 0; }; }; then
5059 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5060 rm -f conftest2.*
5061 if { { case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064 esac
5065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5066 $as_echo "$ac_try_echo"; } >&5
5067 (eval "$ac_try") 2>&5
5068 ac_status=$?
5069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5070 test $ac_status = 0; } &&
5071 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074 esac
5075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5076 $as_echo "$ac_try_echo"; } >&5
5077 (eval "$ac_try") 2>&5
5078 ac_status=$?
5079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5080 test $ac_status = 0; };
5081 then
5082 # cc works too.
5083 :
5084 else
5085 # cc exists but doesn't like -o.
5086 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5087 fi
5088 fi
5089 fi
5090 else
5091 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5092 fi
5093 rm -f core conftest*
5094
5095 fi
5096 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098 $as_echo "yes" >&6; }
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102
5103 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5104
5105 fi
5106
5107 # FIXME: we rely on the cache variable name because
5108 # there is no other way.
5109 set dummy $CC
5110 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5111 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5112 if test "$am_t" != yes; then
5113 # Losing compiler, so override with the script.
5114 # FIXME: It is wrong to rewrite CC.
5115 # But if we don't then we get into trouble of one sort or another.
5116 # A longer-term fix would be to have automake use am__CC in this case,
5117 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5118 CC="$am_aux_dir/compile $CC"
5119 fi
5120
5121
5122
5123 # Initialize gnulib right after verifying that the C compiler works.
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_RANLIB+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5145 fi
5146 done
5147 done
5148 IFS=$as_save_IFS
5149
5150 fi
5151 fi
5152 RANLIB=$ac_cv_prog_RANLIB
5153 if test -n "$RANLIB"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5155 $as_echo "$RANLIB" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161
5162 fi
5163 if test -z "$ac_cv_prog_RANLIB"; then
5164 ac_ct_RANLIB=$RANLIB
5165 # Extract the first word of "ranlib", so it can be a program name with args.
5166 set dummy ranlib; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$ac_ct_RANLIB"; then
5173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_ac_ct_RANLIB="ranlib"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 fi
5191 fi
5192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5193 if test -n "$ac_ct_RANLIB"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5195 $as_echo "$ac_ct_RANLIB" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201 if test "x$ac_ct_RANLIB" = x; then
5202 RANLIB=":"
5203 else
5204 case $cross_compiling:$ac_tool_warned in
5205 yes:)
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208 ac_tool_warned=yes ;;
5209 esac
5210 RANLIB=$ac_ct_RANLIB
5211 fi
5212 else
5213 RANLIB="$ac_cv_prog_RANLIB"
5214 fi
5215
5216
5217 ac_ext=c
5218 ac_cpp='$CPP $CPPFLAGS'
5219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5223 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5224 # On Suns, sometimes $CPP names a directory.
5225 if test -n "$CPP" && test -d "$CPP"; then
5226 CPP=
5227 fi
5228 if test -z "$CPP"; then
5229 if ${ac_cv_prog_CPP+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 # Double quotes because CPP needs to be expanded
5233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5234 do
5235 ac_preproc_ok=false
5236 for ac_c_preproc_warn_flag in '' yes
5237 do
5238 # Use a header file that comes with gcc, so configuring glibc
5239 # with a fresh cross-compiler works.
5240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5241 # <limits.h> exists even on freestanding compilers.
5242 # On the NeXT, cc -E runs the code through the compiler's parser,
5243 # not just through cpp. "Syntax error" is here to catch this case.
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 #ifdef __STDC__
5247 # include <limits.h>
5248 #else
5249 # include <assert.h>
5250 #endif
5251 Syntax error
5252 _ACEOF
5253 if ac_fn_c_try_cpp "$LINENO"; then :
5254
5255 else
5256 # Broken: fails on valid input.
5257 continue
5258 fi
5259 rm -f conftest.err conftest.i conftest.$ac_ext
5260
5261 # OK, works on sane cases. Now check whether nonexistent headers
5262 # can be detected and how.
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265 #include <ac_nonexistent.h>
5266 _ACEOF
5267 if ac_fn_c_try_cpp "$LINENO"; then :
5268 # Broken: success on invalid input.
5269 continue
5270 else
5271 # Passes both tests.
5272 ac_preproc_ok=:
5273 break
5274 fi
5275 rm -f conftest.err conftest.i conftest.$ac_ext
5276
5277 done
5278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5279 rm -f conftest.i conftest.err conftest.$ac_ext
5280 if $ac_preproc_ok; then :
5281 break
5282 fi
5283
5284 done
5285 ac_cv_prog_CPP=$CPP
5286
5287 fi
5288 CPP=$ac_cv_prog_CPP
5289 else
5290 ac_cv_prog_CPP=$CPP
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5293 $as_echo "$CPP" >&6; }
5294 ac_preproc_ok=false
5295 for ac_c_preproc_warn_flag in '' yes
5296 do
5297 # Use a header file that comes with gcc, so configuring glibc
5298 # with a fresh cross-compiler works.
5299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5300 # <limits.h> exists even on freestanding compilers.
5301 # On the NeXT, cc -E runs the code through the compiler's parser,
5302 # not just through cpp. "Syntax error" is here to catch this case.
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #ifdef __STDC__
5306 # include <limits.h>
5307 #else
5308 # include <assert.h>
5309 #endif
5310 Syntax error
5311 _ACEOF
5312 if ac_fn_c_try_cpp "$LINENO"; then :
5313
5314 else
5315 # Broken: fails on valid input.
5316 continue
5317 fi
5318 rm -f conftest.err conftest.i conftest.$ac_ext
5319
5320 # OK, works on sane cases. Now check whether nonexistent headers
5321 # can be detected and how.
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 #include <ac_nonexistent.h>
5325 _ACEOF
5326 if ac_fn_c_try_cpp "$LINENO"; then :
5327 # Broken: success on invalid input.
5328 continue
5329 else
5330 # Passes both tests.
5331 ac_preproc_ok=:
5332 break
5333 fi
5334 rm -f conftest.err conftest.i conftest.$ac_ext
5335
5336 done
5337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5338 rm -f conftest.i conftest.err conftest.$ac_ext
5339 if $ac_preproc_ok; then :
5340
5341 else
5342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5344 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5345 See \`config.log' for more details" "$LINENO" 5; }
5346 fi
5347
5348 ac_ext=c
5349 ac_cpp='$CPP $CPPFLAGS'
5350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5356 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5357 if ${ac_cv_path_GREP+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -z "$GREP"; then
5361 ac_path_GREP_found=false
5362 # Loop through the user's path and test for each of PROGNAME-LIST
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5365 do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_prog in grep ggrep; do
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5371 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5372 # Check for GNU ac_path_GREP and select it if it is found.
5373 # Check for GNU $ac_path_GREP
5374 case `"$ac_path_GREP" --version 2>&1` in
5375 *GNU*)
5376 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5377 *)
5378 ac_count=0
5379 $as_echo_n 0123456789 >"conftest.in"
5380 while :
5381 do
5382 cat "conftest.in" "conftest.in" >"conftest.tmp"
5383 mv "conftest.tmp" "conftest.in"
5384 cp "conftest.in" "conftest.nl"
5385 $as_echo 'GREP' >> "conftest.nl"
5386 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5388 as_fn_arith $ac_count + 1 && ac_count=$as_val
5389 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5390 # Best one so far, save it but keep looking for a better one
5391 ac_cv_path_GREP="$ac_path_GREP"
5392 ac_path_GREP_max=$ac_count
5393 fi
5394 # 10*(2^10) chars as input seems more than enough
5395 test $ac_count -gt 10 && break
5396 done
5397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5398 esac
5399
5400 $ac_path_GREP_found && break 3
5401 done
5402 done
5403 done
5404 IFS=$as_save_IFS
5405 if test -z "$ac_cv_path_GREP"; then
5406 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5407 fi
5408 else
5409 ac_cv_path_GREP=$GREP
5410 fi
5411
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5414 $as_echo "$ac_cv_path_GREP" >&6; }
5415 GREP="$ac_cv_path_GREP"
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5419 $as_echo_n "checking for egrep... " >&6; }
5420 if ${ac_cv_path_EGREP+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5424 then ac_cv_path_EGREP="$GREP -E"
5425 else
5426 if test -z "$EGREP"; then
5427 ac_path_EGREP_found=false
5428 # Loop through the user's path and test for each of PROGNAME-LIST
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5431 do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_prog in egrep; do
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5437 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5438 # Check for GNU ac_path_EGREP and select it if it is found.
5439 # Check for GNU $ac_path_EGREP
5440 case `"$ac_path_EGREP" --version 2>&1` in
5441 *GNU*)
5442 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5443 *)
5444 ac_count=0
5445 $as_echo_n 0123456789 >"conftest.in"
5446 while :
5447 do
5448 cat "conftest.in" "conftest.in" >"conftest.tmp"
5449 mv "conftest.tmp" "conftest.in"
5450 cp "conftest.in" "conftest.nl"
5451 $as_echo 'EGREP' >> "conftest.nl"
5452 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5454 as_fn_arith $ac_count + 1 && ac_count=$as_val
5455 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5456 # Best one so far, save it but keep looking for a better one
5457 ac_cv_path_EGREP="$ac_path_EGREP"
5458 ac_path_EGREP_max=$ac_count
5459 fi
5460 # 10*(2^10) chars as input seems more than enough
5461 test $ac_count -gt 10 && break
5462 done
5463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5464 esac
5465
5466 $ac_path_EGREP_found && break 3
5467 done
5468 done
5469 done
5470 IFS=$as_save_IFS
5471 if test -z "$ac_cv_path_EGREP"; then
5472 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5473 fi
5474 else
5475 ac_cv_path_EGREP=$EGREP
5476 fi
5477
5478 fi
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5481 $as_echo "$ac_cv_path_EGREP" >&6; }
5482 EGREP="$ac_cv_path_EGREP"
5483
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5486 $as_echo_n "checking for ANSI C header files... " >&6; }
5487 if ${ac_cv_header_stdc+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5492 #include <stdlib.h>
5493 #include <stdarg.h>
5494 #include <string.h>
5495 #include <float.h>
5496
5497 int
5498 main ()
5499 {
5500
5501 ;
5502 return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_header_stdc=yes
5507 else
5508 ac_cv_header_stdc=no
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511
5512 if test $ac_cv_header_stdc = yes; then
5513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 #include <string.h>
5517
5518 _ACEOF
5519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5520 $EGREP "memchr" >/dev/null 2>&1; then :
5521
5522 else
5523 ac_cv_header_stdc=no
5524 fi
5525 rm -f conftest*
5526
5527 fi
5528
5529 if test $ac_cv_header_stdc = yes; then
5530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include <stdlib.h>
5534
5535 _ACEOF
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 $EGREP "free" >/dev/null 2>&1; then :
5538
5539 else
5540 ac_cv_header_stdc=no
5541 fi
5542 rm -f conftest*
5543
5544 fi
5545
5546 if test $ac_cv_header_stdc = yes; then
5547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5548 if test "$cross_compiling" = yes; then :
5549 :
5550 else
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <ctype.h>
5554 #include <stdlib.h>
5555 #if ((' ' & 0x0FF) == 0x020)
5556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5558 #else
5559 # define ISLOWER(c) \
5560 (('a' <= (c) && (c) <= 'i') \
5561 || ('j' <= (c) && (c) <= 'r') \
5562 || ('s' <= (c) && (c) <= 'z'))
5563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5564 #endif
5565
5566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5567 int
5568 main ()
5569 {
5570 int i;
5571 for (i = 0; i < 256; i++)
5572 if (XOR (islower (i), ISLOWER (i))
5573 || toupper (i) != TOUPPER (i))
5574 return 2;
5575 return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_c_try_run "$LINENO"; then :
5579
5580 else
5581 ac_cv_header_stdc=no
5582 fi
5583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5584 conftest.$ac_objext conftest.beam conftest.$ac_ext
5585 fi
5586
5587 fi
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5590 $as_echo "$ac_cv_header_stdc" >&6; }
5591 if test $ac_cv_header_stdc = yes; then
5592
5593 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5594
5595 fi
5596
5597 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5598 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5599 inttypes.h stdint.h unistd.h
5600 do :
5601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5603 "
5604 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5605 cat >>confdefs.h <<_ACEOF
5606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5607 _ACEOF
5608
5609 fi
5610
5611 done
5612
5613
5614
5615
5616
5617 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5618 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5619 MINIX=yes
5620 else
5621 MINIX=
5622 fi
5623
5624
5625 if test "$MINIX" = yes; then
5626
5627 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5628
5629
5630 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5631
5632
5633 $as_echo "#define _MINIX 1" >>confdefs.h
5634
5635 fi
5636
5637 case "$host_os" in
5638 hpux*)
5639
5640 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5641
5642 ;;
5643 esac
5644
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5647 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5648 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653
5654 # define __EXTENSIONS__ 1
5655 $ac_includes_default
5656 int
5657 main ()
5658 {
5659
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665 ac_cv_safe_to_define___extensions__=yes
5666 else
5667 ac_cv_safe_to_define___extensions__=no
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5672 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5673 test $ac_cv_safe_to_define___extensions__ = yes &&
5674 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5675
5676 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5677
5678 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5679
5680 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5681
5682 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693 # Code from module arg-nonnull:
5694 # Code from module c++defs:
5695 # Code from module extensions:
5696
5697 # Code from module ftoastr:
5698 # Code from module include_next:
5699 # Code from module intprops:
5700 # Code from module mktime:
5701 # Code from module multiarch:
5702 # Code from module stddef:
5703 # Code from module time:
5704 # Code from module time_r:
5705 # Code from module warn-on-use:
5706
5707
5708 # On Suns, sometimes $CPP names a directory.
5709 if test -n "$CPP" && test -d "$CPP"; then
5710 CPP=
5711 fi
5712
5713 ## If not using gcc, and on Solaris, and no CPP specified, see if
5714 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5715 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5716 test x"$CPP" = x; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5718 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5719 if ${emacs_cv_sunpro_c+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724
5725 int
5726 main ()
5727 {
5728 #ifndef __SUNPRO_C
5729 fail;
5730 #endif
5731
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 if ac_fn_c_try_link "$LINENO"; then :
5737 emacs_cv_sunpro_c=yes
5738 else
5739 emacs_cv_sunpro_c=no
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext \
5742 conftest$ac_exeext conftest.$ac_ext
5743 fi
5744
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5746 $as_echo "$emacs_cv_sunpro_c" >&6; }
5747
5748 if test x"$emacs_cv_sunpro_c" = xyes; then
5749 NON_GNU_CPP="$CC -E -Xs"
5750 fi
5751 fi
5752
5753 #### Some systems specify a CPP to use unless we are using GCC.
5754 #### Now that we know whether we are using GCC, we can decide whether
5755 #### to use that one.
5756 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5757 then
5758 CPP="$NON_GNU_CPP"
5759 fi
5760
5761 #### Some systems specify a CC to use unless we are using GCC.
5762 #### Now that we know whether we are using GCC, we can decide whether
5763 #### to use that one.
5764 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5765 test x$cc_specified != xyes
5766 then
5767 CC="$NON_GNU_CC"
5768 fi
5769
5770 if test x$GCC = xyes; then
5771 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5772 else
5773 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5774 fi
5775
5776
5777
5778 ### Use -Wno-pointer-sign if the compiler supports it
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5780 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5781 SAVE_CFLAGS="$CFLAGS"
5782 CFLAGS="$CFLAGS -Wno-pointer-sign"
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785
5786 int
5787 main ()
5788 {
5789
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 if ac_fn_c_try_compile "$LINENO"; then :
5795 has_option=yes
5796 else
5797 has_option=no
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 if test $has_option = yes; then
5801 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5804 $as_echo "$has_option" >&6; }
5805 CFLAGS="$SAVE_CFLAGS"
5806 unset has_option
5807 unset SAVE_CFLAGS
5808
5809 ### Use -Wdeclaration-after-statement if the compiler supports it
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5811 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5812 SAVE_CFLAGS="$CFLAGS"
5813 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816
5817 int
5818 main ()
5819 {
5820
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 if ac_fn_c_try_compile "$LINENO"; then :
5826 has_option=yes
5827 else
5828 has_option=no
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 if test $has_option = yes; then
5832 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5835 $as_echo "$has_option" >&6; }
5836 CFLAGS="$SAVE_CFLAGS"
5837 unset has_option
5838 unset SAVE_CFLAGS
5839
5840 ### Use -Wold-style-definition if the compiler supports it
5841 # This can be removed when conversion to standard C is finished.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5843 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5844 SAVE_CFLAGS="$CFLAGS"
5845 CFLAGS="$CFLAGS -Wold-style-definition"
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848
5849 int
5850 main ()
5851 {
5852
5853 ;
5854 return 0;
5855 }
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"; then :
5858 has_option=yes
5859 else
5860 has_option=no
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 if test $has_option = yes; then
5864 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5867 $as_echo "$has_option" >&6; }
5868 CFLAGS="$SAVE_CFLAGS"
5869 unset has_option
5870 unset SAVE_CFLAGS
5871
5872 ### Use -Wimplicit-function-declaration if the compiler supports it
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5874 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5875 SAVE_CFLAGS="$CFLAGS"
5876 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879
5880 int
5881 main ()
5882 {
5883
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 if ac_fn_c_try_compile "$LINENO"; then :
5889 has_option=yes
5890 else
5891 has_option=no
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 if test $has_option = yes; then
5895 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
5896 fi
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5898 $as_echo "$has_option" >&6; }
5899 CFLAGS="$SAVE_CFLAGS"
5900 unset has_option
5901 unset SAVE_CFLAGS
5902
5903
5904
5905
5906 #### Some other nice autoconf tests.
5907
5908 ac_ext=c
5909 ac_cpp='$CPP $CPPFLAGS'
5910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5914 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5915 # On Suns, sometimes $CPP names a directory.
5916 if test -n "$CPP" && test -d "$CPP"; then
5917 CPP=
5918 fi
5919 if test -z "$CPP"; then
5920 if ${ac_cv_prog_CPP+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 # Double quotes because CPP needs to be expanded
5924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5925 do
5926 ac_preproc_ok=false
5927 for ac_c_preproc_warn_flag in '' yes
5928 do
5929 # Use a header file that comes with gcc, so configuring glibc
5930 # with a fresh cross-compiler works.
5931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 # <limits.h> exists even on freestanding compilers.
5933 # On the NeXT, cc -E runs the code through the compiler's parser,
5934 # not just through cpp. "Syntax error" is here to catch this case.
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #ifdef __STDC__
5938 # include <limits.h>
5939 #else
5940 # include <assert.h>
5941 #endif
5942 Syntax error
5943 _ACEOF
5944 if ac_fn_c_try_cpp "$LINENO"; then :
5945
5946 else
5947 # Broken: fails on valid input.
5948 continue
5949 fi
5950 rm -f conftest.err conftest.i conftest.$ac_ext
5951
5952 # OK, works on sane cases. Now check whether nonexistent headers
5953 # can be detected and how.
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 #include <ac_nonexistent.h>
5957 _ACEOF
5958 if ac_fn_c_try_cpp "$LINENO"; then :
5959 # Broken: success on invalid input.
5960 continue
5961 else
5962 # Passes both tests.
5963 ac_preproc_ok=:
5964 break
5965 fi
5966 rm -f conftest.err conftest.i conftest.$ac_ext
5967
5968 done
5969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5970 rm -f conftest.i conftest.err conftest.$ac_ext
5971 if $ac_preproc_ok; then :
5972 break
5973 fi
5974
5975 done
5976 ac_cv_prog_CPP=$CPP
5977
5978 fi
5979 CPP=$ac_cv_prog_CPP
5980 else
5981 ac_cv_prog_CPP=$CPP
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5984 $as_echo "$CPP" >&6; }
5985 ac_preproc_ok=false
5986 for ac_c_preproc_warn_flag in '' yes
5987 do
5988 # Use a header file that comes with gcc, so configuring glibc
5989 # with a fresh cross-compiler works.
5990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5991 # <limits.h> exists even on freestanding compilers.
5992 # On the NeXT, cc -E runs the code through the compiler's parser,
5993 # not just through cpp. "Syntax error" is here to catch this case.
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 #ifdef __STDC__
5997 # include <limits.h>
5998 #else
5999 # include <assert.h>
6000 #endif
6001 Syntax error
6002 _ACEOF
6003 if ac_fn_c_try_cpp "$LINENO"; then :
6004
6005 else
6006 # Broken: fails on valid input.
6007 continue
6008 fi
6009 rm -f conftest.err conftest.i conftest.$ac_ext
6010
6011 # OK, works on sane cases. Now check whether nonexistent headers
6012 # can be detected and how.
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 #include <ac_nonexistent.h>
6016 _ACEOF
6017 if ac_fn_c_try_cpp "$LINENO"; then :
6018 # Broken: success on invalid input.
6019 continue
6020 else
6021 # Passes both tests.
6022 ac_preproc_ok=:
6023 break
6024 fi
6025 rm -f conftest.err conftest.i conftest.$ac_ext
6026
6027 done
6028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6029 rm -f conftest.i conftest.err conftest.$ac_ext
6030 if $ac_preproc_ok; then :
6031
6032 else
6033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6035 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6036 See \`config.log' for more details" "$LINENO" 5; }
6037 fi
6038
6039 ac_ext=c
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044
6045
6046 if test "x$RANLIB" = x; then
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_RANLIB+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$RANLIB"; then
6056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 RANLIB=$ac_cv_prog_RANLIB
6076 if test -n "$RANLIB"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6078 $as_echo "$RANLIB" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085 fi
6086 if test -z "$ac_cv_prog_RANLIB"; then
6087 ac_ct_RANLIB=$RANLIB
6088 # Extract the first word of "ranlib", so it can be a program name with args.
6089 set dummy ranlib; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$ac_ct_RANLIB"; then
6096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_ac_ct_RANLIB="ranlib"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6116 if test -n "$ac_ct_RANLIB"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6118 $as_echo "$ac_ct_RANLIB" >&6; }
6119 else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124 if test "x$ac_ct_RANLIB" = x; then
6125 RANLIB=":"
6126 else
6127 case $cross_compiling:$ac_tool_warned in
6128 yes:)
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131 ac_tool_warned=yes ;;
6132 esac
6133 RANLIB=$ac_ct_RANLIB
6134 fi
6135 else
6136 RANLIB="$ac_cv_prog_RANLIB"
6137 fi
6138
6139 fi
6140
6141 ## Although we're running on an amd64 kernel, we're actually compiling for
6142 ## the x86 architecture. The user should probably have provided an
6143 ## explicit --build to `configure', but if everything else than the kernel
6144 ## is running in i386 mode, we can help them out.
6145 if test "$machine" = "amdx86-64"; then
6146 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6147 if test "x$ac_cv_have_decl_i386" = xyes; then :
6148
6149 fi
6150
6151 if test "$ac_cv_have_decl_i386" = "yes"; then
6152 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6153 machine=intel386
6154 machfile="m/${machine}.h"
6155 fi
6156 fi
6157
6158 # Extract the first word of "install-info", so it can be a program name with args.
6159 set dummy install-info; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 case $INSTALL_INFO in
6166 [\\/]* | ?:[\\/]*)
6167 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6168 ;;
6169 *)
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6180 fi
6181 done
6182 done
6183 IFS=$as_save_IFS
6184
6185 ;;
6186 esac
6187 fi
6188 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6189 if test -n "$INSTALL_INFO"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6191 $as_echo "$INSTALL_INFO" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197
6198 # Extract the first word of "install-info", so it can be a program name with args.
6199 set dummy install-info; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 case $INSTALL_INFO in
6206 [\\/]* | ?:[\\/]*)
6207 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6208 ;;
6209 *)
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in /usr/sbin
6212 do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 ;;
6226 esac
6227 fi
6228 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6229 if test -n "$INSTALL_INFO"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6231 $as_echo "$INSTALL_INFO" >&6; }
6232 else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237
6238 # Extract the first word of "install-info", so it can be a program name with args.
6239 set dummy install-info; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 case $INSTALL_INFO in
6246 [\\/]* | ?:[\\/]*)
6247 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6248 ;;
6249 *)
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in /sbin
6252 do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6266 ;;
6267 esac
6268 fi
6269 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6270 if test -n "$INSTALL_INFO"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6272 $as_echo "$INSTALL_INFO" >&6; }
6273 else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278
6279 # Extract the first word of "gzip", so it can be a program name with args.
6280 set dummy gzip; ac_word=$2
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if ${ac_cv_path_GZIP_PROG+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 case $GZIP_PROG in
6287 [\\/]* | ?:[\\/]*)
6288 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6289 ;;
6290 *)
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302 done
6303 done
6304 IFS=$as_save_IFS
6305
6306 ;;
6307 esac
6308 fi
6309 GZIP_PROG=$ac_cv_path_GZIP_PROG
6310 if test -n "$GZIP_PROG"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6312 $as_echo "$GZIP_PROG" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318
6319
6320
6321 ## Need makeinfo >= 4.6 (?) to build the manuals.
6322 # Extract the first word of "makeinfo", so it can be a program name with args.
6323 set dummy makeinfo; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_path_MAKEINFO+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 case $MAKEINFO in
6330 [\\/]* | ?:[\\/]*)
6331 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6332 ;;
6333 *)
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345 done
6346 done
6347 IFS=$as_save_IFS
6348
6349 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6350 ;;
6351 esac
6352 fi
6353 MAKEINFO=$ac_cv_path_MAKEINFO
6354 if test -n "$MAKEINFO"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6356 $as_echo "$MAKEINFO" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361
6362
6363 if test "$MAKEINFO" != "no" && \
6364 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
6365 MAKEINFO=no
6366 fi
6367
6368 ## Makeinfo is unusual. For a released Emacs, the manuals are
6369 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6370 ## therefore in the category of "special tools" not normally required, which
6371 ## configure does not have to check for (eg autoconf itself).
6372 ## In a Bazaar checkout on the other hand, the manuals are not included.
6373 ## So makeinfo is a requirement to build from Bazaar, and configure
6374 ## should test for it as it does for any other build requirement.
6375 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6376 ## with pre-built manuals, from a Bazaar checkout.
6377 HAVE_MAKEINFO=yes
6378
6379 if test "$MAKEINFO" = "no"; then
6380 MAKEINFO=makeinfo
6381 if test "x${with_makeinfo}" = "xno"; then
6382 HAVE_MAKEINFO=no
6383 elif test ! -e $srcdir/info/emacs; then
6384 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6385 source tree does not seem to have pre-built manuals in the \`info' directory.
6386 Either install a suitable version of makeinfo, or re-run configure
6387 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6388 fi
6389 fi
6390
6391
6392
6393 if test x$GCC = xyes; then
6394 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6395 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6396 else
6397 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6398 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6399 fi
6400
6401
6402 late_LDFLAGS=$LDFLAGS
6403 if test x$GCC = xyes; then
6404 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6405 else
6406 LDFLAGS="$LDFLAGS -znocombreloc"
6407 fi
6408
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6410 $as_echo_n "checking for -znocombreloc... " >&6; }
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413
6414 int
6415 main ()
6416 {
6417
6418 ;
6419 return 0;
6420 }
6421 _ACEOF
6422 if ac_fn_c_try_link "$LINENO"; then :
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6424 $as_echo "yes" >&6; }
6425 else
6426 LDFLAGS=$late_LDFLAGS
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext \
6431 conftest$ac_exeext conftest.$ac_ext
6432
6433
6434 # The value of CPP is a quoted variable reference, so we need to do this
6435 # to get its actual value...
6436 CPP=`eval "echo $CPP"`
6437
6438
6439 CANNOT_DUMP=no
6440 case "$opsys" in
6441 your-opsys-here)
6442 CANNOT_DUMP=yes
6443
6444 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6445
6446 ;;
6447 esac
6448
6449
6450
6451 UNEXEC_OBJ=unexelf.o
6452 case "$opsys" in
6453 # MSDOS uses unexcoff.o
6454 # MSWindows uses unexw32.o
6455 aix4-2)
6456 UNEXEC_OBJ=unexaix.o
6457 ;;
6458 cygwin)
6459 UNEXEC_OBJ=unexcw.o
6460 ;;
6461 darwin)
6462 UNEXEC_OBJ=unexmacosx.o
6463 ;;
6464 hpux10-20 | hpux11)
6465 UNEXEC_OBJ=unexhp9k800.o
6466 ;;
6467 sol2-10)
6468 # Use the Solaris dldump() function, called from unexsol.c, to dump
6469 # emacs, instead of the generic ELF dump code found in unexelf.c.
6470 # The resulting binary has a complete symbol table, and is better
6471 # for debugging and other observability tools (debuggers, pstack, etc).
6472 #
6473 # If you encounter a problem using dldump(), please consider sending
6474 # a message to the OpenSolaris tools-linking mailing list:
6475 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6476 #
6477 # It is likely that dldump() works with older Solaris too, but this has
6478 # not been tested, so for now this change is for Solaris 10 or newer.
6479 UNEXEC_OBJ=unexsol.o
6480 ;;
6481 esac
6482
6483 LD_SWITCH_SYSTEM=
6484 case "$opsys" in
6485 freebsd)
6486 ## Let `ld' find image libs and similar things in /usr/local/lib.
6487 ## The system compiler, GCC, has apparently been modified to not
6488 ## look there, contrary to what a stock GCC would do.
6489 LD_SWITCH_SYSTEM=-L/usr/local/lib
6490 ;;
6491
6492 gnu-linux)
6493 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6494 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6495 ;;
6496
6497 netbsd)
6498 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6499 ;;
6500
6501 openbsd)
6502 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6503 ## otherwise Emacs dumps core on elf systems.
6504 LD_SWITCH_SYSTEM="-Z"
6505 ;;
6506 esac
6507
6508
6509 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6510
6511 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6512 ## which has not been defined yet. When this was handled with cpp,
6513 ## it was expanded to null when configure sourced the s/*.h file.
6514 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6515 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6516 ## (or somesuch), but because it is supposed to go at the _front_
6517 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6518 ## Compare with the gnu-linux case below, which added to the end
6519 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6520 ## LD_SWITCH_SYSTEM_TEMACS.
6521 case "$opsys" in
6522 netbsd|openbsd)
6523 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6524 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6525 esac
6526
6527
6528 C_SWITCH_MACHINE=
6529 if test "$machine" = "alpha"; then
6530 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6531 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6532
6533 fi
6534
6535 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6536 ## With ELF, make sure that all common symbols get allocated to in the
6537 ## data section. Otherwise, the dump of temacs may miss variables in
6538 ## the shared library that have been initialized. For example, with
6539 ## GNU libc, __malloc_initialized would normally be resolved to the
6540 ## shared library's .bss section, which is fatal.
6541 if test "x$GCC" = "xyes"; then
6542 C_SWITCH_MACHINE="-fno-common"
6543 else
6544 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6545 fi
6546 else
6547 UNEXEC_OBJ=unexalpha.o
6548 fi
6549 fi
6550
6551
6552
6553
6554 C_SWITCH_SYSTEM=
6555 ## Some programs in src produce warnings saying certain subprograms
6556 ## are too complex and need a MAXMEM value greater than 2000 for
6557 ## additional optimization. --nils@exp-math.uni-essen.de
6558 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6559 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6560 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6561 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6562
6563
6564
6565 LIBS_SYSTEM=
6566 case "$opsys" in
6567 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6568 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6569
6570 freebsd) LIBS_SYSTEM="-lutil" ;;
6571
6572 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6573
6574 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6575
6576 ## Motif needs -lgen.
6577 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6578 esac
6579
6580
6581
6582 ### Make sure subsequent tests use flags consistent with the build flags.
6583
6584 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6585 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6586 else
6587 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6588 fi
6589
6590
6591
6592 # Check whether --enable-largefile was given.
6593 if test "${enable_largefile+set}" = set; then :
6594 enableval=$enable_largefile;
6595 fi
6596
6597 if test "$enable_largefile" != no; then
6598
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6600 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6601 if ${ac_cv_sys_largefile_CC+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 ac_cv_sys_largefile_CC=no
6605 if test "$GCC" != yes; then
6606 ac_save_CC=$CC
6607 while :; do
6608 # IRIX 6.2 and later do not support large files by default,
6609 # so use the C compiler's -n32 option if that helps.
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <sys/types.h>
6613 /* Check that off_t can represent 2**63 - 1 correctly.
6614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6615 since some C++ compilers masquerading as C compilers
6616 incorrectly reject 9223372036854775807. */
6617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6619 && LARGE_OFF_T % 2147483647 == 1)
6620 ? 1 : -1];
6621 int
6622 main ()
6623 {
6624
6625 ;
6626 return 0;
6627 }
6628 _ACEOF
6629 if ac_fn_c_try_compile "$LINENO"; then :
6630 break
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext
6633 CC="$CC -n32"
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635 ac_cv_sys_largefile_CC=' -n32'; break
6636 fi
6637 rm -f core conftest.err conftest.$ac_objext
6638 break
6639 done
6640 CC=$ac_save_CC
6641 rm -f conftest.$ac_ext
6642 fi
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6645 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6646 if test "$ac_cv_sys_largefile_CC" != no; then
6647 CC=$CC$ac_cv_sys_largefile_CC
6648 fi
6649
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6651 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6652 if ${ac_cv_sys_file_offset_bits+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 while :; do
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 #include <sys/types.h>
6659 /* Check that off_t can represent 2**63 - 1 correctly.
6660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6661 since some C++ compilers masquerading as C compilers
6662 incorrectly reject 9223372036854775807. */
6663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6665 && LARGE_OFF_T % 2147483647 == 1)
6666 ? 1 : -1];
6667 int
6668 main ()
6669 {
6670
6671 ;
6672 return 0;
6673 }
6674 _ACEOF
6675 if ac_fn_c_try_compile "$LINENO"; then :
6676 ac_cv_sys_file_offset_bits=no; break
6677 fi
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 #define _FILE_OFFSET_BITS 64
6682 #include <sys/types.h>
6683 /* Check that off_t can represent 2**63 - 1 correctly.
6684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6685 since some C++ compilers masquerading as C compilers
6686 incorrectly reject 9223372036854775807. */
6687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6689 && LARGE_OFF_T % 2147483647 == 1)
6690 ? 1 : -1];
6691 int
6692 main ()
6693 {
6694
6695 ;
6696 return 0;
6697 }
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 ac_cv_sys_file_offset_bits=64; break
6701 fi
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703 ac_cv_sys_file_offset_bits=unknown
6704 break
6705 done
6706 fi
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6708 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6709 case $ac_cv_sys_file_offset_bits in #(
6710 no | unknown) ;;
6711 *)
6712 cat >>confdefs.h <<_ACEOF
6713 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6714 _ACEOF
6715 ;;
6716 esac
6717 rm -rf conftest*
6718 if test $ac_cv_sys_file_offset_bits = unknown; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6720 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6721 if ${ac_cv_sys_large_files+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 while :; do
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 #include <sys/types.h>
6728 /* Check that off_t can represent 2**63 - 1 correctly.
6729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6730 since some C++ compilers masquerading as C compilers
6731 incorrectly reject 9223372036854775807. */
6732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6734 && LARGE_OFF_T % 2147483647 == 1)
6735 ? 1 : -1];
6736 int
6737 main ()
6738 {
6739
6740 ;
6741 return 0;
6742 }
6743 _ACEOF
6744 if ac_fn_c_try_compile "$LINENO"; then :
6745 ac_cv_sys_large_files=no; break
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #define _LARGE_FILES 1
6751 #include <sys/types.h>
6752 /* Check that off_t can represent 2**63 - 1 correctly.
6753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6754 since some C++ compilers masquerading as C compilers
6755 incorrectly reject 9223372036854775807. */
6756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6758 && LARGE_OFF_T % 2147483647 == 1)
6759 ? 1 : -1];
6760 int
6761 main ()
6762 {
6763
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769 ac_cv_sys_large_files=1; break
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 ac_cv_sys_large_files=unknown
6773 break
6774 done
6775 fi
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6777 $as_echo "$ac_cv_sys_large_files" >&6; }
6778 case $ac_cv_sys_large_files in #(
6779 no | unknown) ;;
6780 *)
6781 cat >>confdefs.h <<_ACEOF
6782 #define _LARGE_FILES $ac_cv_sys_large_files
6783 _ACEOF
6784 ;;
6785 esac
6786 rm -rf conftest*
6787 fi
6788 fi
6789
6790
6791
6792 ## If user specified a crt-dir, use that unconditionally.
6793 if test "X$CRT_DIR" = "X"; then
6794
6795 case "$canonical" in
6796 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6797 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6798 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6799 ## For anything else (eg /usr/lib32), it is up the user to specify
6800 ## the location (bug#5655).
6801 ## Test for crtn.o, not just the directory, because sometimes the
6802 ## directory exists but does not have the relevant files (bug#1287).
6803 ## FIXME better to test for binary compatibility somehow.
6804 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6805 ;;
6806
6807 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6808 esac
6809
6810 case "$opsys" in
6811 hpux10-20) CRT_DIR=/lib ;;
6812 esac
6813
6814 ## Default is /usr/lib.
6815 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6816
6817 else
6818
6819 ## Some platforms don't use any of these files, so it is not
6820 ## appropriate to put this test outside the if block.
6821 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6822 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
6823
6824 fi
6825
6826
6827
6828 LIB_MATH=-lm
6829 LIB_STANDARD=
6830 START_FILES=
6831
6832 case $opsys in
6833 cygwin )
6834 LIB_MATH=
6835 START_FILES='pre-crt0.o'
6836 ;;
6837 darwin )
6838 ## Adding -lm confuses the dynamic linker, so omit it.
6839 LIB_MATH=
6840 START_FILES='pre-crt0.o'
6841 ;;
6842 freebsd )
6843 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6844 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6845 ;;
6846 gnu-linux | gnu-kfreebsd )
6847 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6848 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6849 ;;
6850 hpux10-20 | hpux11 )
6851 LIB_STANDARD=-lc
6852 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6853 ;;
6854 netbsd | openbsd )
6855 if test -f $CRT_DIR/crti.o; then
6856 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6857 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6858 else
6859 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6860 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6861 fi
6862 ;;
6863 esac
6864
6865
6866
6867
6868
6869
6870
6871 if test "${with_sound}" != "no"; then
6872 # Sound support for GNU/Linux and the free BSDs.
6873 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6874 do :
6875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6876 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6878 cat >>confdefs.h <<_ACEOF
6879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6880 _ACEOF
6881 have_sound_header=yes
6882 fi
6883
6884 done
6885
6886 # Emulation library used on NetBSD.
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6888 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6889 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 ac_check_lib_save_LIBS=$LIBS
6893 LIBS="-lossaudio $LIBS"
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896
6897 /* Override any GCC internal prototype to avoid an error.
6898 Use char because int might match the return type of a GCC
6899 builtin and then its argument prototype would still apply. */
6900 #ifdef __cplusplus
6901 extern "C"
6902 #endif
6903 char _oss_ioctl ();
6904 int
6905 main ()
6906 {
6907 return _oss_ioctl ();
6908 ;
6909 return 0;
6910 }
6911 _ACEOF
6912 if ac_fn_c_try_link "$LINENO"; then :
6913 ac_cv_lib_ossaudio__oss_ioctl=yes
6914 else
6915 ac_cv_lib_ossaudio__oss_ioctl=no
6916 fi
6917 rm -f core conftest.err conftest.$ac_objext \
6918 conftest$ac_exeext conftest.$ac_ext
6919 LIBS=$ac_check_lib_save_LIBS
6920 fi
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6922 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6923 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6924 LIBSOUND=-lossaudio
6925 else
6926 LIBSOUND=
6927 fi
6928
6929
6930
6931 ALSA_REQUIRED=1.0.0
6932 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6933
6934 succeeded=no
6935
6936 # Extract the first word of "pkg-config", so it can be a program name with args.
6937 set dummy pkg-config; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 case $PKG_CONFIG in
6944 [\\/]* | ?:[\\/]*)
6945 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6946 ;;
6947 *)
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6964 ;;
6965 esac
6966 fi
6967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6968 if test -n "$PKG_CONFIG"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6970 $as_echo "$PKG_CONFIG" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976
6977
6978 if test "$PKG_CONFIG" = "no" ; then
6979 HAVE_ALSA=no
6980 else
6981 PKG_CONFIG_MIN_VERSION=0.9.0
6982 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6984 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6985
6986 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6988 $as_echo "yes" >&6; }
6989 succeeded=yes
6990
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6992 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6993 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6995 $as_echo "$ALSA_CFLAGS" >&6; }
6996
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6998 $as_echo_n "checking ALSA_LIBS... " >&6; }
6999 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7001 $as_echo "$ALSA_LIBS" >&6; }
7002 else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 ALSA_CFLAGS=""
7006 ALSA_LIBS=""
7007 ## If we have a custom action on failure, don't print errors, but
7008 ## do set a variable so people can do so.
7009 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7010
7011 fi
7012
7013
7014
7015 else
7016 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7017 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7018 fi
7019 fi
7020
7021 if test $succeeded = yes; then
7022 HAVE_ALSA=yes
7023 else
7024 HAVE_ALSA=no
7025 fi
7026
7027 if test $HAVE_ALSA = yes; then
7028 SAVE_CFLAGS="$CFLAGS"
7029 SAVE_LDFLAGS="$LDFLAGS"
7030 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7031 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 #include <asoundlib.h>
7035 int
7036 main ()
7037 {
7038 snd_lib_error_set_handler (0);
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 if ac_fn_c_try_compile "$LINENO"; then :
7044 emacs_alsa_normal=yes
7045 else
7046 emacs_alsa_normal=no
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 if test "$emacs_alsa_normal" != yes; then
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #include <alsa/asoundlib.h>
7053 int
7054 main ()
7055 {
7056 snd_lib_error_set_handler (0);
7057 ;
7058 return 0;
7059 }
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062 emacs_alsa_subdir=yes
7063 else
7064 emacs_alsa_subdir=no
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 if test "$emacs_alsa_subdir" != yes; then
7068 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7069 fi
7070 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7071 fi
7072
7073 CFLAGS="$SAVE_CFLAGS"
7074 LDFLAGS="$SAVE_LDFLAGS"
7075 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7076 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7077
7078 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7079
7080 fi
7081
7082 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7083 case "$opsys" in
7084 gnu-linux|freebsd|netbsd)
7085
7086 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7087
7088 ;;
7089 esac
7090 fi
7091
7092
7093 fi
7094
7095 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7096 linux/version.h sys/systeminfo.h limits.h \
7097 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7098 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7099 sys/utsname.h pwd.h utmp.h dirent.h util.h
7100 do :
7101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7104 cat >>confdefs.h <<_ACEOF
7105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7106 _ACEOF
7107
7108 fi
7109
7110 done
7111
7112
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7114 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 #include <sys/personality.h>
7118 int
7119 main ()
7120 {
7121 personality (PER_LINUX32)
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 if ac_fn_c_try_compile "$LINENO"; then :
7127 emacs_cv_personality_linux32=yes
7128 else
7129 emacs_cv_personality_linux32=no
7130 fi
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7133 $as_echo "$emacs_cv_personality_linux32" >&6; }
7134
7135 if test $emacs_cv_personality_linux32 = yes; then
7136
7137 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7138
7139 fi
7140
7141 for ac_header in term.h
7142 do :
7143 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7144 if test "x$ac_cv_header_term_h" = xyes; then :
7145 cat >>confdefs.h <<_ACEOF
7146 #define HAVE_TERM_H 1
7147 _ACEOF
7148
7149 fi
7150
7151 done
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7154 $as_echo_n "checking for ANSI C header files... " >&6; }
7155 if ${ac_cv_header_stdc+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 #include <stdlib.h>
7161 #include <stdarg.h>
7162 #include <string.h>
7163 #include <float.h>
7164
7165 int
7166 main ()
7167 {
7168
7169 ;
7170 return 0;
7171 }
7172 _ACEOF
7173 if ac_fn_c_try_compile "$LINENO"; then :
7174 ac_cv_header_stdc=yes
7175 else
7176 ac_cv_header_stdc=no
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179
7180 if test $ac_cv_header_stdc = yes; then
7181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 #include <string.h>
7185
7186 _ACEOF
7187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7188 $EGREP "memchr" >/dev/null 2>&1; then :
7189
7190 else
7191 ac_cv_header_stdc=no
7192 fi
7193 rm -f conftest*
7194
7195 fi
7196
7197 if test $ac_cv_header_stdc = yes; then
7198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 #include <stdlib.h>
7202
7203 _ACEOF
7204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7205 $EGREP "free" >/dev/null 2>&1; then :
7206
7207 else
7208 ac_cv_header_stdc=no
7209 fi
7210 rm -f conftest*
7211
7212 fi
7213
7214 if test $ac_cv_header_stdc = yes; then
7215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7216 if test "$cross_compiling" = yes; then :
7217 :
7218 else
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <ctype.h>
7222 #include <stdlib.h>
7223 #if ((' ' & 0x0FF) == 0x020)
7224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7226 #else
7227 # define ISLOWER(c) \
7228 (('a' <= (c) && (c) <= 'i') \
7229 || ('j' <= (c) && (c) <= 'r') \
7230 || ('s' <= (c) && (c) <= 'z'))
7231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7232 #endif
7233
7234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7235 int
7236 main ()
7237 {
7238 int i;
7239 for (i = 0; i < 256; i++)
7240 if (XOR (islower (i), ISLOWER (i))
7241 || toupper (i) != TOUPPER (i))
7242 return 2;
7243 return 0;
7244 }
7245 _ACEOF
7246 if ac_fn_c_try_run "$LINENO"; then :
7247
7248 else
7249 ac_cv_header_stdc=no
7250 fi
7251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7252 conftest.$ac_objext conftest.beam conftest.$ac_ext
7253 fi
7254
7255 fi
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7258 $as_echo "$ac_cv_header_stdc" >&6; }
7259 if test $ac_cv_header_stdc = yes; then
7260
7261 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7262
7263 fi
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7266 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7267 if ${ac_cv_header_time+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #include <sys/types.h>
7273 #include <sys/time.h>
7274 #include <time.h>
7275
7276 int
7277 main ()
7278 {
7279 if ((struct tm *) 0)
7280 return 0;
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 ac_cv_header_time=yes
7287 else
7288 ac_cv_header_time=no
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7293 $as_echo "$ac_cv_header_time" >&6; }
7294 if test $ac_cv_header_time = yes; then
7295
7296 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7297
7298 fi
7299
7300 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7301 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7302 ac_have_decl=1
7303 else
7304 ac_have_decl=0
7305 fi
7306
7307 cat >>confdefs.h <<_ACEOF
7308 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7309 _ACEOF
7310
7311 if test $ac_cv_have_decl_sys_siglist != yes; then
7312 # For Tru64, at least:
7313 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7314 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7315 ac_have_decl=1
7316 else
7317 ac_have_decl=0
7318 fi
7319
7320 cat >>confdefs.h <<_ACEOF
7321 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7322 _ACEOF
7323
7324 if test $ac_cv_have_decl___sys_siglist = yes; then
7325
7326 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7327
7328 fi
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7331 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7332 if ${ac_cv_header_sys_wait_h+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 #include <sys/types.h>
7338 #include <sys/wait.h>
7339 #ifndef WEXITSTATUS
7340 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7341 #endif
7342 #ifndef WIFEXITED
7343 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7344 #endif
7345
7346 int
7347 main ()
7348 {
7349 int s;
7350 wait (&s);
7351 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7352 ;
7353 return 0;
7354 }
7355 _ACEOF
7356 if ac_fn_c_try_compile "$LINENO"; then :
7357 ac_cv_header_sys_wait_h=yes
7358 else
7359 ac_cv_header_sys_wait_h=no
7360 fi
7361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7364 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7365 if test $ac_cv_header_sys_wait_h = yes; then
7366
7367 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7368
7369 fi
7370
7371
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7373 $as_echo_n "checking for struct utimbuf... " >&6; }
7374 if ${emacs_cv_struct_utimbuf+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #ifdef TIME_WITH_SYS_TIME
7380 #include <sys/time.h>
7381 #include <time.h>
7382 #else
7383 #ifdef HAVE_SYS_TIME_H
7384 #include <sys/time.h>
7385 #else
7386 #include <time.h>
7387 #endif
7388 #endif
7389 #ifdef HAVE_UTIME_H
7390 #include <utime.h>
7391 #endif
7392 int
7393 main ()
7394 {
7395 static struct utimbuf x; x.actime = x.modtime;
7396 ;
7397 return 0;
7398 }
7399 _ACEOF
7400 if ac_fn_c_try_compile "$LINENO"; then :
7401 emacs_cv_struct_utimbuf=yes
7402 else
7403 emacs_cv_struct_utimbuf=no
7404 fi
7405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406 fi
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7408 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7409 if test $emacs_cv_struct_utimbuf = yes; then
7410
7411 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7412
7413 fi
7414
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7416 $as_echo_n "checking return type of signal handlers... " >&6; }
7417 if ${ac_cv_type_signal+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <sys/types.h>
7423 #include <signal.h>
7424
7425 int
7426 main ()
7427 {
7428 return *(signal (0, 0)) (0) == 1;
7429 ;
7430 return 0;
7431 }
7432 _ACEOF
7433 if ac_fn_c_try_compile "$LINENO"; then :
7434 ac_cv_type_signal=int
7435 else
7436 ac_cv_type_signal=void
7437 fi
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7441 $as_echo "$ac_cv_type_signal" >&6; }
7442
7443 cat >>confdefs.h <<_ACEOF
7444 #define RETSIGTYPE $ac_cv_type_signal
7445 _ACEOF
7446
7447
7448
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7450 $as_echo_n "checking for speed_t... " >&6; }
7451 if ${emacs_cv_speed_t+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7456 #include <termios.h>
7457 int
7458 main ()
7459 {
7460 speed_t x = 1;
7461 ;
7462 return 0;
7463 }
7464 _ACEOF
7465 if ac_fn_c_try_compile "$LINENO"; then :
7466 emacs_cv_speed_t=yes
7467 else
7468 emacs_cv_speed_t=no
7469 fi
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 fi
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7473 $as_echo "$emacs_cv_speed_t" >&6; }
7474 if test $emacs_cv_speed_t = yes; then
7475
7476 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7477
7478 fi
7479
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7481 $as_echo_n "checking for struct timeval... " >&6; }
7482 if ${emacs_cv_struct_timeval+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #ifdef TIME_WITH_SYS_TIME
7488 #include <sys/time.h>
7489 #include <time.h>
7490 #else
7491 #ifdef HAVE_SYS_TIME_H
7492 #include <sys/time.h>
7493 #else
7494 #include <time.h>
7495 #endif
7496 #endif
7497 int
7498 main ()
7499 {
7500 static struct timeval x; x.tv_sec = x.tv_usec;
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 emacs_cv_struct_timeval=yes
7507 else
7508 emacs_cv_struct_timeval=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7513 $as_echo "$emacs_cv_struct_timeval" >&6; }
7514 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7515 if test $emacs_cv_struct_timeval = yes; then
7516
7517 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7518
7519 fi
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7522 $as_echo_n "checking for struct exception... " >&6; }
7523 if ${emacs_cv_struct_exception+:} false; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 #include <math.h>
7529 int
7530 main ()
7531 {
7532 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538 emacs_cv_struct_exception=yes
7539 else
7540 emacs_cv_struct_exception=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 fi
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7545 $as_echo "$emacs_cv_struct_exception" >&6; }
7546 HAVE_EXCEPTION=$emacs_cv_struct_exception
7547 if test $emacs_cv_struct_exception != yes; then
7548
7549 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7550
7551 fi
7552
7553 for ac_header in sys/socket.h
7554 do :
7555 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7556 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7557 cat >>confdefs.h <<_ACEOF
7558 #define HAVE_SYS_SOCKET_H 1
7559 _ACEOF
7560
7561 fi
7562
7563 done
7564
7565 for ac_header in net/if.h
7566 do :
7567 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7568 #if HAVE_SYS_SOCKET_H
7569 #include <sys/socket.h>
7570 #endif
7571 "
7572 if test "x$ac_cv_header_net_if_h" = xyes; then :
7573 cat >>confdefs.h <<_ACEOF
7574 #define HAVE_NET_IF_H 1
7575 _ACEOF
7576
7577 fi
7578
7579 done
7580
7581
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7583 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7584 if ${ac_cv_struct_tm+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7589 #include <sys/types.h>
7590 #include <time.h>
7591
7592 int
7593 main ()
7594 {
7595 struct tm tm;
7596 int *p = &tm.tm_sec;
7597 return !p;
7598 ;
7599 return 0;
7600 }
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 ac_cv_struct_tm=time.h
7604 else
7605 ac_cv_struct_tm=sys/time.h
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7610 $as_echo "$ac_cv_struct_tm" >&6; }
7611 if test $ac_cv_struct_tm = sys/time.h; then
7612
7613 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7614
7615 fi
7616
7617 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7618 #include <$ac_cv_struct_tm>
7619
7620 "
7621 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7622
7623 cat >>confdefs.h <<_ACEOF
7624 #define HAVE_STRUCT_TM_TM_ZONE 1
7625 _ACEOF
7626
7627
7628 fi
7629
7630 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7631
7632 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7633
7634 else
7635 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7636 "
7637 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7638 ac_have_decl=1
7639 else
7640 ac_have_decl=0
7641 fi
7642
7643 cat >>confdefs.h <<_ACEOF
7644 #define HAVE_DECL_TZNAME $ac_have_decl
7645 _ACEOF
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7648 $as_echo_n "checking for tzname... " >&6; }
7649 if ${ac_cv_var_tzname+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7654 #include <time.h>
7655 #if !HAVE_DECL_TZNAME
7656 extern char *tzname[];
7657 #endif
7658
7659 int
7660 main ()
7661 {
7662 return tzname[0][0];
7663 ;
7664 return 0;
7665 }
7666 _ACEOF
7667 if ac_fn_c_try_link "$LINENO"; then :
7668 ac_cv_var_tzname=yes
7669 else
7670 ac_cv_var_tzname=no
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext \
7673 conftest$ac_exeext conftest.$ac_ext
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7676 $as_echo "$ac_cv_var_tzname" >&6; }
7677 if test $ac_cv_var_tzname = yes; then
7678
7679 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7680
7681 fi
7682 fi
7683
7684 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7685 "
7686 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7687
7688 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7689
7690 fi
7691
7692 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7693 #if HAVE_SYS_SOCKET_H
7694 #include <sys/socket.h>
7695 #endif
7696 #if HAVE_NET_IF_H
7697 #include <net/if.h>
7698 #endif
7699 "
7700 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
7701
7702 cat >>confdefs.h <<_ACEOF
7703 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7704 _ACEOF
7705
7706
7707 fi
7708 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7709 #if HAVE_SYS_SOCKET_H
7710 #include <sys/socket.h>
7711 #endif
7712 #if HAVE_NET_IF_H
7713 #include <net/if.h>
7714 #endif
7715 "
7716 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
7717
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7720 _ACEOF
7721
7722
7723 fi
7724 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7725 #if HAVE_SYS_SOCKET_H
7726 #include <sys/socket.h>
7727 #endif
7728 #if HAVE_NET_IF_H
7729 #include <net/if.h>
7730 #endif
7731 "
7732 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
7733
7734 cat >>confdefs.h <<_ACEOF
7735 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7736 _ACEOF
7737
7738
7739 fi
7740 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7741 #if HAVE_SYS_SOCKET_H
7742 #include <sys/socket.h>
7743 #endif
7744 #if HAVE_NET_IF_H
7745 #include <net/if.h>
7746 #endif
7747 "
7748 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
7749
7750 cat >>confdefs.h <<_ACEOF
7751 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7752 _ACEOF
7753
7754
7755 fi
7756 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7757 #if HAVE_SYS_SOCKET_H
7758 #include <sys/socket.h>
7759 #endif
7760 #if HAVE_NET_IF_H
7761 #include <net/if.h>
7762 #endif
7763 "
7764 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
7765
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7768 _ACEOF
7769
7770
7771 fi
7772
7773
7774
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7776 $as_echo_n "checking for function prototypes... " >&6; }
7777 if test "$ac_cv_prog_cc_c89" != no; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7779 $as_echo "yes" >&6; }
7780
7781 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7782
7783
7784 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7785
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7792 $as_echo_n "checking for working volatile... " >&6; }
7793 if ${ac_cv_c_volatile+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798
7799 int
7800 main ()
7801 {
7802
7803 volatile int x;
7804 int * volatile y = (int *) 0;
7805 return !x && !y;
7806 ;
7807 return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811 ac_cv_c_volatile=yes
7812 else
7813 ac_cv_c_volatile=no
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7818 $as_echo "$ac_cv_c_volatile" >&6; }
7819 if test $ac_cv_c_volatile = no; then
7820
7821 $as_echo "#define volatile /**/" >>confdefs.h
7822
7823 fi
7824
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7826 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7827 if ${ac_cv_c_const+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7832
7833 int
7834 main ()
7835 {
7836 /* FIXME: Include the comments suggested by Paul. */
7837 #ifndef __cplusplus
7838 /* Ultrix mips cc rejects this. */
7839 typedef int charset[2];
7840 const charset cs;
7841 /* SunOS 4.1.1 cc rejects this. */
7842 char const *const *pcpcc;
7843 char **ppc;
7844 /* NEC SVR4.0.2 mips cc rejects this. */
7845 struct point {int x, y;};
7846 static struct point const zero = {0,0};
7847 /* AIX XL C 1.02.0.0 rejects this.
7848 It does not let you subtract one const X* pointer from another in
7849 an arm of an if-expression whose if-part is not a constant
7850 expression */
7851 const char *g = "string";
7852 pcpcc = &g + (g ? g-g : 0);
7853 /* HPUX 7.0 cc rejects these. */
7854 ++pcpcc;
7855 ppc = (char**) pcpcc;
7856 pcpcc = (char const *const *) ppc;
7857 { /* SCO 3.2v4 cc rejects this. */
7858 char *t;
7859 char const *s = 0 ? (char *) 0 : (char const *) 0;
7860
7861 *t++ = 0;
7862 if (s) return 0;
7863 }
7864 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7865 int x[] = {25, 17};
7866 const int *foo = &x[0];
7867 ++foo;
7868 }
7869 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7870 typedef const int *iptr;
7871 iptr p = 0;
7872 ++p;
7873 }
7874 { /* AIX XL C 1.02.0.0 rejects this saying
7875 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7876 struct s { int j; const int *ap[3]; };
7877 struct s *b; b->j = 5;
7878 }
7879 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7880 const int foo = 10;
7881 if (!foo) return 0;
7882 }
7883 return !cs[0] && !zero.x;
7884 #endif
7885
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891 ac_cv_c_const=yes
7892 else
7893 ac_cv_c_const=no
7894 fi
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 fi
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7898 $as_echo "$ac_cv_c_const" >&6; }
7899 if test $ac_cv_c_const = no; then
7900
7901 $as_echo "#define const /**/" >>confdefs.h
7902
7903 fi
7904
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7906 $as_echo_n "checking for void * support... " >&6; }
7907 if ${emacs_cv_void_star+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912
7913 int
7914 main ()
7915 {
7916 void * foo;
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 if ac_fn_c_try_compile "$LINENO"; then :
7922 emacs_cv_void_star=yes
7923 else
7924 emacs_cv_void_star=no
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 fi
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7929 $as_echo "$emacs_cv_void_star" >&6; }
7930 if test $emacs_cv_void_star = yes; then
7931 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7932
7933 else
7934 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7935
7936 fi
7937
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7939 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7940 if ${ac_cv_c_bigendian+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 ac_cv_c_bigendian=unknown
7944 # See if we're dealing with a universal compiler.
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #ifndef __APPLE_CC__
7948 not a universal capable compiler
7949 #endif
7950 typedef int dummy;
7951
7952 _ACEOF
7953 if ac_fn_c_try_compile "$LINENO"; then :
7954
7955 # Check for potential -arch flags. It is not universal unless
7956 # there are at least two -arch flags with different values.
7957 ac_arch=
7958 ac_prev=
7959 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7960 if test -n "$ac_prev"; then
7961 case $ac_word in
7962 i?86 | x86_64 | ppc | ppc64)
7963 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7964 ac_arch=$ac_word
7965 else
7966 ac_cv_c_bigendian=universal
7967 break
7968 fi
7969 ;;
7970 esac
7971 ac_prev=
7972 elif test "x$ac_word" = "x-arch"; then
7973 ac_prev=arch
7974 fi
7975 done
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 if test $ac_cv_c_bigendian = unknown; then
7979 # See if sys/param.h defines the BYTE_ORDER macro.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #include <sys/types.h>
7983 #include <sys/param.h>
7984
7985 int
7986 main ()
7987 {
7988 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7989 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7990 && LITTLE_ENDIAN)
7991 bogus endian macros
7992 #endif
7993
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 # It does; now see whether it defined to BIG_ENDIAN or not.
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #include <sys/types.h>
8003 #include <sys/param.h>
8004
8005 int
8006 main ()
8007 {
8008 #if BYTE_ORDER != BIG_ENDIAN
8009 not big endian
8010 #endif
8011
8012 ;
8013 return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017 ac_cv_c_bigendian=yes
8018 else
8019 ac_cv_c_bigendian=no
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 fi
8025 if test $ac_cv_c_bigendian = unknown; then
8026 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 #include <limits.h>
8030
8031 int
8032 main ()
8033 {
8034 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8035 bogus endian macros
8036 #endif
8037
8038 ;
8039 return 0;
8040 }
8041 _ACEOF
8042 if ac_fn_c_try_compile "$LINENO"; then :
8043 # It does; now see whether it defined to _BIG_ENDIAN or not.
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8046 #include <limits.h>
8047
8048 int
8049 main ()
8050 {
8051 #ifndef _BIG_ENDIAN
8052 not big endian
8053 #endif
8054
8055 ;
8056 return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060 ac_cv_c_bigendian=yes
8061 else
8062 ac_cv_c_bigendian=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067 fi
8068 if test $ac_cv_c_bigendian = unknown; then
8069 # Compile a test program.
8070 if test "$cross_compiling" = yes; then :
8071 # Try to guess by grepping values from an object file.
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 short int ascii_mm[] =
8075 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8076 short int ascii_ii[] =
8077 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8078 int use_ascii (int i) {
8079 return ascii_mm[i] + ascii_ii[i];
8080 }
8081 short int ebcdic_ii[] =
8082 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8083 short int ebcdic_mm[] =
8084 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8085 int use_ebcdic (int i) {
8086 return ebcdic_mm[i] + ebcdic_ii[i];
8087 }
8088 extern int foo;
8089
8090 int
8091 main ()
8092 {
8093 return use_ascii (foo) == use_ebcdic (foo);
8094 ;
8095 return 0;
8096 }
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8100 ac_cv_c_bigendian=yes
8101 fi
8102 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8103 if test "$ac_cv_c_bigendian" = unknown; then
8104 ac_cv_c_bigendian=no
8105 else
8106 # finding both strings is unlikely to happen, but who knows?
8107 ac_cv_c_bigendian=unknown
8108 fi
8109 fi
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 $ac_includes_default
8116 int
8117 main ()
8118 {
8119
8120 /* Are we little or big endian? From Harbison&Steele. */
8121 union
8122 {
8123 long int l;
8124 char c[sizeof (long int)];
8125 } u;
8126 u.l = 1;
8127 return u.c[sizeof (long int) - 1] == 1;
8128
8129 ;
8130 return 0;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_run "$LINENO"; then :
8134 ac_cv_c_bigendian=no
8135 else
8136 ac_cv_c_bigendian=yes
8137 fi
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8139 conftest.$ac_objext conftest.beam conftest.$ac_ext
8140 fi
8141
8142 fi
8143 fi
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8145 $as_echo "$ac_cv_c_bigendian" >&6; }
8146 case $ac_cv_c_bigendian in #(
8147 yes)
8148 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8149 ;; #(
8150 no)
8151 ;; #(
8152 universal)
8153
8154 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8155
8156 ;; #(
8157 *)
8158 as_fn_error $? "unknown endianness
8159 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8160 esac
8161
8162
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8164 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8165 set x ${MAKE-make}
8166 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8167 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 cat >conftest.make <<\_ACEOF
8171 SHELL = /bin/sh
8172 all:
8173 @echo '@@@%%%=$(MAKE)=@@@%%%'
8174 _ACEOF
8175 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8176 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8177 *@@@%%%=?*=@@@%%%*)
8178 eval ac_cv_prog_make_${ac_make}_set=yes;;
8179 *)
8180 eval ac_cv_prog_make_${ac_make}_set=no;;
8181 esac
8182 rm -f conftest.make
8183 fi
8184 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8186 $as_echo "yes" >&6; }
8187 SET_MAKE=
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 SET_MAKE="MAKE=${MAKE-make}"
8192 fi
8193
8194
8195 DEPFLAGS=
8196 MKDEPDIR=":"
8197 deps_frag=deps.mk
8198 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8200 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8201 HAVE_GNU_MAKE=no
8202 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8203 if test "x$testval" != x; then
8204 HAVE_GNU_MAKE=yes
8205 else
8206 ac_enable_autodepend=no
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8209 $as_echo "$HAVE_GNU_MAKE" >&6; }
8210 if test $HAVE_GNU_MAKE = yes; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8212 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8213 SAVE_CFLAGS="$CFLAGS"
8214 CFLAGS="$CFLAGS -MMD -MF deps.d"
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217
8218 int
8219 main ()
8220 {
8221
8222 ;
8223 return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227
8228 else
8229 ac_enable_autodepend=no
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 CFLAGS="$SAVE_CFLAGS"
8233 test -f deps.d || ac_enable_autodepend=no
8234 rm -rf deps.d
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8236 $as_echo "$ac_enable_autodepend" >&6; }
8237 fi
8238 if test $ac_enable_autodepend = yes; then
8239 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8240 ## In parallel builds, another make might create depdir between
8241 ## the first test and mkdir, so stick another test on the end.
8242 ## Or use mkinstalldirs? mkdir -p is not portable.
8243 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8244 deps_frag=autodeps.mk
8245 fi
8246 fi
8247 deps_frag=$srcdir/src/$deps_frag
8248
8249
8250
8251
8252
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8254 $as_echo_n "checking for long file names... " >&6; }
8255 if ${ac_cv_sys_long_file_names+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 ac_cv_sys_long_file_names=yes
8259 # Test for long file names in all the places we know might matter:
8260 # . the current directory, where building will happen
8261 # $prefix/lib where we will be installing things
8262 # $exec_prefix/lib likewise
8263 # $TMPDIR if set, where it might want to write temporary files
8264 # /tmp where it might want to write temporary files
8265 # /var/tmp likewise
8266 # /usr/tmp likewise
8267 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8268 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8269 # in the usual case where exec_prefix is '${prefix}'.
8270 case $ac_dir in #(
8271 . | /* | ?:[\\/]*) ;; #(
8272 *) continue;;
8273 esac
8274 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8275 ac_xdir=$ac_dir/cf$$
8276 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8277 ac_tf1=$ac_xdir/conftest9012345
8278 ac_tf2=$ac_xdir/conftest9012346
8279 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8280 ac_cv_sys_long_file_names=no
8281 rm -f -r "$ac_xdir" 2>/dev/null
8282 test $ac_cv_sys_long_file_names = no && break
8283 done
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8286 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8287 if test $ac_cv_sys_long_file_names = yes; then
8288
8289 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8290
8291 fi
8292
8293
8294 #### Choose a window system.
8295
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8297 $as_echo_n "checking for X... " >&6; }
8298
8299
8300 # Check whether --with-x was given.
8301 if test "${with_x+set}" = set; then :
8302 withval=$with_x;
8303 fi
8304
8305 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8306 if test "x$with_x" = xno; then
8307 # The user explicitly disabled X.
8308 have_x=disabled
8309 else
8310 case $x_includes,$x_libraries in #(
8311 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8312 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 # One or both of the vars are not set, and there is no cached value.
8316 ac_x_includes=no ac_x_libraries=no
8317 rm -f -r conftest.dir
8318 if mkdir conftest.dir; then
8319 cd conftest.dir
8320 cat >Imakefile <<'_ACEOF'
8321 incroot:
8322 @echo incroot='${INCROOT}'
8323 usrlibdir:
8324 @echo usrlibdir='${USRLIBDIR}'
8325 libdir:
8326 @echo libdir='${LIBDIR}'
8327 _ACEOF
8328 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8329 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8330 for ac_var in incroot usrlibdir libdir; do
8331 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8332 done
8333 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8334 for ac_extension in a so sl dylib la dll; do
8335 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8336 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8337 ac_im_usrlibdir=$ac_im_libdir; break
8338 fi
8339 done
8340 # Screen out bogus values from the imake configuration. They are
8341 # bogus both because they are the default anyway, and because
8342 # using them would break gcc on systems where it needs fixed includes.
8343 case $ac_im_incroot in
8344 /usr/include) ac_x_includes= ;;
8345 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8346 esac
8347 case $ac_im_usrlibdir in
8348 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8349 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8350 esac
8351 fi
8352 cd ..
8353 rm -f -r conftest.dir
8354 fi
8355
8356 # Standard set of common directories for X headers.
8357 # Check X11 before X11Rn because it is often a symlink to the current release.
8358 ac_x_header_dirs='
8359 /usr/X11/include
8360 /usr/X11R7/include
8361 /usr/X11R6/include
8362 /usr/X11R5/include
8363 /usr/X11R4/include
8364
8365 /usr/include/X11
8366 /usr/include/X11R7
8367 /usr/include/X11R6
8368 /usr/include/X11R5
8369 /usr/include/X11R4
8370
8371 /usr/local/X11/include
8372 /usr/local/X11R7/include
8373 /usr/local/X11R6/include
8374 /usr/local/X11R5/include
8375 /usr/local/X11R4/include
8376
8377 /usr/local/include/X11
8378 /usr/local/include/X11R7
8379 /usr/local/include/X11R6
8380 /usr/local/include/X11R5
8381 /usr/local/include/X11R4
8382
8383 /usr/X386/include
8384 /usr/x386/include
8385 /usr/XFree86/include/X11
8386
8387 /usr/include
8388 /usr/local/include
8389 /usr/unsupported/include
8390 /usr/athena/include
8391 /usr/local/x11r5/include
8392 /usr/lpp/Xamples/include
8393
8394 /usr/openwin/include
8395 /usr/openwin/share/include'
8396
8397 if test "$ac_x_includes" = no; then
8398 # Guess where to find include files, by looking for Xlib.h.
8399 # First, try using that file with no special directory specified.
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 #include <X11/Xlib.h>
8403 _ACEOF
8404 if ac_fn_c_try_cpp "$LINENO"; then :
8405 # We can compile using X headers with no special include directory.
8406 ac_x_includes=
8407 else
8408 for ac_dir in $ac_x_header_dirs; do
8409 if test -r "$ac_dir/X11/Xlib.h"; then
8410 ac_x_includes=$ac_dir
8411 break
8412 fi
8413 done
8414 fi
8415 rm -f conftest.err conftest.i conftest.$ac_ext
8416 fi # $ac_x_includes = no
8417
8418 if test "$ac_x_libraries" = no; then
8419 # Check for the libraries.
8420 # See if we find them without any special options.
8421 # Don't add to $LIBS permanently.
8422 ac_save_LIBS=$LIBS
8423 LIBS="-lX11 $LIBS"
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8426 #include <X11/Xlib.h>
8427 int
8428 main ()
8429 {
8430 XrmInitialize ()
8431 ;
8432 return 0;
8433 }
8434 _ACEOF
8435 if ac_fn_c_try_link "$LINENO"; then :
8436 LIBS=$ac_save_LIBS
8437 # We can link X programs with no special library path.
8438 ac_x_libraries=
8439 else
8440 LIBS=$ac_save_LIBS
8441 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8442 do
8443 # Don't even attempt the hair of trying to link an X program!
8444 for ac_extension in a so sl dylib la dll; do
8445 if test -r "$ac_dir/libX11.$ac_extension"; then
8446 ac_x_libraries=$ac_dir
8447 break 2
8448 fi
8449 done
8450 done
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 fi # $ac_x_libraries = no
8455
8456 case $ac_x_includes,$ac_x_libraries in #(
8457 no,* | *,no | *\'*)
8458 # Didn't find X, or a directory has "'" in its name.
8459 ac_cv_have_x="have_x=no";; #(
8460 *)
8461 # Record where we found X for the cache.
8462 ac_cv_have_x="have_x=yes\
8463 ac_x_includes='$ac_x_includes'\
8464 ac_x_libraries='$ac_x_libraries'"
8465 esac
8466 fi
8467 ;; #(
8468 *) have_x=yes;;
8469 esac
8470 eval "$ac_cv_have_x"
8471 fi # $with_x != no
8472
8473 if test "$have_x" != yes; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8475 $as_echo "$have_x" >&6; }
8476 no_x=yes
8477 else
8478 # If each of the values was on the command line, it overrides each guess.
8479 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8480 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8481 # Update the cache value to reflect the command line values.
8482 ac_cv_have_x="have_x=yes\
8483 ac_x_includes='$x_includes'\
8484 ac_x_libraries='$x_libraries'"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8486 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8487 fi
8488
8489 if test "$no_x" = yes; then
8490 window_system=none
8491 else
8492 window_system=x11
8493 fi
8494
8495 ## Workaround for bug in autoconf <= 2.62.
8496 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8497 ## No need to do anything special for these standard directories.
8498 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8499
8500 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8501
8502 fi
8503
8504 LD_SWITCH_X_SITE_AUX=
8505 LD_SWITCH_X_SITE_AUX_RPATH=
8506 if test "${x_libraries}" != NONE; then
8507 if test -n "${x_libraries}"; then
8508 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8509 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8510 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8511 fi
8512 x_default_search_path=""
8513 x_search_path=${x_libraries}
8514 if test -z "${x_search_path}"; then
8515 x_search_path=/usr/lib
8516 fi
8517 for x_library in `echo ${x_search_path}: | \
8518 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8519 x_search_path="\
8520 ${x_library}/X11/%L/%T/%N%C%S:\
8521 ${x_library}/X11/%l/%T/%N%C%S:\
8522 ${x_library}/X11/%T/%N%C%S:\
8523 ${x_library}/X11/%L/%T/%N%S:\
8524 ${x_library}/X11/%l/%T/%N%S:\
8525 ${x_library}/X11/%T/%N%S"
8526 if test x"${x_default_search_path}" = x; then
8527 x_default_search_path=${x_search_path}
8528 else
8529 x_default_search_path="${x_search_path}:${x_default_search_path}"
8530 fi
8531 done
8532 fi
8533
8534
8535
8536 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8537 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8538 fi
8539
8540 if test x"${x_includes}" = x; then
8541 bitmapdir=/usr/include/X11/bitmaps
8542 else
8543 # accumulate include directories that have X11 bitmap subdirectories
8544 bmd_acc="dummyval"
8545 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8546 if test -d "${bmd}/X11/bitmaps"; then
8547 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8548 fi
8549 if test -d "${bmd}/bitmaps"; then
8550 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8551 fi
8552 done
8553 if test ${bmd_acc} != "dummyval"; then
8554 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8555 fi
8556 fi
8557
8558 HAVE_NS=no
8559 NS_IMPL_COCOA=no
8560 NS_IMPL_GNUSTEP=no
8561 tmp_CPPFLAGS="$CPPFLAGS"
8562 tmp_CFLAGS="$CFLAGS"
8563 CPPFLAGS="$CPPFLAGS -x objective-c"
8564 CFLAGS="$CFLAGS -x objective-c"
8565 TEMACS_LDFLAGS2="\${LDFLAGS}"
8566 if test "${with_ns}" != no; then
8567 if test "${opsys}" = darwin; then
8568 NS_IMPL_COCOA=yes
8569 ns_appdir=`pwd`/nextstep/Emacs.app
8570 ns_appbindir=${ns_appdir}/Contents/MacOS/
8571 ns_appresdir=${ns_appdir}/Contents/Resources
8572 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8573 elif test -f $GNUSTEP_CONFIG_FILE; then
8574 NS_IMPL_GNUSTEP=yes
8575 ns_appdir=`pwd`/nextstep/Emacs.app
8576 ns_appbindir=${ns_appdir}/
8577 ns_appresdir=${ns_appdir}/Resources
8578 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8579 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8580 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8581 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8582 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8583 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8584 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8585 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8586 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8587 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8588 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8589 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8590 LIB_STANDARD=
8591 START_FILES=
8592 TEMACS_LDFLAGS2=
8593 fi
8594 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8595 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8596 HAVE_NS=yes
8597 else
8598 as_fn_error $? "\`--with-ns' was specified, but the include
8599 files are missing or cannot be compiled." "$LINENO" 5
8600 fi
8601
8602
8603 NS_HAVE_NSINTEGER=yes
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #include <Foundation/NSObjCRuntime.h>
8607 int
8608 main ()
8609 {
8610 NSInteger i;
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_compile "$LINENO"; then :
8616 ns_have_nsinteger=yes
8617 else
8618 ns_have_nsinteger=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 if test $ns_have_nsinteger = no; then
8622 NS_HAVE_NSINTEGER=no
8623 fi
8624 fi
8625
8626
8627 ns_frag=/dev/null
8628 NS_OBJ=
8629 NS_SUPPORT=
8630 if test "${HAVE_NS}" = yes; then
8631 window_system=nextstep
8632 with_xft=no
8633 # set up packaging dirs
8634 exec_prefix=${ns_appbindir}
8635 libexecdir=${ns_appbindir}/libexec
8636 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8637 prefix=${ns_appresdir}
8638 fi
8639 ns_frag=$srcdir/src/ns.mk
8640 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8641 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8642 fi
8643 CFLAGS="$tmp_CFLAGS"
8644 CPPFLAGS="$tmp_CPPFLAGS"
8645
8646
8647
8648
8649
8650 case "${window_system}" in
8651 x11 )
8652 HAVE_X_WINDOWS=yes
8653 HAVE_X11=yes
8654 case "${with_x_toolkit}" in
8655 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8656 motif ) USE_X_TOOLKIT=MOTIF ;;
8657 gtk ) with_gtk=yes
8658 USE_X_TOOLKIT=none ;;
8659 gtk3 ) with_gtk3=yes
8660 USE_X_TOOLKIT=none ;;
8661 no ) USE_X_TOOLKIT=none ;;
8662 * ) USE_X_TOOLKIT=maybe ;;
8663 esac
8664 ;;
8665 nextstep | none )
8666 HAVE_X_WINDOWS=no
8667 HAVE_X11=no
8668 USE_X_TOOLKIT=none
8669 ;;
8670 esac
8671
8672 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8673 # Extract the first word of "X", so it can be a program name with args.
8674 set dummy X; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 if test -n "$HAVE_XSERVER"; then
8681 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690 ac_cv_prog_HAVE_XSERVER="true"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694 done
8695 done
8696 IFS=$as_save_IFS
8697
8698 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8699 fi
8700 fi
8701 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8702 if test -n "$HAVE_XSERVER"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8704 $as_echo "$HAVE_XSERVER" >&6; }
8705 else
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8708 fi
8709
8710
8711 if test "$HAVE_XSERVER" = true ||
8712 test -n "$DISPLAY" ||
8713 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8714 as_fn_error $? "You seem to be running X, but no X development libraries
8715 were found. You should install the relevant development files for X
8716 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8717 sure you have development files for image handling, i.e.
8718 tiff, gif, jpeg, png and xpm.
8719 If you are sure you want Emacs compiled without X window support, pass
8720 --without-x
8721 to configure." "$LINENO" 5
8722 fi
8723 fi
8724
8725 ### If we're using X11, we should use the X menu package.
8726 HAVE_MENUS=no
8727 case ${HAVE_X11} in
8728 yes ) HAVE_MENUS=yes ;;
8729 esac
8730
8731 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8732 # Assume not, until told otherwise.
8733 GNU_MALLOC=yes
8734 doug_lea_malloc=yes
8735 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8736 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
8737
8738 else
8739 doug_lea_malloc=no
8740 fi
8741
8742 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8743 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
8744
8745 else
8746 doug_lea_malloc=no
8747 fi
8748
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8750 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8751 if ${emacs_cv_var___after_morecore_hook+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756 extern void (* __after_morecore_hook)();
8757 int
8758 main ()
8759 {
8760 __after_morecore_hook = 0
8761 ;
8762 return 0;
8763 }
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"; then :
8766 emacs_cv_var___after_morecore_hook=yes
8767 else
8768 emacs_cv_var___after_morecore_hook=no
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8772 fi
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8774 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8775 if test $emacs_cv_var___after_morecore_hook = no; then
8776 doug_lea_malloc=no
8777 fi
8778
8779
8780 system_malloc=no
8781 case "$opsys" in
8782 ## darwin ld insists on the use of malloc routines in the System framework.
8783 darwin|sol2-10) system_malloc=yes ;;
8784 esac
8785
8786 if test "${system_malloc}" = "yes"; then
8787
8788 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8789
8790 GNU_MALLOC=no
8791 GNU_MALLOC_reason="
8792 (The GNU allocators don't work with this system configuration.)"
8793 GMALLOC_OBJ=
8794 VMLIMIT_OBJ=
8795 else
8796 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8797 VMLIMIT_OBJ=vm-limit.o
8798 fi
8799
8800
8801
8802 if test "$doug_lea_malloc" = "yes" ; then
8803 if test "$GNU_MALLOC" = yes ; then
8804 GNU_MALLOC_reason="
8805 (Using Doug Lea's new malloc from the GNU C Library.)"
8806 fi
8807
8808 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8809
8810
8811 ## Use mmap directly for allocating larger buffers.
8812 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8813 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8814 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8815 case "$opsys" in
8816 gnu*) REL_ALLOC=no ;;
8817 esac
8818 fi
8819
8820 if test x"${REL_ALLOC}" = x; then
8821 REL_ALLOC=${GNU_MALLOC}
8822 fi
8823
8824 use_mmap_for_buffers=no
8825 case "$opsys" in
8826 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8827 esac
8828
8829
8830
8831
8832 for ac_header in $ac_header_list
8833 do :
8834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8835 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8836 "
8837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8838 cat >>confdefs.h <<_ACEOF
8839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8840 _ACEOF
8841
8842 fi
8843
8844 done
8845
8846
8847
8848
8849
8850
8851
8852
8853 for ac_func in getpagesize
8854 do :
8855 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8856 if test "x$ac_cv_func_getpagesize" = xyes; then :
8857 cat >>confdefs.h <<_ACEOF
8858 #define HAVE_GETPAGESIZE 1
8859 _ACEOF
8860
8861 fi
8862 done
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8865 $as_echo_n "checking for working mmap... " >&6; }
8866 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 if test "$cross_compiling" = yes; then :
8870 ac_cv_func_mmap_fixed_mapped=no
8871 else
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 $ac_includes_default
8875 /* malloc might have been renamed as rpl_malloc. */
8876 #undef malloc
8877
8878 /* Thanks to Mike Haertel and Jim Avera for this test.
8879 Here is a matrix of mmap possibilities:
8880 mmap private not fixed
8881 mmap private fixed at somewhere currently unmapped
8882 mmap private fixed at somewhere already mapped
8883 mmap shared not fixed
8884 mmap shared fixed at somewhere currently unmapped
8885 mmap shared fixed at somewhere already mapped
8886 For private mappings, we should verify that changes cannot be read()
8887 back from the file, nor mmap's back from the file at a different
8888 address. (There have been systems where private was not correctly
8889 implemented like the infamous i386 svr4.0, and systems where the
8890 VM page cache was not coherent with the file system buffer cache
8891 like early versions of FreeBSD and possibly contemporary NetBSD.)
8892 For shared mappings, we should conversely verify that changes get
8893 propagated back to all the places they're supposed to be.
8894
8895 Grep wants private fixed already mapped.
8896 The main things grep needs to know about mmap are:
8897 * does it exist and is it safe to write into the mmap'd area
8898 * how to use it (BSD variants) */
8899
8900 #include <fcntl.h>
8901 #include <sys/mman.h>
8902
8903 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8904 char *malloc ();
8905 #endif
8906
8907 /* This mess was copied from the GNU getpagesize.h. */
8908 #ifndef HAVE_GETPAGESIZE
8909 # ifdef _SC_PAGESIZE
8910 # define getpagesize() sysconf(_SC_PAGESIZE)
8911 # else /* no _SC_PAGESIZE */
8912 # ifdef HAVE_SYS_PARAM_H
8913 # include <sys/param.h>
8914 # ifdef EXEC_PAGESIZE
8915 # define getpagesize() EXEC_PAGESIZE
8916 # else /* no EXEC_PAGESIZE */
8917 # ifdef NBPG
8918 # define getpagesize() NBPG * CLSIZE
8919 # ifndef CLSIZE
8920 # define CLSIZE 1
8921 # endif /* no CLSIZE */
8922 # else /* no NBPG */
8923 # ifdef NBPC
8924 # define getpagesize() NBPC
8925 # else /* no NBPC */
8926 # ifdef PAGESIZE
8927 # define getpagesize() PAGESIZE
8928 # endif /* PAGESIZE */
8929 # endif /* no NBPC */
8930 # endif /* no NBPG */
8931 # endif /* no EXEC_PAGESIZE */
8932 # else /* no HAVE_SYS_PARAM_H */
8933 # define getpagesize() 8192 /* punt totally */
8934 # endif /* no HAVE_SYS_PARAM_H */
8935 # endif /* no _SC_PAGESIZE */
8936
8937 #endif /* no HAVE_GETPAGESIZE */
8938
8939 int
8940 main ()
8941 {
8942 char *data, *data2, *data3;
8943 const char *cdata2;
8944 int i, pagesize;
8945 int fd, fd2;
8946
8947 pagesize = getpagesize ();
8948
8949 /* First, make a file with some known garbage in it. */
8950 data = (char *) malloc (pagesize);
8951 if (!data)
8952 return 1;
8953 for (i = 0; i < pagesize; ++i)
8954 *(data + i) = rand ();
8955 umask (0);
8956 fd = creat ("conftest.mmap", 0600);
8957 if (fd < 0)
8958 return 2;
8959 if (write (fd, data, pagesize) != pagesize)
8960 return 3;
8961 close (fd);
8962
8963 /* Next, check that the tail of a page is zero-filled. File must have
8964 non-zero length, otherwise we risk SIGBUS for entire page. */
8965 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8966 if (fd2 < 0)
8967 return 4;
8968 cdata2 = "";
8969 if (write (fd2, cdata2, 1) != 1)
8970 return 5;
8971 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8972 if (data2 == MAP_FAILED)
8973 return 6;
8974 for (i = 0; i < pagesize; ++i)
8975 if (*(data2 + i))
8976 return 7;
8977 close (fd2);
8978 if (munmap (data2, pagesize))
8979 return 8;
8980
8981 /* Next, try to mmap the file at a fixed address which already has
8982 something else allocated at it. If we can, also make sure that
8983 we see the same garbage. */
8984 fd = open ("conftest.mmap", O_RDWR);
8985 if (fd < 0)
8986 return 9;
8987 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8988 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8989 return 10;
8990 for (i = 0; i < pagesize; ++i)
8991 if (*(data + i) != *(data2 + i))
8992 return 11;
8993
8994 /* Finally, make sure that changes to the mapped area do not
8995 percolate back to the file as seen by read(). (This is a bug on
8996 some variants of i386 svr4.0.) */
8997 for (i = 0; i < pagesize; ++i)
8998 *(data2 + i) = *(data2 + i) + 1;
8999 data3 = (char *) malloc (pagesize);
9000 if (!data3)
9001 return 12;
9002 if (read (fd, data3, pagesize) != pagesize)
9003 return 13;
9004 for (i = 0; i < pagesize; ++i)
9005 if (*(data + i) != *(data3 + i))
9006 return 14;
9007 close (fd);
9008 return 0;
9009 }
9010 _ACEOF
9011 if ac_fn_c_try_run "$LINENO"; then :
9012 ac_cv_func_mmap_fixed_mapped=yes
9013 else
9014 ac_cv_func_mmap_fixed_mapped=no
9015 fi
9016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9017 conftest.$ac_objext conftest.beam conftest.$ac_ext
9018 fi
9019
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9022 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9023 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9024
9025 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9026
9027 fi
9028 rm -f conftest.mmap conftest.txt
9029
9030 if test $use_mmap_for_buffers = yes; then
9031
9032 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9033
9034 REL_ALLOC=no
9035 fi
9036
9037 LIBS="$LIBS_SYSTEM $LIBS"
9038
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9040 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9041 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 ac_check_lib_save_LIBS=$LIBS
9045 LIBS="-ldnet $LIBS"
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048
9049 /* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
9052 #ifdef __cplusplus
9053 extern "C"
9054 #endif
9055 char dnet_ntoa ();
9056 int
9057 main ()
9058 {
9059 return dnet_ntoa ();
9060 ;
9061 return 0;
9062 }
9063 _ACEOF
9064 if ac_fn_c_try_link "$LINENO"; then :
9065 ac_cv_lib_dnet_dnet_ntoa=yes
9066 else
9067 ac_cv_lib_dnet_dnet_ntoa=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071 LIBS=$ac_check_lib_save_LIBS
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9074 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9075 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_LIBDNET 1
9078 _ACEOF
9079
9080 LIBS="-ldnet $LIBS"
9081
9082 fi
9083
9084
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9086 $as_echo_n "checking for main in -lXbsd... " >&6; }
9087 if ${ac_cv_lib_Xbsd_main+:} false; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 ac_check_lib_save_LIBS=$LIBS
9091 LIBS="-lXbsd $LIBS"
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094
9095
9096 int
9097 main ()
9098 {
9099 return main ();
9100 ;
9101 return 0;
9102 }
9103 _ACEOF
9104 if ac_fn_c_try_link "$LINENO"; then :
9105 ac_cv_lib_Xbsd_main=yes
9106 else
9107 ac_cv_lib_Xbsd_main=no
9108 fi
9109 rm -f core conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111 LIBS=$ac_check_lib_save_LIBS
9112 fi
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9114 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9115 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9116 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9117 fi
9118
9119
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9121 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9122 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 ac_check_lib_save_LIBS=$LIBS
9126 LIBS="-lpthreads $LIBS"
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9129
9130 /* Override any GCC internal prototype to avoid an error.
9131 Use char because int might match the return type of a GCC
9132 builtin and then its argument prototype would still apply. */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 char cma_open ();
9137 int
9138 main ()
9139 {
9140 return cma_open ();
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_c_try_link "$LINENO"; then :
9146 ac_cv_lib_pthreads_cma_open=yes
9147 else
9148 ac_cv_lib_pthreads_cma_open=no
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext \
9151 conftest$ac_exeext conftest.$ac_ext
9152 LIBS=$ac_check_lib_save_LIBS
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9155 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9156 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9157 cat >>confdefs.h <<_ACEOF
9158 #define HAVE_LIBPTHREADS 1
9159 _ACEOF
9160
9161 LIBS="-lpthreads $LIBS"
9162
9163 fi
9164
9165
9166 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9167 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9168 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9169 ## added to LIBS in configure would never contain the pthreads part,
9170 ## but the value used in Makefiles might. FIXME?
9171 ##
9172 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9173 ## be harmless on older versions of X where it happens to exist.
9174 test "$opsys" = "aix4-2" && \
9175 test $ac_cv_lib_pthreads_cma_open = yes && \
9176 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9177
9178
9179 case ${host_os} in
9180 aix*)
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9182 $as_echo_n "checking for -bbigtoc option... " >&6; }
9183 if ${gdb_cv_bigtoc+:} false; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186
9187 case $GCC in
9188 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9189 *) gdb_cv_bigtoc=-bbigtoc ;;
9190 esac
9191
9192 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195
9196 int
9197 main ()
9198 {
9199 int i;
9200 ;
9201 return 0;
9202 }
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205
9206 else
9207 gdb_cv_bigtoc=
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9214 $as_echo "$gdb_cv_bigtoc" >&6; }
9215 ;;
9216 esac
9217
9218 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9219 # used for the tests that follow. We set them back to REAL_CFLAGS and
9220 # REAL_CPPFLAGS later on.
9221
9222 REAL_CFLAGS="$CFLAGS"
9223 REAL_CPPFLAGS="$CPPFLAGS"
9224
9225 if test "${HAVE_X11}" = "yes"; then
9226 DEFS="$C_SWITCH_X_SITE $DEFS"
9227 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9228 LIBS="-lX11 $LIBS"
9229 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9230 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9231
9232 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9233 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9234 # but it's more convenient here to set LD_RUN_PATH
9235 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9236 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9237 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9238 export LD_RUN_PATH
9239 fi
9240
9241 if test "${opsys}" = "gnu-linux"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9243 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9246
9247 int
9248 main ()
9249 {
9250 XOpenDisplay ("foo");
9251 ;
9252 return 0;
9253 }
9254 _ACEOF
9255 if ac_fn_c_try_link "$LINENO"; then :
9256 xlinux_first_failure=no
9257 else
9258 xlinux_first_failure=yes
9259 fi
9260 rm -f core conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262 if test "${xlinux_first_failure}" = "yes"; then
9263 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9264 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9265 OLD_CPPFLAGS="$CPPFLAGS"
9266 OLD_LIBS="$LIBS"
9267 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9268 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9269 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9270 LIBS="$LIBS -b i486-linuxaout"
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273
9274 int
9275 main ()
9276 {
9277 XOpenDisplay ("foo");
9278 ;
9279 return 0;
9280 }
9281 _ACEOF
9282 if ac_fn_c_try_link "$LINENO"; then :
9283 xlinux_second_failure=no
9284 else
9285 xlinux_second_failure=yes
9286 fi
9287 rm -f core conftest.err conftest.$ac_objext \
9288 conftest$ac_exeext conftest.$ac_ext
9289 if test "${xlinux_second_failure}" = "yes"; then
9290 # If we get the same failure with -b, there is no use adding -b.
9291 # So take it out. This plays safe.
9292 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9293 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9294 CPPFLAGS="$OLD_CPPFLAGS"
9295 LIBS="$OLD_LIBS"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9298 else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9300 $as_echo "yes" >&6; }
9301 fi
9302 else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9305 fi
9306 fi
9307
9308 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9309 # header files included from there.
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9311 $as_echo_n "checking for Xkb... " >&6; }
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 #include <X11/Xlib.h>
9315 #include <X11/XKBlib.h>
9316 int
9317 main ()
9318 {
9319 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 if ac_fn_c_try_link "$LINENO"; then :
9325 emacs_xkb=yes
9326 else
9327 emacs_xkb=no
9328 fi
9329 rm -f core conftest.err conftest.$ac_objext \
9330 conftest$ac_exeext conftest.$ac_ext
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9332 $as_echo "$emacs_xkb" >&6; }
9333 if test $emacs_xkb = yes; then
9334
9335 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9336
9337 fi
9338
9339 for ac_func in XrmSetDatabase XScreenResourceString \
9340 XScreenNumberOfScreen XSetWMProtocols
9341 do :
9342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9345 cat >>confdefs.h <<_ACEOF
9346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9347 _ACEOF
9348
9349 fi
9350 done
9351
9352 fi
9353
9354 if test "${window_system}" = "x11"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9356 $as_echo_n "checking X11 version 6... " >&6; }
9357 if ${emacs_cv_x11_version_6+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 #include <X11/Xlib.h>
9363 int
9364 main ()
9365 {
9366 #if XlibSpecificationRelease < 6
9367 fail;
9368 #endif
9369
9370 ;
9371 return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"; then :
9375 emacs_cv_x11_version_6=yes
9376 else
9377 emacs_cv_x11_version_6=no
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381 fi
9382
9383 if test $emacs_cv_x11_version_6 = yes; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9385 $as_echo "6 or newer" >&6; }
9386
9387 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9388
9389
9390 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9391
9392 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9393 ## XIM support.
9394 case "$opsys" in
9395 sol2-*) : ;;
9396 *)
9397 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9398
9399 ;;
9400 esac
9401 else
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9403 $as_echo "before 6" >&6; }
9404 fi
9405 fi
9406
9407
9408 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9409 HAVE_RSVG=no
9410 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9411 if test "${with_rsvg}" != "no"; then
9412 RSVG_REQUIRED=2.11.0
9413 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9414
9415
9416 succeeded=no
9417
9418 # Extract the first word of "pkg-config", so it can be a program name with args.
9419 set dummy pkg-config; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 case $PKG_CONFIG in
9426 [\\/]* | ?:[\\/]*)
9427 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9428 ;;
9429 *)
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9432 do
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9440 fi
9441 done
9442 done
9443 IFS=$as_save_IFS
9444
9445 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9446 ;;
9447 esac
9448 fi
9449 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9450 if test -n "$PKG_CONFIG"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9452 $as_echo "$PKG_CONFIG" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 fi
9457
9458
9459
9460 if test "$PKG_CONFIG" = "no" ; then
9461 :
9462 else
9463 PKG_CONFIG_MIN_VERSION=0.9.0
9464 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9466 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9467
9468 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470 $as_echo "yes" >&6; }
9471 succeeded=yes
9472
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9474 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9475 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9477 $as_echo "$RSVG_CFLAGS" >&6; }
9478
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9480 $as_echo_n "checking RSVG_LIBS... " >&6; }
9481 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9483 $as_echo "$RSVG_LIBS" >&6; }
9484 else
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9487 RSVG_CFLAGS=""
9488 RSVG_LIBS=""
9489 ## If we have a custom action on failure, don't print errors, but
9490 ## do set a variable so people can do so.
9491 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9492
9493 fi
9494
9495
9496
9497 else
9498 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9499 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9500 fi
9501 fi
9502
9503 if test $succeeded = yes; then
9504 HAVE_RSVG=yes
9505 else
9506 :
9507 fi
9508
9509
9510
9511
9512 if test $HAVE_RSVG = yes; then
9513
9514 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9515
9516 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9517 LIBS="$RSVG_LIBS $LIBS"
9518 fi
9519 fi
9520 fi
9521
9522 HAVE_IMAGEMAGICK=no
9523 if test "${HAVE_X11}" = "yes"; then
9524 if test "${with_imagemagick}" != "no"; then
9525 IMAGEMAGICK_MODULE="Wand"
9526
9527 succeeded=no
9528
9529 # Extract the first word of "pkg-config", so it can be a program name with args.
9530 set dummy pkg-config; ac_word=$2
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 $as_echo_n "checking for $ac_word... " >&6; }
9533 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 case $PKG_CONFIG in
9537 [\\/]* | ?:[\\/]*)
9538 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9539 ;;
9540 *)
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9543 do
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9548 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 break 2
9551 fi
9552 done
9553 done
9554 IFS=$as_save_IFS
9555
9556 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9557 ;;
9558 esac
9559 fi
9560 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9561 if test -n "$PKG_CONFIG"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9563 $as_echo "$PKG_CONFIG" >&6; }
9564 else
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9567 fi
9568
9569
9570
9571 if test "$PKG_CONFIG" = "no" ; then
9572 :
9573 else
9574 PKG_CONFIG_MIN_VERSION=0.9.0
9575 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9577 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9578
9579 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9581 $as_echo "yes" >&6; }
9582 succeeded=yes
9583
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9585 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9586 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9588 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9589
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9591 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9592 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9594 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9595 else
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597 $as_echo "no" >&6; }
9598 IMAGEMAGICK_CFLAGS=""
9599 IMAGEMAGICK_LIBS=""
9600 ## If we have a custom action on failure, don't print errors, but
9601 ## do set a variable so people can do so.
9602 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9603
9604 fi
9605
9606
9607
9608 else
9609 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9610 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9611 fi
9612 fi
9613
9614 if test $succeeded = yes; then
9615 HAVE_IMAGEMAGICK=yes
9616 else
9617 :
9618 fi
9619
9620
9621
9622
9623 if test $HAVE_IMAGEMAGICK = yes; then
9624
9625 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9626
9627 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9628 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9629 for ac_func in MagickExportImagePixels
9630 do :
9631 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9632 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
9633 cat >>confdefs.h <<_ACEOF
9634 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9635 _ACEOF
9636
9637 fi
9638 done
9639
9640 fi
9641 fi
9642 fi
9643
9644
9645 HAVE_GTK=no
9646 if test "${with_gtk3}" = "yes"; then
9647 GLIB_REQUIRED=2.6
9648 GTK_REQUIRED=2.90
9649 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9650
9651
9652 succeeded=no
9653
9654 # Extract the first word of "pkg-config", so it can be a program name with args.
9655 set dummy pkg-config; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 case $PKG_CONFIG in
9662 [\\/]* | ?:[\\/]*)
9663 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9664 ;;
9665 *)
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9668 do
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675 break 2
9676 fi
9677 done
9678 done
9679 IFS=$as_save_IFS
9680
9681 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9682 ;;
9683 esac
9684 fi
9685 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9686 if test -n "$PKG_CONFIG"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9688 $as_echo "$PKG_CONFIG" >&6; }
9689 else
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9692 fi
9693
9694
9695
9696 if test "$PKG_CONFIG" = "no" ; then
9697 pkg_check_gtk=no
9698 else
9699 PKG_CONFIG_MIN_VERSION=0.9.0
9700 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9702 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9703
9704 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9706 $as_echo "yes" >&6; }
9707 succeeded=yes
9708
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9710 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9711 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9713 $as_echo "$GTK_CFLAGS" >&6; }
9714
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9716 $as_echo_n "checking GTK_LIBS... " >&6; }
9717 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9719 $as_echo "$GTK_LIBS" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9723 GTK_CFLAGS=""
9724 GTK_LIBS=""
9725 ## If we have a custom action on failure, don't print errors, but
9726 ## do set a variable so people can do so.
9727 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9728
9729 fi
9730
9731
9732
9733 else
9734 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9735 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9736 fi
9737 fi
9738
9739 if test $succeeded = yes; then
9740 pkg_check_gtk=yes
9741 else
9742 pkg_check_gtk=no
9743 fi
9744
9745 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9746 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9747 fi
9748 fi
9749
9750 if test "$pkg_check_gtk" != "yes"; then
9751 HAVE_GTK=no
9752 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9753 GLIB_REQUIRED=2.6
9754 GTK_REQUIRED=2.6
9755 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9756
9757
9758 succeeded=no
9759
9760 # Extract the first word of "pkg-config", so it can be a program name with args.
9761 set dummy pkg-config; ac_word=$2
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9763 $as_echo_n "checking for $ac_word... " >&6; }
9764 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 case $PKG_CONFIG in
9768 [\\/]* | ?:[\\/]*)
9769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9770 ;;
9771 *)
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9782 fi
9783 done
9784 done
9785 IFS=$as_save_IFS
9786
9787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9788 ;;
9789 esac
9790 fi
9791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9792 if test -n "$PKG_CONFIG"; then
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9794 $as_echo "$PKG_CONFIG" >&6; }
9795 else
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9798 fi
9799
9800
9801
9802 if test "$PKG_CONFIG" = "no" ; then
9803 pkg_check_gtk=no
9804 else
9805 PKG_CONFIG_MIN_VERSION=0.9.0
9806 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9808 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9809
9810 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9812 $as_echo "yes" >&6; }
9813 succeeded=yes
9814
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9816 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9817 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9819 $as_echo "$GTK_CFLAGS" >&6; }
9820
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9822 $as_echo_n "checking GTK_LIBS... " >&6; }
9823 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9825 $as_echo "$GTK_LIBS" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9829 GTK_CFLAGS=""
9830 GTK_LIBS=""
9831 ## If we have a custom action on failure, don't print errors, but
9832 ## do set a variable so people can do so.
9833 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9834
9835 fi
9836
9837
9838
9839 else
9840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9842 fi
9843 fi
9844
9845 if test $succeeded = yes; then
9846 pkg_check_gtk=yes
9847 else
9848 pkg_check_gtk=no
9849 fi
9850
9851 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9852 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9853 fi
9854 fi
9855 fi
9856
9857 GTK_OBJ=
9858 if test x"$pkg_check_gtk" = xyes; then
9859
9860
9861
9862 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9863 CFLAGS="$CFLAGS $GTK_CFLAGS"
9864 LIBS="$GTK_LIBS $LIBS"
9865 GTK_COMPILES=no
9866 for ac_func in gtk_main
9867 do :
9868 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
9869 if test "x$ac_cv_func_gtk_main" = xyes; then :
9870 cat >>confdefs.h <<_ACEOF
9871 #define HAVE_GTK_MAIN 1
9872 _ACEOF
9873 GTK_COMPILES=yes
9874 fi
9875 done
9876
9877 if test "${GTK_COMPILES}" != "yes"; then
9878 if test "$USE_X_TOOLKIT" != "maybe"; then
9879 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
9880 fi
9881 else
9882 HAVE_GTK=yes
9883
9884 $as_echo "#define USE_GTK 1" >>confdefs.h
9885
9886 GTK_OBJ=gtkutil.o
9887 USE_X_TOOLKIT=none
9888 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9889 :
9890 else
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9892 closing open displays. This is no problem if you just use
9893 one display, but if you use more than one and close one of them
9894 Emacs may crash." >&5
9895 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9896 closing open displays. This is no problem if you just use
9897 one display, but if you use more than one and close one of them
9898 Emacs may crash." >&2;}
9899 sleep 3
9900 fi
9901 fi
9902
9903 fi
9904
9905
9906
9907 if test "${HAVE_GTK}" = "yes"; then
9908
9909 if test "$with_toolkit_scroll_bars" != no; then
9910 with_toolkit_scroll_bars=yes
9911 fi
9912
9913 HAVE_GTK_FILE_SELECTION=no
9914 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9915 #include <gtk/gtk.h>
9916 "
9917 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
9918 HAVE_GTK_FILE_SELECTION=yes
9919 else
9920 HAVE_GTK_FILE_SELECTION=no
9921 fi
9922
9923 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9924 for ac_func in gtk_file_selection_new
9925 do :
9926 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9927 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_GTK_FILE_SELECTION_NEW 1
9930 _ACEOF
9931
9932 fi
9933 done
9934
9935 fi
9936
9937 HAVE_GTK_AND_PTHREAD=no
9938 for ac_header in pthread.h
9939 do :
9940 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9941 if test "x$ac_cv_header_pthread_h" = xyes; then :
9942 cat >>confdefs.h <<_ACEOF
9943 #define HAVE_PTHREAD_H 1
9944 _ACEOF
9945
9946 fi
9947
9948 done
9949
9950 if test "$ac_cv_header_pthread_h"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9952 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9953 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-lpthread $LIBS"
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960
9961 /* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9964 #ifdef __cplusplus
9965 extern "C"
9966 #endif
9967 char pthread_self ();
9968 int
9969 main ()
9970 {
9971 return pthread_self ();
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 if ac_fn_c_try_link "$LINENO"; then :
9977 ac_cv_lib_pthread_pthread_self=yes
9978 else
9979 ac_cv_lib_pthread_pthread_self=no
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9984 fi
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9986 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9987 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
9988 HAVE_GTK_AND_PTHREAD=yes
9989 fi
9990
9991 fi
9992 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9993 case "${canonical}" in
9994 *-hpux*) ;;
9995 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9996 esac
9997
9998 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9999
10000 fi
10001
10002 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10003 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10004 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10005 gtk_orientable_set_orientation
10006 do :
10007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10010 cat >>confdefs.h <<_ACEOF
10011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10012 _ACEOF
10013
10014 fi
10015 done
10016
10017
10018 fi
10019
10020 HAVE_DBUS=no
10021 DBUS_OBJ=
10022 if test "${with_dbus}" = "yes"; then
10023
10024 succeeded=no
10025
10026 # Extract the first word of "pkg-config", so it can be a program name with args.
10027 set dummy pkg-config; ac_word=$2
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029 $as_echo_n "checking for $ac_word... " >&6; }
10030 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 case $PKG_CONFIG in
10034 [\\/]* | ?:[\\/]*)
10035 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10036 ;;
10037 *)
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10040 do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10045 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10048 fi
10049 done
10050 done
10051 IFS=$as_save_IFS
10052
10053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10054 ;;
10055 esac
10056 fi
10057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10058 if test -n "$PKG_CONFIG"; then
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10060 $as_echo "$PKG_CONFIG" >&6; }
10061 else
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063 $as_echo "no" >&6; }
10064 fi
10065
10066
10067
10068 if test "$PKG_CONFIG" = "no" ; then
10069 HAVE_DBUS=no
10070 else
10071 PKG_CONFIG_MIN_VERSION=0.9.0
10072 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10074 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10075
10076 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10078 $as_echo "yes" >&6; }
10079 succeeded=yes
10080
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10082 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10083 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10085 $as_echo "$DBUS_CFLAGS" >&6; }
10086
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10088 $as_echo_n "checking DBUS_LIBS... " >&6; }
10089 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10091 $as_echo "$DBUS_LIBS" >&6; }
10092 else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095 DBUS_CFLAGS=""
10096 DBUS_LIBS=""
10097 ## If we have a custom action on failure, don't print errors, but
10098 ## do set a variable so people can do so.
10099 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10100
10101 fi
10102
10103
10104
10105 else
10106 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10107 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10108 fi
10109 fi
10110
10111 if test $succeeded = yes; then
10112 HAVE_DBUS=yes
10113 else
10114 HAVE_DBUS=no
10115 fi
10116
10117 if test "$HAVE_DBUS" = yes; then
10118 LIBS="$LIBS $DBUS_LIBS"
10119
10120 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10121
10122 for ac_func in dbus_watch_get_unix_fd
10123 do :
10124 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10125 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10126 cat >>confdefs.h <<_ACEOF
10127 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10128 _ACEOF
10129
10130 fi
10131 done
10132
10133 DBUS_OBJ=dbusbind.o
10134 fi
10135 fi
10136
10137
10138 HAVE_GCONF=no
10139 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10140
10141 succeeded=no
10142
10143 # Extract the first word of "pkg-config", so it can be a program name with args.
10144 set dummy pkg-config; ac_word=$2
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 case $PKG_CONFIG in
10151 [\\/]* | ?:[\\/]*)
10152 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10153 ;;
10154 *)
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10157 do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10165 fi
10166 done
10167 done
10168 IFS=$as_save_IFS
10169
10170 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10171 ;;
10172 esac
10173 fi
10174 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10175 if test -n "$PKG_CONFIG"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10177 $as_echo "$PKG_CONFIG" >&6; }
10178 else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10181 fi
10182
10183
10184
10185 if test "$PKG_CONFIG" = "no" ; then
10186 HAVE_GCONF=no
10187 else
10188 PKG_CONFIG_MIN_VERSION=0.9.0
10189 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10191 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10192
10193 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10195 $as_echo "yes" >&6; }
10196 succeeded=yes
10197
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10199 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10200 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10202 $as_echo "$GCONF_CFLAGS" >&6; }
10203
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10205 $as_echo_n "checking GCONF_LIBS... " >&6; }
10206 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10208 $as_echo "$GCONF_LIBS" >&6; }
10209 else
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10212 GCONF_CFLAGS=""
10213 GCONF_LIBS=""
10214 ## If we have a custom action on failure, don't print errors, but
10215 ## do set a variable so people can do so.
10216 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10217
10218 fi
10219
10220
10221
10222 else
10223 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10224 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10225 fi
10226 fi
10227
10228 if test $succeeded = yes; then
10229 HAVE_GCONF=yes
10230 else
10231 HAVE_GCONF=no
10232 fi
10233
10234 if test "$HAVE_GCONF" = yes; then
10235
10236 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10237
10238 for ac_func in g_type_init
10239 do :
10240 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10241 if test "x$ac_cv_func_g_type_init" = xyes; then :
10242 cat >>confdefs.h <<_ACEOF
10243 #define HAVE_G_TYPE_INIT 1
10244 _ACEOF
10245
10246 fi
10247 done
10248
10249 fi
10250 fi
10251
10252 HAVE_LIBSELINUX=no
10253 LIBSELINUX_LIBS=
10254 if test "${with_selinux}" = "yes"; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10256 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10257 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 ac_check_lib_save_LIBS=$LIBS
10261 LIBS="-lselinux $LIBS"
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10264
10265 /* Override any GCC internal prototype to avoid an error.
10266 Use char because int might match the return type of a GCC
10267 builtin and then its argument prototype would still apply. */
10268 #ifdef __cplusplus
10269 extern "C"
10270 #endif
10271 char lgetfilecon ();
10272 int
10273 main ()
10274 {
10275 return lgetfilecon ();
10276 ;
10277 return 0;
10278 }
10279 _ACEOF
10280 if ac_fn_c_try_link "$LINENO"; then :
10281 ac_cv_lib_selinux_lgetfilecon=yes
10282 else
10283 ac_cv_lib_selinux_lgetfilecon=no
10284 fi
10285 rm -f core conftest.err conftest.$ac_objext \
10286 conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10288 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10290 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10291 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10292 HAVE_LIBSELINUX=yes
10293 else
10294 HAVE_LIBSELINUX=no
10295 fi
10296
10297 if test "$HAVE_LIBSELINUX" = yes; then
10298
10299 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10300
10301 LIBSELINUX_LIBS=-lselinux
10302 fi
10303 fi
10304
10305
10306 HAVE_GNUTLS=no
10307 if test "${with_gnutls}" = "yes" ; then
10308
10309 succeeded=no
10310
10311 # Extract the first word of "pkg-config", so it can be a program name with args.
10312 set dummy pkg-config; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 case $PKG_CONFIG in
10319 [\\/]* | ?:[\\/]*)
10320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10321 ;;
10322 *)
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10325 do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10330 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334 done
10335 done
10336 IFS=$as_save_IFS
10337
10338 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10339 ;;
10340 esac
10341 fi
10342 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10343 if test -n "$PKG_CONFIG"; then
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10345 $as_echo "$PKG_CONFIG" >&6; }
10346 else
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 $as_echo "no" >&6; }
10349 fi
10350
10351
10352
10353 if test "$PKG_CONFIG" = "no" ; then
10354 HAVE_GNUTLS=no
10355 else
10356 PKG_CONFIG_MIN_VERSION=0.9.0
10357 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10359 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10360
10361 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10363 $as_echo "yes" >&6; }
10364 succeeded=yes
10365
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10367 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10368 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10370 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10373 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10374 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10376 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10380 LIBGNUTLS_CFLAGS=""
10381 LIBGNUTLS_LIBS=""
10382 ## If we have a custom action on failure, don't print errors, but
10383 ## do set a variable so people can do so.
10384 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10385
10386 fi
10387
10388
10389
10390 else
10391 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10392 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10393 fi
10394 fi
10395
10396 if test $succeeded = yes; then
10397 HAVE_GNUTLS=yes
10398 else
10399 HAVE_GNUTLS=no
10400 fi
10401
10402 if test "${HAVE_GNUTLS}" = "yes"; then
10403
10404 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10405
10406 fi
10407 fi
10408
10409
10410
10411 HAVE_XAW3D=no
10412 LUCID_LIBW=
10413 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10414 if test "$with_xaw3d" != no; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10416 $as_echo_n "checking for xaw3d... " >&6; }
10417 if ${emacs_cv_xaw3d+:} false; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422
10423 #include <X11/Intrinsic.h>
10424 #include <X11/Xaw3d/Simple.h>
10425 int
10426 main ()
10427 {
10428
10429 ;
10430 return 0;
10431 }
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 emacs_cv_xaw3d=yes
10435 else
10436 emacs_cv_xaw3d=no
10437 fi
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10440 fi
10441
10442 else
10443 emacs_cv_xaw3d=no
10444 fi
10445 if test $emacs_cv_xaw3d = yes; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10447 $as_echo "yes; using Lucid toolkit" >&6; }
10448 USE_X_TOOLKIT=LUCID
10449 HAVE_XAW3D=yes
10450 LUCID_LIBW=-lXaw3d
10451
10452 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10453
10454 else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10458 $as_echo_n "checking for libXaw... " >&6; }
10459 if ${emacs_cv_xaw+:} false; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10464
10465 #include <X11/Intrinsic.h>
10466 #include <X11/Xaw/Simple.h>
10467 int
10468 main ()
10469 {
10470
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 if ac_fn_c_try_link "$LINENO"; then :
10476 emacs_cv_xaw=yes
10477 else
10478 emacs_cv_xaw=no
10479 fi
10480 rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 fi
10483
10484 if test $emacs_cv_xaw = yes; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10486 $as_echo "yes; using Lucid toolkit" >&6; }
10487 USE_X_TOOLKIT=LUCID
10488 LUCID_LIBW=-lXaw
10489 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10490 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10493 $as_echo "no; do not use toolkit by default" >&6; }
10494 USE_X_TOOLKIT=none
10495 fi
10496 fi
10497 fi
10498
10499 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10500
10501 LIBXTR6=
10502 if test "${USE_X_TOOLKIT}" != "none"; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10504 $as_echo_n "checking X11 toolkit version... " >&6; }
10505 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 #include <X11/Intrinsic.h>
10511 int
10512 main ()
10513 {
10514 #if XtSpecificationRelease < 6
10515 fail;
10516 #endif
10517
10518 ;
10519 return 0;
10520 }
10521 _ACEOF
10522 if ac_fn_c_try_link "$LINENO"; then :
10523 emacs_cv_x11_toolkit_version_6=yes
10524 else
10525 emacs_cv_x11_toolkit_version_6=no
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529 fi
10530
10531 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10532 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10534 $as_echo "6 or newer" >&6; }
10535
10536 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10537
10538 LIBXTR6="-lSM -lICE"
10539 case "$opsys" in
10540 ## Use libw.a along with X11R6 Xt.
10541 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10542 esac
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10545 $as_echo "before 6" >&6; }
10546 fi
10547
10548 OLDLIBS="$LIBS"
10549 if test x$HAVE_X11XTR6 = xyes; then
10550 LIBS="-lXt -lSM -lICE $LIBS"
10551 else
10552 LIBS="-lXt $LIBS"
10553 fi
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10555 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10556 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 ac_check_lib_save_LIBS=$LIBS
10560 LIBS="-lXmu $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 XmuConvertStandardSelection ();
10571 int
10572 main ()
10573 {
10574 return XmuConvertStandardSelection ();
10575 ;
10576 return 0;
10577 }
10578 _ACEOF
10579 if ac_fn_c_try_link "$LINENO"; then :
10580 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10581 else
10582 ac_cv_lib_Xmu_XmuConvertStandardSelection=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_Xmu_XmuConvertStandardSelection" >&5
10589 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10590 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
10591 cat >>confdefs.h <<_ACEOF
10592 #define HAVE_LIBXMU 1
10593 _ACEOF
10594
10595 LIBS="-lXmu $LIBS"
10596
10597 fi
10598
10599 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10600 fi
10601
10602
10603 LIBXMU=-lXmu
10604 case $opsys in
10605 ## These systems don't supply Xmu.
10606 hpux* | aix4-2 )
10607 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10608 ;;
10609 esac
10610
10611
10612 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10613 if test "${HAVE_X11}" = "yes"; then
10614 if test "${USE_X_TOOLKIT}" != "none"; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10616 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10617 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 ac_check_lib_save_LIBS=$LIBS
10621 LIBS="-lXext $LIBS"
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624
10625 /* Override any GCC internal prototype to avoid an error.
10626 Use char because int might match the return type of a GCC
10627 builtin and then its argument prototype would still apply. */
10628 #ifdef __cplusplus
10629 extern "C"
10630 #endif
10631 char XShapeQueryExtension ();
10632 int
10633 main ()
10634 {
10635 return XShapeQueryExtension ();
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_link "$LINENO"; then :
10641 ac_cv_lib_Xext_XShapeQueryExtension=yes
10642 else
10643 ac_cv_lib_Xext_XShapeQueryExtension=no
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 LIBS=$ac_check_lib_save_LIBS
10648 fi
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10650 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10651 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10652 cat >>confdefs.h <<_ACEOF
10653 #define HAVE_LIBXEXT 1
10654 _ACEOF
10655
10656 LIBS="-lXext $LIBS"
10657
10658 fi
10659
10660 fi
10661 fi
10662
10663 LIBXP=
10664 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10666 $as_echo_n "checking for Motif version 2.1... " >&6; }
10667 if ${emacs_cv_motif_version_2_1+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 #include <Xm/Xm.h>
10673 int
10674 main ()
10675 {
10676 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10677 int x = 5;
10678 #else
10679 Motif version prior to 2.1.
10680 #endif
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 if ac_fn_c_try_compile "$LINENO"; then :
10686 emacs_cv_motif_version_2_1=yes
10687 else
10688 emacs_cv_motif_version_2_1=no
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 fi
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10693 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10694 if test $emacs_cv_motif_version_2_1 = yes; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10696 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10697 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 ac_check_lib_save_LIBS=$LIBS
10701 LIBS="-lXp $LIBS"
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704
10705 /* Override any GCC internal prototype to avoid an error.
10706 Use char because int might match the return type of a GCC
10707 builtin and then its argument prototype would still apply. */
10708 #ifdef __cplusplus
10709 extern "C"
10710 #endif
10711 char XpCreateContext ();
10712 int
10713 main ()
10714 {
10715 return XpCreateContext ();
10716 ;
10717 return 0;
10718 }
10719 _ACEOF
10720 if ac_fn_c_try_link "$LINENO"; then :
10721 ac_cv_lib_Xp_XpCreateContext=yes
10722 else
10723 ac_cv_lib_Xp_XpCreateContext=no
10724 fi
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 LIBS=$ac_check_lib_save_LIBS
10728 fi
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10730 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10731 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
10732 LIBXP=-lXp
10733 fi
10734
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10737 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10738 if ${emacs_cv_lesstif+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 # We put this in CFLAGS temporarily to precede other -I options
10742 # that might be in CFLAGS temporarily.
10743 # We put this in CPPFLAGS where it precedes the other -I options.
10744 OLD_CPPFLAGS=$CPPFLAGS
10745 OLD_CFLAGS=$CFLAGS
10746 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10747 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10751 int
10752 main ()
10753 {
10754 int x = 5;
10755 ;
10756 return 0;
10757 }
10758 _ACEOF
10759 if ac_fn_c_try_compile "$LINENO"; then :
10760 emacs_cv_lesstif=yes
10761 else
10762 emacs_cv_lesstif=no
10763 fi
10764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 fi
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10767 $as_echo "$emacs_cv_lesstif" >&6; }
10768 if test $emacs_cv_lesstif = yes; then
10769 # Make sure this -I option remains in CPPFLAGS after it is set
10770 # back to REAL_CPPFLAGS.
10771 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10772 # have those other -I options anyway. Ultimately, having this
10773 # directory ultimately in CPPFLAGS will be enough.
10774 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10775 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10776 else
10777 CFLAGS=$OLD_CFLAGS
10778 CPPFLAGS=$OLD_CPPFLAGS
10779 fi
10780 fi
10781 fi
10782
10783
10784 USE_TOOLKIT_SCROLL_BARS=no
10785 if test "${with_toolkit_scroll_bars}" != "no"; then
10786 if test "${USE_X_TOOLKIT}" != "none"; then
10787 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10788 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10789
10790 HAVE_XAW3D=no
10791 USE_TOOLKIT_SCROLL_BARS=yes
10792 elif test "${HAVE_XAW3D}" = "yes"; then
10793 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10794
10795 USE_TOOLKIT_SCROLL_BARS=yes
10796 fi
10797 elif test "${HAVE_GTK}" = "yes"; then
10798 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10799
10800 USE_TOOLKIT_SCROLL_BARS=yes
10801 elif test "${HAVE_NS}" = "yes"; then
10802 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10803
10804 USE_TOOLKIT_SCROLL_BARS=yes
10805 fi
10806 fi
10807
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10810
10811 #include <X11/Xlib.h>
10812 #include <X11/Xresource.h>
10813 int
10814 main ()
10815 {
10816 XIMProc callback;
10817 ;
10818 return 0;
10819 }
10820 _ACEOF
10821 if ac_fn_c_try_compile "$LINENO"; then :
10822 HAVE_XIM=yes
10823
10824 $as_echo "#define HAVE_XIM 1" >>confdefs.h
10825
10826 else
10827 HAVE_XIM=no
10828 fi
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830
10831
10832 if test "${with_xim}" != "no"; then
10833
10834 $as_echo "#define USE_XIM 1" >>confdefs.h
10835
10836 fi
10837
10838
10839 if test "${HAVE_XIM}" != "no"; then
10840 late_CFLAGS=$CFLAGS
10841 if test "$GCC" = yes; then
10842 CFLAGS="$CFLAGS --pedantic-errors"
10843 fi
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846
10847 #include <X11/Xlib.h>
10848 #include <X11/Xresource.h>
10849 int
10850 main ()
10851 {
10852 Display *display;
10853 XrmDatabase db;
10854 char *res_name;
10855 char *res_class;
10856 XIMProc callback;
10857 XPointer *client_data;
10858 #ifndef __GNUC__
10859 /* If we're not using GCC, it's probably not XFree86, and this is
10860 probably right, but we can't use something like --pedantic-errors. */
10861 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10862 char*, XIMProc, XPointer*);
10863 #endif
10864 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10865 client_data);
10866 ;
10867 return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_compile "$LINENO"; then :
10871 emacs_cv_arg6_star=yes
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 if test "$emacs_cv_arg6_star" = yes; then
10875 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
10876
10877 else
10878 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
10879
10880 fi
10881 CFLAGS=$late_CFLAGS
10882 fi
10883
10884 ### Start of font-backend (under any platform) section.
10885 # (nothing here yet -- this is a placeholder)
10886 ### End of font-backend (under any platform) section.
10887
10888 ### Start of font-backend (under X11) section.
10889 if test "${HAVE_X11}" = "yes"; then
10890
10891 succeeded=no
10892
10893 # Extract the first word of "pkg-config", so it can be a program name with args.
10894 set dummy pkg-config; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 case $PKG_CONFIG in
10901 [\\/]* | ?:[\\/]*)
10902 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10903 ;;
10904 *)
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10907 do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10915 fi
10916 done
10917 done
10918 IFS=$as_save_IFS
10919
10920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10921 ;;
10922 esac
10923 fi
10924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10925 if test -n "$PKG_CONFIG"; then
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10927 $as_echo "$PKG_CONFIG" >&6; }
10928 else
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10930 $as_echo "no" >&6; }
10931 fi
10932
10933
10934
10935 if test "$PKG_CONFIG" = "no" ; then
10936 HAVE_FC=no
10937 else
10938 PKG_CONFIG_MIN_VERSION=0.9.0
10939 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10941 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10942
10943 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10945 $as_echo "yes" >&6; }
10946 succeeded=yes
10947
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10949 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10950 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10952 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10953
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10955 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10956 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10958 $as_echo "$FONTCONFIG_LIBS" >&6; }
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10962 FONTCONFIG_CFLAGS=""
10963 FONTCONFIG_LIBS=""
10964 ## If we have a custom action on failure, don't print errors, but
10965 ## do set a variable so people can do so.
10966 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10967
10968 fi
10969
10970
10971
10972 else
10973 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10974 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10975 fi
10976 fi
10977
10978 if test $succeeded = yes; then
10979 HAVE_FC=yes
10980 else
10981 HAVE_FC=no
10982 fi
10983
10984
10985 ## Use -lXft if available, unless `--with-xft=no'.
10986 HAVE_XFT=maybe
10987 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10988 with_xft="no";
10989 fi
10990 if test "x${with_xft}" != "xno"; then
10991
10992
10993 succeeded=no
10994
10995 # Extract the first word of "pkg-config", so it can be a program name with args.
10996 set dummy pkg-config; ac_word=$2
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10998 $as_echo_n "checking for $ac_word... " >&6; }
10999 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 case $PKG_CONFIG in
11003 [\\/]* | ?:[\\/]*)
11004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11005 ;;
11006 *)
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11009 do
11010 IFS=$as_save_IFS
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 break 2
11017 fi
11018 done
11019 done
11020 IFS=$as_save_IFS
11021
11022 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11023 ;;
11024 esac
11025 fi
11026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11027 if test -n "$PKG_CONFIG"; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11029 $as_echo "$PKG_CONFIG" >&6; }
11030 else
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032 $as_echo "no" >&6; }
11033 fi
11034
11035
11036
11037 if test "$PKG_CONFIG" = "no" ; then
11038 HAVE_XFT=no
11039 else
11040 PKG_CONFIG_MIN_VERSION=0.9.0
11041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11043 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11044
11045 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11047 $as_echo "yes" >&6; }
11048 succeeded=yes
11049
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11051 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11052 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11054 $as_echo "$XFT_CFLAGS" >&6; }
11055
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11057 $as_echo_n "checking XFT_LIBS... " >&6; }
11058 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11060 $as_echo "$XFT_LIBS" >&6; }
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11064 XFT_CFLAGS=""
11065 XFT_LIBS=""
11066 ## If we have a custom action on failure, don't print errors, but
11067 ## do set a variable so people can do so.
11068 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11069
11070 fi
11071
11072
11073
11074 else
11075 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11076 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11077 fi
11078 fi
11079
11080 if test $succeeded = yes; then
11081 :
11082 else
11083 HAVE_XFT=no
11084 fi
11085
11086 ## Because xftfont.c uses XRenderQueryExtension, we also
11087 ## need to link to -lXrender.
11088 HAVE_XRENDER=no
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11090 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11091 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 ac_check_lib_save_LIBS=$LIBS
11095 LIBS="-lXrender $LIBS"
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11098
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11102 #ifdef __cplusplus
11103 extern "C"
11104 #endif
11105 char XRenderQueryExtension ();
11106 int
11107 main ()
11108 {
11109 return XRenderQueryExtension ();
11110 ;
11111 return 0;
11112 }
11113 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11115 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11116 else
11117 ac_cv_lib_Xrender_XRenderQueryExtension=no
11118 fi
11119 rm -f core conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11121 LIBS=$ac_check_lib_save_LIBS
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11124 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11125 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11126 HAVE_XRENDER=yes
11127 fi
11128
11129 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11130 OLD_CPPFLAGS="$CPPFLAGS"
11131 OLD_CFLAGS="$CFLAGS"
11132 OLD_LIBS="$LIBS"
11133 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11134 CFLAGS="$CFLAGS $XFT_CFLAGS"
11135 XFT_LIBS="-lXrender $XFT_LIBS"
11136 LIBS="$XFT_LIBS $LIBS"
11137 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11138 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11140 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11141 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 ac_check_lib_save_LIBS=$LIBS
11145 LIBS="-lXft $XFT_LIBS $LIBS"
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11148
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11152 #ifdef __cplusplus
11153 extern "C"
11154 #endif
11155 char XftFontOpen ();
11156 int
11157 main ()
11158 {
11159 return XftFontOpen ();
11160 ;
11161 return 0;
11162 }
11163 _ACEOF
11164 if ac_fn_c_try_link "$LINENO"; then :
11165 ac_cv_lib_Xft_XftFontOpen=yes
11166 else
11167 ac_cv_lib_Xft_XftFontOpen=no
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext \
11170 conftest$ac_exeext conftest.$ac_ext
11171 LIBS=$ac_check_lib_save_LIBS
11172 fi
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11174 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11175 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11176 HAVE_XFT=yes
11177 fi
11178
11179 fi
11180
11181
11182
11183 if test "${HAVE_XFT}" = "yes"; then
11184
11185 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11186
11187
11188 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11189 else
11190 CPPFLAGS="$OLD_CPPFLAGS"
11191 CFLAGS="$OLD_CFLAGS"
11192 LIBS="$OLD_LIBS"
11193 fi # "${HAVE_XFT}" = "yes"
11194 fi # "$HAVE_XFT" != no
11195 fi # "x${with_xft}" != "xno"
11196
11197 if test "$HAVE_XFT" != "yes"; then
11198 HAVE_XFT=no
11199 fi
11200
11201
11202 HAVE_FREETYPE=no
11203 ## We used to allow building with FreeType and without Xft.
11204 ## However, the ftx font backend driver is not in good shape.
11205 if test "${HAVE_XFT}" = "yes"; then
11206 HAVE_FREETYPE=yes
11207 FONTCONFIG_CFLAGS=
11208 FONTCONFIG_LIBS=
11209 fi
11210
11211 HAVE_LIBOTF=no
11212 if test "${HAVE_FREETYPE}" = "yes"; then
11213
11214 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11215
11216 if test "${with_libotf}" != "no"; then
11217
11218 succeeded=no
11219
11220 # Extract the first word of "pkg-config", so it can be a program name with args.
11221 set dummy pkg-config; ac_word=$2
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223 $as_echo_n "checking for $ac_word... " >&6; }
11224 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 case $PKG_CONFIG in
11228 [\\/]* | ?:[\\/]*)
11229 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11230 ;;
11231 *)
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11234 do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11242 fi
11243 done
11244 done
11245 IFS=$as_save_IFS
11246
11247 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11248 ;;
11249 esac
11250 fi
11251 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11252 if test -n "$PKG_CONFIG"; then
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11254 $as_echo "$PKG_CONFIG" >&6; }
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 fi
11259
11260
11261
11262 if test "$PKG_CONFIG" = "no" ; then
11263 HAVE_LIBOTF=no
11264 else
11265 PKG_CONFIG_MIN_VERSION=0.9.0
11266 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11268 $as_echo_n "checking for libotf... " >&6; }
11269
11270 if $PKG_CONFIG --exists "libotf" 2>&5; then
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11272 $as_echo "yes" >&6; }
11273 succeeded=yes
11274
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11276 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11277 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11279 $as_echo "$LIBOTF_CFLAGS" >&6; }
11280
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11282 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11283 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11285 $as_echo "$LIBOTF_LIBS" >&6; }
11286 else
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11289 LIBOTF_CFLAGS=""
11290 LIBOTF_LIBS=""
11291 ## If we have a custom action on failure, don't print errors, but
11292 ## do set a variable so people can do so.
11293 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11294
11295 fi
11296
11297
11298
11299 else
11300 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11301 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11302 fi
11303 fi
11304
11305 if test $succeeded = yes; then
11306 HAVE_LIBOTF=yes
11307 else
11308 HAVE_LIBOTF=no
11309 fi
11310
11311 if test "$HAVE_LIBOTF" = "yes"; then
11312
11313 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11314
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11316 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11317 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-lotf $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char OTF_get_variation_glyphs ();
11332 int
11333 main ()
11334 {
11335 return OTF_get_variation_glyphs ();
11336 ;
11337 return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11342 else
11343 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11350 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11351 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11352 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11353 else
11354 HAVE_OTF_GET_VARIATION_GLYPHS=no
11355 fi
11356
11357 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11358
11359 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11360
11361 fi
11362 fi
11363 fi
11364 fi
11365
11366 HAVE_M17N_FLT=no
11367 if test "${HAVE_LIBOTF}" = yes; then
11368 if test "${with_m17n_flt}" != "no"; then
11369
11370 succeeded=no
11371
11372 # Extract the first word of "pkg-config", so it can be a program name with args.
11373 set dummy pkg-config; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11377 $as_echo_n "(cached) " >&6
11378 else
11379 case $PKG_CONFIG in
11380 [\\/]* | ?:[\\/]*)
11381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11382 ;;
11383 *)
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11386 do
11387 IFS=$as_save_IFS
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11391 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11393 break 2
11394 fi
11395 done
11396 done
11397 IFS=$as_save_IFS
11398
11399 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11400 ;;
11401 esac
11402 fi
11403 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11404 if test -n "$PKG_CONFIG"; then
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11406 $as_echo "$PKG_CONFIG" >&6; }
11407 else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11410 fi
11411
11412
11413
11414 if test "$PKG_CONFIG" = "no" ; then
11415 HAVE_M17N_FLT=no
11416 else
11417 PKG_CONFIG_MIN_VERSION=0.9.0
11418 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11420 $as_echo_n "checking for m17n-flt... " >&6; }
11421
11422 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424 $as_echo "yes" >&6; }
11425 succeeded=yes
11426
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11428 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11429 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11431 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11432
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11434 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11435 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11437 $as_echo "$M17N_FLT_LIBS" >&6; }
11438 else
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 $as_echo "no" >&6; }
11441 M17N_FLT_CFLAGS=""
11442 M17N_FLT_LIBS=""
11443 ## If we have a custom action on failure, don't print errors, but
11444 ## do set a variable so people can do so.
11445 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11446
11447 fi
11448
11449
11450
11451 else
11452 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11453 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11454 fi
11455 fi
11456
11457 if test $succeeded = yes; then
11458 HAVE_M17N_FLT=yes
11459 else
11460 HAVE_M17N_FLT=no
11461 fi
11462
11463 if test "$HAVE_M17N_FLT" = "yes"; then
11464
11465 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11466
11467 fi
11468 fi
11469 fi
11470 else
11471 HAVE_XFT=no
11472 HAVE_FREETYPE=no
11473 HAVE_LIBOTF=no
11474 HAVE_M17N_FLT=no
11475 fi
11476
11477 ### End of font-backend (under X11) section.
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488 ### Use -lXpm if available, unless `--with-xpm=no'.
11489 HAVE_XPM=no
11490 LIBXPM=
11491 if test "${HAVE_X11}" = "yes"; then
11492 if test "${with_xpm}" != "no"; then
11493 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11494 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11496 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11497 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-lXpm -lX11 $LIBS"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 char XpmReadFileToPixmap ();
11512 int
11513 main ()
11514 {
11515 return XpmReadFileToPixmap ();
11516 ;
11517 return 0;
11518 }
11519 _ACEOF
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11522 else
11523 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11530 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11531 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11532 HAVE_XPM=yes
11533 fi
11534
11535 fi
11536
11537
11538 if test "${HAVE_XPM}" = "yes"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11540 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 #include "X11/xpm.h"
11544 #ifndef XpmReturnAllocPixels
11545 no_return_alloc_pixels
11546 #endif
11547
11548 _ACEOF
11549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11550 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11551 HAVE_XPM=no
11552 else
11553 HAVE_XPM=yes
11554 fi
11555 rm -f conftest*
11556
11557
11558 if test "${HAVE_XPM}" = "yes"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11560 $as_echo "yes" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 fi
11565 fi
11566 fi
11567
11568 if test "${HAVE_XPM}" = "yes"; then
11569
11570 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11571
11572 LIBXPM=-lXpm
11573 fi
11574 fi
11575
11576
11577 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11578 HAVE_JPEG=no
11579 LIBJPEG=
11580 if test "${HAVE_X11}" = "yes"; then
11581 if test "${with_jpeg}" != "no"; then
11582 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11583 if test "x$ac_cv_header_jerror_h" = xyes; then :
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11585 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11586 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-ljpeg $LIBS"
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char jpeg_destroy_compress ();
11601 int
11602 main ()
11603 {
11604 return jpeg_destroy_compress ();
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 if ac_fn_c_try_link "$LINENO"; then :
11610 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11611 else
11612 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11613 fi
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11617 fi
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11619 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11620 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
11621 HAVE_JPEG=yes
11622 fi
11623
11624 fi
11625
11626
11627 fi
11628
11629 if test "${HAVE_JPEG}" = "yes"; then
11630 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11631
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11634 #include <jpeglib.h>
11635 version=JPEG_LIB_VERSION
11636
11637 _ACEOF
11638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11639 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11640 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11641
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11644 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11645 HAVE_JPEG=no
11646 fi
11647 rm -f conftest*
11648
11649 fi
11650 if test "${HAVE_JPEG}" = "yes"; then
11651 LIBJPEG=-ljpeg
11652 fi
11653 fi
11654
11655
11656 ### Use -lpng if available, unless `--with-png=no'.
11657 HAVE_PNG=no
11658 LIBPNG=
11659 if test "${HAVE_X11}" = "yes"; then
11660 if test "${with_png}" != "no"; then
11661 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11662 # in /usr/include/libpng.
11663 for ac_header in png.h libpng/png.h
11664 do :
11665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11667 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11668 cat >>confdefs.h <<_ACEOF
11669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11670 _ACEOF
11671
11672 fi
11673
11674 done
11675
11676 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11678 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11679 if ${ac_cv_lib_png_png_get_channels+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 ac_check_lib_save_LIBS=$LIBS
11683 LIBS="-lpng -lz -lm $LIBS"
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11686
11687 /* Override any GCC internal prototype to avoid an error.
11688 Use char because int might match the return type of a GCC
11689 builtin and then its argument prototype would still apply. */
11690 #ifdef __cplusplus
11691 extern "C"
11692 #endif
11693 char png_get_channels ();
11694 int
11695 main ()
11696 {
11697 return png_get_channels ();
11698 ;
11699 return 0;
11700 }
11701 _ACEOF
11702 if ac_fn_c_try_link "$LINENO"; then :
11703 ac_cv_lib_png_png_get_channels=yes
11704 else
11705 ac_cv_lib_png_png_get_channels=no
11706 fi
11707 rm -f core conftest.err conftest.$ac_objext \
11708 conftest$ac_exeext conftest.$ac_ext
11709 LIBS=$ac_check_lib_save_LIBS
11710 fi
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11712 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11713 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
11714 HAVE_PNG=yes
11715 fi
11716
11717 fi
11718 fi
11719
11720 if test "${HAVE_PNG}" = "yes"; then
11721
11722 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11723
11724 LIBPNG="-lpng -lz -lm"
11725 fi
11726 fi
11727
11728
11729 ### Use -ltiff if available, unless `--with-tiff=no'.
11730 HAVE_TIFF=no
11731 LIBTIFF=
11732 if test "${HAVE_X11}" = "yes"; then
11733 if test "${with_tiff}" != "no"; then
11734 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11735 if test "x$ac_cv_header_tiffio_h" = xyes; then :
11736 tifflibs="-lz -lm"
11737 # At least one tiff package requires the jpeg library.
11738 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11740 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11741 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 ac_check_lib_save_LIBS=$LIBS
11745 LIBS="-ltiff $tifflibs $LIBS"
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11748
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 char TIFFGetVersion ();
11756 int
11757 main ()
11758 {
11759 return TIFFGetVersion ();
11760 ;
11761 return 0;
11762 }
11763 _ACEOF
11764 if ac_fn_c_try_link "$LINENO"; then :
11765 ac_cv_lib_tiff_TIFFGetVersion=yes
11766 else
11767 ac_cv_lib_tiff_TIFFGetVersion=no
11768 fi
11769 rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771 LIBS=$ac_check_lib_save_LIBS
11772 fi
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11774 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11775 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
11776 HAVE_TIFF=yes
11777 fi
11778
11779 fi
11780
11781
11782 fi
11783
11784 if test "${HAVE_TIFF}" = "yes"; then
11785
11786 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11787
11788 LIBTIFF=-ltiff
11789 fi
11790 fi
11791
11792
11793 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11794 HAVE_GIF=no
11795 LIBGIF=
11796 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11797 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11798 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
11799 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11800 # Earlier versions can crash Emacs.
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11802 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11803 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
11804 $as_echo_n "(cached) " >&6
11805 else
11806 ac_check_lib_save_LIBS=$LIBS
11807 LIBS="-lgif $LIBS"
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11810
11811 /* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 char EGifPutExtensionLast ();
11818 int
11819 main ()
11820 {
11821 return EGifPutExtensionLast ();
11822 ;
11823 return 0;
11824 }
11825 _ACEOF
11826 if ac_fn_c_try_link "$LINENO"; then :
11827 ac_cv_lib_gif_EGifPutExtensionLast=yes
11828 else
11829 ac_cv_lib_gif_EGifPutExtensionLast=no
11830 fi
11831 rm -f core conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11833 LIBS=$ac_check_lib_save_LIBS
11834 fi
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11836 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
11837 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
11838 HAVE_GIF=yes
11839 else
11840 HAVE_GIF=maybe
11841 fi
11842
11843 fi
11844
11845
11846
11847 if test "$HAVE_GIF" = yes; then
11848 LIBGIF=-lgif
11849 elif test "$HAVE_GIF" = maybe; then
11850 # If gif_lib.h but no libgif, try libungif.
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
11852 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
11853 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
11854 $as_echo_n "(cached) " >&6
11855 else
11856 ac_check_lib_save_LIBS=$LIBS
11857 LIBS="-lungif $LIBS"
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860
11861 /* Override any GCC internal prototype to avoid an error.
11862 Use char because int might match the return type of a GCC
11863 builtin and then its argument prototype would still apply. */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 char EGifPutExtensionLast ();
11868 int
11869 main ()
11870 {
11871 return EGifPutExtensionLast ();
11872 ;
11873 return 0;
11874 }
11875 _ACEOF
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11878 else
11879 ac_cv_lib_ungif_EGifPutExtensionLast=no
11880 fi
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11883 LIBS=$ac_check_lib_save_LIBS
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11886 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
11887 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
11888 HAVE_GIF=yes
11889 else
11890 HAVE_GIF=no
11891 fi
11892
11893 test "$HAVE_GIF" = yes && LIBGIF=-lungif
11894 fi
11895
11896 if test "${HAVE_GIF}" = "yes"; then
11897
11898 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11899
11900 fi
11901 fi
11902
11903
11904 if test "${HAVE_X11}" = "yes"; then
11905 MISSING=""
11906 WITH_NO=""
11907 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11908 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11909 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11910 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11911 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11912 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11913 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11914 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11915 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11916 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11917
11918 if test "X${MISSING}" != X; then
11919 as_fn_error $? "The following required libraries were not found:
11920 $MISSING
11921 Maybe some development libraries/packages are missing?
11922 If you don't want to link with them give
11923 $WITH_NO
11924 as options to configure" "$LINENO" 5
11925 fi
11926 fi
11927
11928 ### Use -lgpm if available, unless `--with-gpm=no'.
11929 HAVE_GPM=no
11930 LIBGPM=
11931 MOUSE_SUPPORT=
11932 if test "${with_gpm}" != "no"; then
11933 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11934 if test "x$ac_cv_header_gpm_h" = xyes; then :
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11936 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11937 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 ac_check_lib_save_LIBS=$LIBS
11941 LIBS="-lgpm $LIBS"
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char Gpm_Open ();
11952 int
11953 main ()
11954 {
11955 return Gpm_Open ();
11956 ;
11957 return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961 ac_cv_lib_gpm_Gpm_Open=yes
11962 else
11963 ac_cv_lib_gpm_Gpm_Open=no
11964 fi
11965 rm -f core conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_check_lib_save_LIBS
11968 fi
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11970 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11971 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
11972 HAVE_GPM=yes
11973 fi
11974
11975 fi
11976
11977
11978
11979 if test "${HAVE_GPM}" = "yes"; then
11980
11981 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11982
11983 LIBGPM=-lgpm
11984 ## May be reset below.
11985 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11986 fi
11987 fi
11988
11989
11990 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11991 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
11992
11993 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11994
11995 fi
11996
11997
11998
11999 C_SWITCH_X_SYSTEM=
12000 ### Use NeXTstep API to implement GUI.
12001 if test "${HAVE_NS}" = "yes"; then
12002
12003 $as_echo "#define HAVE_NS 1" >>confdefs.h
12004
12005 if test "${NS_IMPL_COCOA}" = "yes"; then
12006
12007 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12008
12009 GNU_OBJC_CFLAGS=
12010 fi
12011 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12012
12013 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12014
12015 # See also .m.o rule in Makefile.in */
12016 # FIXME: are all these flags really needed? Document here why. */
12017 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12018 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12019 fi
12020 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12021
12022 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12023
12024 fi
12025 # We also have mouse menus.
12026 HAVE_MENUS=yes
12027 OTHER_FILES=ns-app
12028 fi
12029
12030
12031 ### Use session management (-lSM -lICE) if available
12032 HAVE_X_SM=no
12033 LIBXSM=
12034 if test "${HAVE_X11}" = "yes"; then
12035 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12036 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12038 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12039 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lSM -lICE $LIBS"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char SmcOpenConnection ();
12054 int
12055 main ()
12056 {
12057 return SmcOpenConnection ();
12058 ;
12059 return 0;
12060 }
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_lib_SM_SmcOpenConnection=yes
12064 else
12065 ac_cv_lib_SM_SmcOpenConnection=no
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12072 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12073 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12074 HAVE_X_SM=yes
12075 fi
12076
12077 fi
12078
12079
12080
12081 if test "${HAVE_X_SM}" = "yes"; then
12082
12083 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12084
12085 LIBXSM="-lSM -lICE"
12086 case "$LIBS" in
12087 *-lSM*) ;;
12088 *) LIBS="$LIBXSM $LIBS" ;;
12089 esac
12090 fi
12091 fi
12092
12093
12094 ### Use libxml (-lxml2) if available
12095 if test "${with_xml2}" != "no"; then
12096 ### I'm not sure what the version number should be, so I just guessed.
12097
12098 succeeded=no
12099
12100 # Extract the first word of "pkg-config", so it can be a program name with args.
12101 set dummy pkg-config; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 case $PKG_CONFIG in
12108 [\\/]* | ?:[\\/]*)
12109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12110 ;;
12111 *)
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12114 do
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12122 fi
12123 done
12124 done
12125 IFS=$as_save_IFS
12126
12127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12128 ;;
12129 esac
12130 fi
12131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12132 if test -n "$PKG_CONFIG"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12134 $as_echo "$PKG_CONFIG" >&6; }
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12138 fi
12139
12140
12141
12142 if test "$PKG_CONFIG" = "no" ; then
12143 HAVE_LIBXML2=no
12144 else
12145 PKG_CONFIG_MIN_VERSION=0.9.0
12146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
12148 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
12149
12150 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12153 succeeded=yes
12154
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12156 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12157 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12159 $as_echo "$LIBXML2_CFLAGS" >&6; }
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12162 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12163 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12165 $as_echo "$LIBXML2_LIBS" >&6; }
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12169 LIBXML2_CFLAGS=""
12170 LIBXML2_LIBS=""
12171 ## If we have a custom action on failure, don't print errors, but
12172 ## do set a variable so people can do so.
12173 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
12174
12175 fi
12176
12177
12178
12179 else
12180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12182 fi
12183 fi
12184
12185 if test $succeeded = yes; then
12186 HAVE_LIBXML2=yes
12187 else
12188 HAVE_LIBXML2=no
12189 fi
12190
12191 if test "${HAVE_LIBXML2}" = "yes"; then
12192 LIBS="$LIBXML2_LIBS $LIBS"
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12194 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12195 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-lxml2 $LIBS"
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12206 #ifdef __cplusplus
12207 extern "C"
12208 #endif
12209 char htmlReadMemory ();
12210 int
12211 main ()
12212 {
12213 return htmlReadMemory ();
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_lib_xml2_htmlReadMemory=yes
12220 else
12221 ac_cv_lib_xml2_htmlReadMemory=no
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12228 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12229 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12230 HAVE_LIBXML2=yes
12231 else
12232 HAVE_LIBXML2=no
12233 fi
12234
12235 if test "${HAVE_LIBXML2}" = "yes"; then
12236
12237 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12238
12239 else
12240 LIBXML2_LIBS=""
12241 LIBXML2_CFLAGS=""
12242 fi
12243 fi
12244 fi
12245
12246
12247
12248 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12250 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12251 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256 #include <netdb.h>
12257 int
12258 main ()
12259 {
12260 return h_errno;
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"; then :
12266 emacs_cv_netdb_declares_h_errno=yes
12267 else
12268 emacs_cv_netdb_declares_h_errno=no
12269 fi
12270 rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12274 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12275 if test $emacs_cv_netdb_declares_h_errno = yes; then
12276
12277 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12278
12279 fi
12280
12281 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12282 if test "x$ac_cv_type_size_t" = xyes; then :
12283
12284 else
12285
12286 cat >>confdefs.h <<_ACEOF
12287 #define size_t unsigned int
12288 _ACEOF
12289
12290 fi
12291
12292 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12293 # for constant arguments. Useless!
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12295 $as_echo_n "checking for working alloca.h... " >&6; }
12296 if ${ac_cv_working_alloca_h+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301 #include <alloca.h>
12302 int
12303 main ()
12304 {
12305 char *p = (char *) alloca (2 * sizeof (int));
12306 if (p) return 0;
12307 ;
12308 return 0;
12309 }
12310 _ACEOF
12311 if ac_fn_c_try_link "$LINENO"; then :
12312 ac_cv_working_alloca_h=yes
12313 else
12314 ac_cv_working_alloca_h=no
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12320 $as_echo "$ac_cv_working_alloca_h" >&6; }
12321 if test $ac_cv_working_alloca_h = yes; then
12322
12323 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12324
12325 fi
12326
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12328 $as_echo_n "checking for alloca... " >&6; }
12329 if ${ac_cv_func_alloca_works+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334 #ifdef __GNUC__
12335 # define alloca __builtin_alloca
12336 #else
12337 # ifdef _MSC_VER
12338 # include <malloc.h>
12339 # define alloca _alloca
12340 # else
12341 # ifdef HAVE_ALLOCA_H
12342 # include <alloca.h>
12343 # else
12344 # ifdef _AIX
12345 #pragma alloca
12346 # else
12347 # ifndef alloca /* predefined by HP cc +Olibcalls */
12348 void *alloca (size_t);
12349 # endif
12350 # endif
12351 # endif
12352 # endif
12353 #endif
12354
12355 int
12356 main ()
12357 {
12358 char *p = (char *) alloca (1);
12359 if (p) return 0;
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 if ac_fn_c_try_link "$LINENO"; then :
12365 ac_cv_func_alloca_works=yes
12366 else
12367 ac_cv_func_alloca_works=no
12368 fi
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 fi
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12373 $as_echo "$ac_cv_func_alloca_works" >&6; }
12374
12375 if test $ac_cv_func_alloca_works = yes; then
12376
12377 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12378
12379 else
12380 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12381 # that cause trouble. Some versions do not even contain alloca or
12382 # contain a buggy version. If you still want to use their alloca,
12383 # use ar to extract alloca.o from them instead of compiling alloca.c.
12384
12385 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12386
12387 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12388
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12391 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12392 if ${ac_cv_os_cray+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 #if defined CRAY && ! defined CRAY2
12398 webecray
12399 #else
12400 wenotbecray
12401 #endif
12402
12403 _ACEOF
12404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12405 $EGREP "webecray" >/dev/null 2>&1; then :
12406 ac_cv_os_cray=yes
12407 else
12408 ac_cv_os_cray=no
12409 fi
12410 rm -f conftest*
12411
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12414 $as_echo "$ac_cv_os_cray" >&6; }
12415 if test $ac_cv_os_cray = yes; then
12416 for ac_func in _getb67 GETB67 getb67; do
12417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12419 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12420
12421 cat >>confdefs.h <<_ACEOF
12422 #define CRAY_STACKSEG_END $ac_func
12423 _ACEOF
12424
12425 break
12426 fi
12427
12428 done
12429 fi
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12432 $as_echo_n "checking stack direction for C alloca... " >&6; }
12433 if ${ac_cv_c_stack_direction+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 if test "$cross_compiling" = yes; then :
12437 ac_cv_c_stack_direction=0
12438 else
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 $ac_includes_default
12442 int
12443 find_stack_direction ()
12444 {
12445 static char *addr = 0;
12446 auto char dummy;
12447 if (addr == 0)
12448 {
12449 addr = &dummy;
12450 return find_stack_direction ();
12451 }
12452 else
12453 return (&dummy > addr) ? 1 : -1;
12454 }
12455
12456 int
12457 main ()
12458 {
12459 return find_stack_direction () < 0;
12460 }
12461 _ACEOF
12462 if ac_fn_c_try_run "$LINENO"; then :
12463 ac_cv_c_stack_direction=1
12464 else
12465 ac_cv_c_stack_direction=-1
12466 fi
12467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12468 conftest.$ac_objext conftest.beam conftest.$ac_ext
12469 fi
12470
12471 fi
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12473 $as_echo "$ac_cv_c_stack_direction" >&6; }
12474 cat >>confdefs.h <<_ACEOF
12475 #define STACK_DIRECTION $ac_cv_c_stack_direction
12476 _ACEOF
12477
12478
12479 fi
12480
12481
12482 if test x"$ac_cv_func_alloca_works" != xyes; then
12483 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12484 fi
12485
12486 # fmod, logb, and frexp are found in -lm on most systems.
12487 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12489 $as_echo_n "checking for sqrt in -lm... " >&6; }
12490 if ${ac_cv_lib_m_sqrt+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493 ac_check_lib_save_LIBS=$LIBS
12494 LIBS="-lm $LIBS"
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497
12498 /* Override any GCC internal prototype to avoid an error.
12499 Use char because int might match the return type of a GCC
12500 builtin and then its argument prototype would still apply. */
12501 #ifdef __cplusplus
12502 extern "C"
12503 #endif
12504 char sqrt ();
12505 int
12506 main ()
12507 {
12508 return sqrt ();
12509 ;
12510 return 0;
12511 }
12512 _ACEOF
12513 if ac_fn_c_try_link "$LINENO"; then :
12514 ac_cv_lib_m_sqrt=yes
12515 else
12516 ac_cv_lib_m_sqrt=no
12517 fi
12518 rm -f core conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext conftest.$ac_ext
12520 LIBS=$ac_check_lib_save_LIBS
12521 fi
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12523 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12524 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12525 cat >>confdefs.h <<_ACEOF
12526 #define HAVE_LIBM 1
12527 _ACEOF
12528
12529 LIBS="-lm $LIBS"
12530
12531 fi
12532
12533
12534 # Check for mail-locking functions in a "mail" library. Probably this should
12535 # have the same check as for liblockfile below.
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12537 $as_echo_n "checking for maillock in -lmail... " >&6; }
12538 if ${ac_cv_lib_mail_maillock+:} false; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-lmail $LIBS"
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12549 #ifdef __cplusplus
12550 extern "C"
12551 #endif
12552 char maillock ();
12553 int
12554 main ()
12555 {
12556 return maillock ();
12557 ;
12558 return 0;
12559 }
12560 _ACEOF
12561 if ac_fn_c_try_link "$LINENO"; then :
12562 ac_cv_lib_mail_maillock=yes
12563 else
12564 ac_cv_lib_mail_maillock=no
12565 fi
12566 rm -f core conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12569 fi
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12571 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12572 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
12573 have_mail=yes
12574 else
12575 have_mail=no
12576 fi
12577
12578 if test $have_mail = yes; then
12579 LIBS_MAIL=-lmail
12580 LIBS="$LIBS_MAIL $LIBS"
12581
12582 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12583
12584 else
12585 LIBS_MAIL=
12586 fi
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12588 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12589 if ${ac_cv_lib_lockfile_maillock+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 ac_check_lib_save_LIBS=$LIBS
12593 LIBS="-llockfile $LIBS"
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 char maillock ();
12604 int
12605 main ()
12606 {
12607 return maillock ();
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 if ac_fn_c_try_link "$LINENO"; then :
12613 ac_cv_lib_lockfile_maillock=yes
12614 else
12615 ac_cv_lib_lockfile_maillock=no
12616 fi
12617 rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12619 LIBS=$ac_check_lib_save_LIBS
12620 fi
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12622 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12623 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
12624 have_lockfile=yes
12625 else
12626 have_lockfile=no
12627 fi
12628
12629 if test $have_lockfile = yes; then
12630 LIBS_MAIL=-llockfile
12631 LIBS="$LIBS_MAIL $LIBS"
12632
12633 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12634
12635 else
12636 # If we have the shared liblockfile, assume we must use it for mail
12637 # locking (e.g. Debian). If we couldn't link against liblockfile
12638 # (no liblockfile.a installed), ensure that we don't need to.
12639 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12640 set dummy liblockfile.so; ac_word=$2
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12642 $as_echo_n "checking for $ac_word... " >&6; }
12643 if ${ac_cv_prog_liblockfile+:} false; then :
12644 $as_echo_n "(cached) " >&6
12645 else
12646 if test -n "$liblockfile"; then
12647 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12648 else
12649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12651 for as_dir in $as_dummy
12652 do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657 ac_cv_prog_liblockfile="yes"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 break 2
12660 fi
12661 done
12662 done
12663 IFS=$as_save_IFS
12664
12665 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12666 fi
12667 fi
12668 liblockfile=$ac_cv_prog_liblockfile
12669 if test -n "$liblockfile"; then
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12671 $as_echo "$liblockfile" >&6; }
12672 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12675 fi
12676
12677
12678 if test $ac_cv_prog_liblockfile = yes; then
12679 as_fn_error $? "Shared liblockfile found but can't link against it.
12680 This probably means that movemail could lose mail.
12681 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12682 fi
12683 fi
12684 for ac_func in touchlock
12685 do :
12686 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12687 if test "x$ac_cv_func_touchlock" = xyes; then :
12688 cat >>confdefs.h <<_ACEOF
12689 #define HAVE_TOUCHLOCK 1
12690 _ACEOF
12691
12692 fi
12693 done
12694
12695 for ac_header in maillock.h
12696 do :
12697 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12698 if test "x$ac_cv_header_maillock_h" = xyes; then :
12699 cat >>confdefs.h <<_ACEOF
12700 #define HAVE_MAILLOCK_H 1
12701 _ACEOF
12702
12703 fi
12704
12705 done
12706
12707
12708
12709 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12710 ## interlock access to the mail spool. The alternative is a lock file named
12711 ## /usr/spool/mail/$USER.lock.
12712 mail_lock=no
12713 case "$opsys" in
12714 aix4-2) mail_lock="lockf" ;;
12715
12716 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12717
12718 ## On GNU/Linux systems, both methods are used by various mail programs.
12719 ## I assume most people are using newer mailers that have heard of flock.
12720 ## Change this if you need to.
12721 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12722 ## configure gets the right answers, and that means *NOT* using flock.
12723 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12724 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12725 ## Debian maintainer hasn't provided a clean fix for Emacs.
12726 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12727 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12728 ## correct logic. -- fx
12729 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12730 ## liblockfile is a Free Software replacement for libmail, used on
12731 ## Debian systems and elsewhere. -rfr.
12732 gnu-*)
12733 mail_lock="flock"
12734 if test $have_mail = yes || test $have_lockfile = yes; then
12735 test $ac_cv_header_maillock_h = yes && mail_lock=no
12736 fi
12737 ;;
12738 esac
12739
12740 BLESSMAIL_TARGET=
12741 case "$mail_lock" in
12742 flock)
12743 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12744 ;;
12745
12746 lockf)
12747 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12748 ;;
12749
12750 *) BLESSMAIL_TARGET="need-blessmail" ;;
12751 esac
12752
12753
12754
12755 for ac_func in gethostname getdomainname dup2 \
12756 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12757 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12758 strerror fpathconf select euidaccess getpagesize tzset setlocale \
12759 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12760 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12761 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12762 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12763 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12764 cfmakeraw cfsetspeed isnan copysign __executable_start
12765 do :
12766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12768 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12769 cat >>confdefs.h <<_ACEOF
12770 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12771 _ACEOF
12772
12773 fi
12774 done
12775
12776
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12778 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12779 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784
12785 int
12786 main ()
12787 {
12788 __builtin_unwind_init ();
12789 ;
12790 return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_c_try_link "$LINENO"; then :
12794 emacs_cv_func___builtin_unwind_init=yes
12795 else
12796 emacs_cv_func___builtin_unwind_init=no
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800 fi
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12802 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12803 if test $emacs_cv_func___builtin_unwind_init = yes; then
12804
12805 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12806
12807 fi
12808
12809 for ac_header in sys/un.h
12810 do :
12811 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12812 if test "x$ac_cv_header_sys_un_h" = xyes; then :
12813 cat >>confdefs.h <<_ACEOF
12814 #define HAVE_SYS_UN_H 1
12815 _ACEOF
12816
12817 fi
12818
12819 done
12820
12821
12822 ac_have_func=no # yes means we've found a way to get the load average.
12823
12824 # Make sure getloadavg.c is where it belongs, at configure-time.
12825 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12826 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12827
12828 ac_save_LIBS=$LIBS
12829
12830 # Check for getloadavg, but be sure not to touch the cache variable.
12831 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12832 if test "x$ac_cv_func_getloadavg" = xyes; then :
12833 exit 0
12834 else
12835 exit 1
12836 fi
12837 ) && ac_have_func=yes
12838
12839 # On HPUX9, an unprivileged user can get load averages through this function.
12840 for ac_func in pstat_getdynamic
12841 do :
12842 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12843 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
12844 cat >>confdefs.h <<_ACEOF
12845 #define HAVE_PSTAT_GETDYNAMIC 1
12846 _ACEOF
12847
12848 fi
12849 done
12850
12851
12852 # Solaris has libkstat which does not require root.
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12854 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12855 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 ac_check_lib_save_LIBS=$LIBS
12859 LIBS="-lkstat $LIBS"
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 char kstat_open ();
12870 int
12871 main ()
12872 {
12873 return kstat_open ();
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 ac_cv_lib_kstat_kstat_open=yes
12880 else
12881 ac_cv_lib_kstat_kstat_open=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12886 fi
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12888 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12889 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12890 cat >>confdefs.h <<_ACEOF
12891 #define HAVE_LIBKSTAT 1
12892 _ACEOF
12893
12894 LIBS="-lkstat $LIBS"
12895
12896 fi
12897
12898 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12899
12900 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12901 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12902 # to get the right answer into the cache.
12903 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12904 if test $ac_have_func = no; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12906 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12907 if ${ac_cv_lib_elf_elf_begin+:} false; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 ac_check_lib_save_LIBS=$LIBS
12911 LIBS="-lelf $LIBS"
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914
12915 /* Override any GCC internal prototype to avoid an error.
12916 Use char because int might match the return type of a GCC
12917 builtin and then its argument prototype would still apply. */
12918 #ifdef __cplusplus
12919 extern "C"
12920 #endif
12921 char elf_begin ();
12922 int
12923 main ()
12924 {
12925 return elf_begin ();
12926 ;
12927 return 0;
12928 }
12929 _ACEOF
12930 if ac_fn_c_try_link "$LINENO"; then :
12931 ac_cv_lib_elf_elf_begin=yes
12932 else
12933 ac_cv_lib_elf_elf_begin=no
12934 fi
12935 rm -f core conftest.err conftest.$ac_objext \
12936 conftest$ac_exeext conftest.$ac_ext
12937 LIBS=$ac_check_lib_save_LIBS
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12940 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12941 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
12942 LIBS="-lelf $LIBS"
12943 fi
12944
12945 fi
12946 if test $ac_have_func = no; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12948 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12949 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 ac_check_lib_save_LIBS=$LIBS
12953 LIBS="-lkvm $LIBS"
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12956
12957 /* Override any GCC internal prototype to avoid an error.
12958 Use char because int might match the return type of a GCC
12959 builtin and then its argument prototype would still apply. */
12960 #ifdef __cplusplus
12961 extern "C"
12962 #endif
12963 char kvm_open ();
12964 int
12965 main ()
12966 {
12967 return kvm_open ();
12968 ;
12969 return 0;
12970 }
12971 _ACEOF
12972 if ac_fn_c_try_link "$LINENO"; then :
12973 ac_cv_lib_kvm_kvm_open=yes
12974 else
12975 ac_cv_lib_kvm_kvm_open=no
12976 fi
12977 rm -f core conftest.err conftest.$ac_objext \
12978 conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12982 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12983 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
12984 LIBS="-lkvm $LIBS"
12985 fi
12986
12987 # Check for the 4.4BSD definition of getloadavg.
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12989 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12990 if ${ac_cv_lib_util_getloadavg+:} false; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 ac_check_lib_save_LIBS=$LIBS
12994 LIBS="-lutil $LIBS"
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12997
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char getloadavg ();
13005 int
13006 main ()
13007 {
13008 return getloadavg ();
13009 ;
13010 return 0;
13011 }
13012 _ACEOF
13013 if ac_fn_c_try_link "$LINENO"; then :
13014 ac_cv_lib_util_getloadavg=yes
13015 else
13016 ac_cv_lib_util_getloadavg=no
13017 fi
13018 rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13021 fi
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13023 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13024 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
13025 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13026 fi
13027
13028 fi
13029
13030 if test $ac_have_func = no; then
13031 # There is a commonly available library for RS/6000 AIX.
13032 # Since it is not a standard part of AIX, it might be installed locally.
13033 ac_getloadavg_LIBS=$LIBS
13034 LIBS="-L/usr/local/lib $LIBS"
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13036 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13037 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 ac_check_lib_save_LIBS=$LIBS
13041 LIBS="-lgetloadavg $LIBS"
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13048 #ifdef __cplusplus
13049 extern "C"
13050 #endif
13051 char getloadavg ();
13052 int
13053 main ()
13054 {
13055 return getloadavg ();
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 if ac_fn_c_try_link "$LINENO"; then :
13061 ac_cv_lib_getloadavg_getloadavg=yes
13062 else
13063 ac_cv_lib_getloadavg_getloadavg=no
13064 fi
13065 rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS=$ac_check_lib_save_LIBS
13068 fi
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13070 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13071 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
13072 LIBS="-lgetloadavg $LIBS"
13073 else
13074 LIBS=$ac_getloadavg_LIBS
13075 fi
13076
13077 fi
13078
13079 # Make sure it is really in the library, if we think we found it,
13080 # otherwise set up the replacement function.
13081 for ac_func in getloadavg
13082 do :
13083 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13084 if test "x$ac_cv_func_getloadavg" = xyes; then :
13085 cat >>confdefs.h <<_ACEOF
13086 #define HAVE_GETLOADAVG 1
13087 _ACEOF
13088
13089 else
13090 case " $LIBOBJS " in
13091 *" getloadavg.$ac_objext "* ) ;;
13092 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13093 ;;
13094 esac
13095
13096
13097 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13098
13099 # Figure out what our getloadavg.c needs.
13100 ac_have_func=no
13101 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13102 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
13103 ac_have_func=yes
13104
13105 $as_echo "#define DGUX 1" >>confdefs.h
13106
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13108 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13109 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 ac_check_lib_save_LIBS=$LIBS
13113 LIBS="-ldgc $LIBS"
13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13116
13117 /* Override any GCC internal prototype to avoid an error.
13118 Use char because int might match the return type of a GCC
13119 builtin and then its argument prototype would still apply. */
13120 #ifdef __cplusplus
13121 extern "C"
13122 #endif
13123 char dg_sys_info ();
13124 int
13125 main ()
13126 {
13127 return dg_sys_info ();
13128 ;
13129 return 0;
13130 }
13131 _ACEOF
13132 if ac_fn_c_try_link "$LINENO"; then :
13133 ac_cv_lib_dgc_dg_sys_info=yes
13134 else
13135 ac_cv_lib_dgc_dg_sys_info=no
13136 fi
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139 LIBS=$ac_check_lib_save_LIBS
13140 fi
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13142 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13143 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_LIBDGC 1
13146 _ACEOF
13147
13148 LIBS="-ldgc $LIBS"
13149
13150 fi
13151
13152 fi
13153
13154
13155
13156 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13157 if test "x$ac_cv_header_locale_h" = xyes; then :
13158
13159 fi
13160
13161
13162 for ac_func in setlocale
13163 do :
13164 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13165 if test "x$ac_cv_func_setlocale" = xyes; then :
13166 cat >>confdefs.h <<_ACEOF
13167 #define HAVE_SETLOCALE 1
13168 _ACEOF
13169
13170 fi
13171 done
13172
13173
13174 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13175 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13176 # Irix 4.0.5F has the header but not the library.
13177 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13178 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13179 ac_have_func=yes
13180
13181 $as_echo "#define SVR4 1" >>confdefs.h
13182
13183 fi
13184
13185 if test $ac_have_func = no; then
13186 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13187 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
13188 ac_have_func=yes
13189
13190 $as_echo "#define UMAX 1" >>confdefs.h
13191
13192
13193 $as_echo "#define UMAX4_3 1" >>confdefs.h
13194
13195 fi
13196
13197
13198 fi
13199
13200 if test $ac_have_func = no; then
13201 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13202 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
13203 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13204
13205 fi
13206
13207
13208 fi
13209
13210 if test $ac_have_func = no; then
13211 for ac_header in mach/mach.h
13212 do :
13213 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13214 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_MACH_MACH_H 1
13217 _ACEOF
13218
13219 fi
13220
13221 done
13222
13223 fi
13224
13225 for ac_header in nlist.h
13226 do :
13227 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13228 if test "x$ac_cv_header_nlist_h" = xyes; then :
13229 cat >>confdefs.h <<_ACEOF
13230 #define HAVE_NLIST_H 1
13231 _ACEOF
13232 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13233 "
13234 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
13235
13236 cat >>confdefs.h <<_ACEOF
13237 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13238 _ACEOF
13239
13240
13241 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13242
13243 fi
13244
13245
13246 fi
13247
13248 done
13249
13250 fi
13251 done
13252
13253
13254 # Some definitions of getloadavg require that the program be installed setgid.
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13256 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13257 if ${ac_cv_func_getloadavg_setgid+:} false; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13263 #ifdef LDAV_PRIVILEGED
13264 Yowza Am I SETGID yet
13265 #endif
13266 _ACEOF
13267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13268 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13269 ac_cv_func_getloadavg_setgid=yes
13270 else
13271 ac_cv_func_getloadavg_setgid=no
13272 fi
13273 rm -f conftest*
13274
13275 fi
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13277 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13278 if test $ac_cv_func_getloadavg_setgid = yes; then
13279 NEED_SETGID=true
13280
13281 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13282
13283 else
13284 NEED_SETGID=false
13285 fi
13286
13287 if test $ac_cv_func_getloadavg_setgid = yes; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13289 $as_echo_n "checking group of /dev/kmem... " >&6; }
13290 if ${ac_cv_group_kmem+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13294 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13295 # If we got an error (system does not support symlinks), try without -L.
13296 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13297 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13298 | sed -ne 's/[ ][ ]*/ /g;
13299 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13300 / /s/.* //;p;'`
13301
13302 fi
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13304 $as_echo "$ac_cv_group_kmem" >&6; }
13305 KMEM_GROUP=$ac_cv_group_kmem
13306 fi
13307 if test "x$ac_save_LIBS" = x; then
13308 GETLOADAVG_LIBS=$LIBS
13309 else
13310 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13311 fi
13312 LIBS=$ac_save_LIBS
13313
13314
13315
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13317 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13318 if ${ac_cv_sys_largefile_source+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 while :; do
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13324 #include <sys/types.h> /* for off_t */
13325 #include <stdio.h>
13326 int
13327 main ()
13328 {
13329 int (*fp) (FILE *, off_t, int) = fseeko;
13330 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13331 ;
13332 return 0;
13333 }
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336 ac_cv_sys_largefile_source=no; break
13337 fi
13338 rm -f core conftest.err conftest.$ac_objext \
13339 conftest$ac_exeext conftest.$ac_ext
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13342 #define _LARGEFILE_SOURCE 1
13343 #include <sys/types.h> /* for off_t */
13344 #include <stdio.h>
13345 int
13346 main ()
13347 {
13348 int (*fp) (FILE *, off_t, int) = fseeko;
13349 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13350 ;
13351 return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_c_try_link "$LINENO"; then :
13355 ac_cv_sys_largefile_source=1; break
13356 fi
13357 rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359 ac_cv_sys_largefile_source=unknown
13360 break
13361 done
13362 fi
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13364 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13365 case $ac_cv_sys_largefile_source in #(
13366 no | unknown) ;;
13367 *)
13368 cat >>confdefs.h <<_ACEOF
13369 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13370 _ACEOF
13371 ;;
13372 esac
13373 rm -rf conftest*
13374
13375 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13376 # in glibc 2.1.3, but that breaks too many other things.
13377 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13378 if test $ac_cv_sys_largefile_source != unknown; then
13379
13380 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13381
13382 fi
13383
13384
13385 # Configure getopt.
13386 # getopt.m4 serial 10
13387
13388 # The getopt module assume you want GNU getopt, with getopt_long etc,
13389 # rather than vanilla POSIX getopt. This means your your code should
13390 # always include <getopt.h> for the getopt prototypes.
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402 # Prerequisites of lib/getopt*.
13403
13404
13405
13406
13407 GETOPT_H=
13408 for ac_header in getopt.h
13409 do :
13410 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13411 if test "x$ac_cv_header_getopt_h" = xyes; then :
13412 cat >>confdefs.h <<_ACEOF
13413 #define HAVE_GETOPT_H 1
13414 _ACEOF
13415
13416 else
13417 GETOPT_H=getopt.h
13418 fi
13419
13420 done
13421
13422 if test -z "$GETOPT_H"; then
13423 for ac_func in getopt_long_only
13424 do :
13425 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13426 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13427 cat >>confdefs.h <<_ACEOF
13428 #define HAVE_GETOPT_LONG_ONLY 1
13429 _ACEOF
13430
13431 else
13432 GETOPT_H=getopt.h
13433 fi
13434 done
13435
13436 fi
13437
13438 if test -z "$GETOPT_H"; then
13439 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
13440 "
13441 if test "x$ac_cv_have_decl_optreset" = xyes; then :
13442 GETOPT_H=getopt.h
13443 fi
13444
13445 fi
13446
13447 if test -z "$GETOPT_H"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13449 $as_echo_n "checking for working GNU getopt function... " >&6; }
13450 if ${gl_cv_func_gnu_getopt+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 if test "$cross_compiling" = yes; then :
13454 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
13455 "
13456 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
13457 gl_cv_func_gnu_getopt=no
13458 else
13459 gl_cv_func_gnu_getopt=yes
13460 fi
13461
13462 else
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #include <getopt.h>
13466 int
13467 main ()
13468 {
13469
13470 char *myargv[3];
13471 myargv[0] = "conftest";
13472 myargv[1] = "-+";
13473 myargv[2] = 0;
13474 return getopt (2, myargv, "+a") != '?';
13475
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_run "$LINENO"; then :
13481 gl_cv_func_gnu_getopt=yes
13482 else
13483 gl_cv_func_gnu_getopt=no
13484 fi
13485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13486 conftest.$ac_objext conftest.beam conftest.$ac_ext
13487 fi
13488
13489 fi
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
13491 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
13492 if test "$gl_cv_func_gnu_getopt" = "no"; then
13493 GETOPT_H=getopt.h
13494 fi
13495 fi
13496
13497
13498
13499 if test -n "$GETOPT_H"; then :
13500
13501
13502 GETOPT_H=getopt.h
13503
13504 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13505
13506
13507
13508 :
13509 GETOPTOBJS='getopt.o getopt1.o'
13510
13511 fi
13512
13513
13514
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13516 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13517 if ${ac_cv_func_getpgrp_void+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 # Use it with a single arg.
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 $ac_includes_default
13524 int
13525 main ()
13526 {
13527 getpgrp (0);
13528 ;
13529 return 0;
13530 }
13531 _ACEOF
13532 if ac_fn_c_try_compile "$LINENO"; then :
13533 ac_cv_func_getpgrp_void=no
13534 else
13535 ac_cv_func_getpgrp_void=yes
13536 fi
13537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13541 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13542 if test $ac_cv_func_getpgrp_void = yes; then
13543
13544 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13545
13546 fi
13547
13548
13549 # Configure gnulib.
13550
13551
13552
13553
13554 LIBC_FATAL_STDERR_=1
13555 export LIBC_FATAL_STDERR_
13556
13557
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13559 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13560 if ${gl_cv_func_c99_strtold+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 /* On HP-UX before 11.23, strtold returns a struct instead of
13566 long double. Reject implementations like that, by requiring
13567 compatibility with the C99 prototype. */
13568 #include <stdlib.h>
13569 static long double (*p) (char const *, char **) = strtold;
13570 static long double
13571 test (char const *nptr, char **endptr)
13572 {
13573 long double r;
13574 r = strtold (nptr, endptr);
13575 return r;
13576 }
13577 int
13578 main ()
13579 {
13580 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13581 ;
13582 return 0;
13583 }
13584 _ACEOF
13585 if ac_fn_c_try_link "$LINENO"; then :
13586 gl_cv_func_c99_strtold=yes
13587 else
13588 gl_cv_func_c99_strtold=no
13589 fi
13590 rm -f core conftest.err conftest.$ac_objext \
13591 conftest$ac_exeext conftest.$ac_ext
13592 fi
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13594 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13595 if test $gl_cv_func_c99_strtold = yes; then
13596
13597 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13598
13599 fi
13600
13601
13602 GNULIB_MKTIME=0;
13603 GNULIB_NANOSLEEP=0;
13604 GNULIB_STRPTIME=0;
13605 GNULIB_TIMEGM=0;
13606 GNULIB_TIME_R=0;
13607 HAVE_DECL_LOCALTIME_R=1;
13608 HAVE_NANOSLEEP=1;
13609 HAVE_STRPTIME=1;
13610 HAVE_TIMEGM=1;
13611 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
13612 REPLACE_MKTIME=GNULIB_PORTCHECK;
13613 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
13614 REPLACE_TIMEGM=GNULIB_PORTCHECK;
13615
13616
13617
13618
13619 for ac_func in $ac_func_list
13620 do :
13621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13624 cat >>confdefs.h <<_ACEOF
13625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13626 _ACEOF
13627
13628 fi
13629 done
13630
13631
13632
13633
13634 gl_cv_c_multiarch=no
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 #ifndef __APPLE_CC__
13638 not a universal capable compiler
13639 #endif
13640 typedef int dummy;
13641
13642 _ACEOF
13643 if ac_fn_c_try_compile "$LINENO"; then :
13644
13645 arch=
13646 prev=
13647 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
13648 if test -n "$prev"; then
13649 case $word in
13650 i?86 | x86_64 | ppc | ppc64)
13651 if test -z "$arch" || test "$arch" = "$word"; then
13652 arch="$word"
13653 else
13654 gl_cv_c_multiarch=yes
13655 fi
13656 ;;
13657 esac
13658 prev=
13659 else
13660 if test "x$word" = "x-arch"; then
13661 prev=arch
13662 fi
13663 fi
13664 done
13665
13666 fi
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 if test $gl_cv_c_multiarch = yes; then
13669
13670 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13671
13672 APPLE_UNIVERSAL_BUILD=1
13673 else
13674 APPLE_UNIVERSAL_BUILD=0
13675 fi
13676
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13679 $as_echo_n "checking for inline... " >&6; }
13680 if ${ac_cv_c_inline+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 ac_cv_c_inline=no
13684 for ac_kw in inline __inline__ __inline; do
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 #ifndef __cplusplus
13688 typedef int foo_t;
13689 static $ac_kw foo_t static_foo () {return 0; }
13690 $ac_kw foo_t foo () {return 0; }
13691 #endif
13692
13693 _ACEOF
13694 if ac_fn_c_try_compile "$LINENO"; then :
13695 ac_cv_c_inline=$ac_kw
13696 fi
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698 test "$ac_cv_c_inline" != no && break
13699 done
13700
13701 fi
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13703 $as_echo "$ac_cv_c_inline" >&6; }
13704
13705 case $ac_cv_c_inline in
13706 inline | yes) ;;
13707 *)
13708 case $ac_cv_c_inline in
13709 no) ac_val=;;
13710 *) ac_val=$ac_cv_c_inline;;
13711 esac
13712 cat >>confdefs.h <<_ACEOF
13713 #ifndef __cplusplus
13714 #define inline $ac_val
13715 #endif
13716 _ACEOF
13717 ;;
13718 esac
13719
13720
13721 REPLACE_NULL=0;
13722 HAVE_WCHAR_T=1;
13723 STDDEF_H='';
13724
13725
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13727 $as_echo_n "checking for wchar_t... " >&6; }
13728 if ${gt_cv_c_wchar_t+:} false; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #include <stddef.h>
13734 wchar_t foo = (wchar_t)'\0';
13735 int
13736 main ()
13737 {
13738
13739 ;
13740 return 0;
13741 }
13742 _ACEOF
13743 if ac_fn_c_try_compile "$LINENO"; then :
13744 gt_cv_c_wchar_t=yes
13745 else
13746 gt_cv_c_wchar_t=no
13747 fi
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 fi
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13751 $as_echo "$gt_cv_c_wchar_t" >&6; }
13752 if test $gt_cv_c_wchar_t = yes; then
13753
13754 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13755
13756 fi
13757
13758
13759
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13761 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13762 if ${gl_cv_have_include_next+:} false; then :
13763 $as_echo_n "(cached) " >&6
13764 else
13765 rm -rf conftestd1a conftestd1b conftestd2
13766 mkdir conftestd1a conftestd1b conftestd2
13767 cat <<EOF > conftestd1a/conftest.h
13768 #define DEFINED_IN_CONFTESTD1
13769 #include_next <conftest.h>
13770 #ifdef DEFINED_IN_CONFTESTD2
13771 int foo;
13772 #else
13773 #error "include_next doesn't work"
13774 #endif
13775 EOF
13776 cat <<EOF > conftestd1b/conftest.h
13777 #define DEFINED_IN_CONFTESTD1
13778 #include <stdio.h>
13779 #include_next <conftest.h>
13780 #ifdef DEFINED_IN_CONFTESTD2
13781 int foo;
13782 #else
13783 #error "include_next doesn't work"
13784 #endif
13785 EOF
13786 cat <<EOF > conftestd2/conftest.h
13787 #ifndef DEFINED_IN_CONFTESTD1
13788 #error "include_next test doesn't work"
13789 #endif
13790 #define DEFINED_IN_CONFTESTD2
13791 EOF
13792 gl_save_CPPFLAGS="$CPPFLAGS"
13793 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 #include <conftest.h>
13797 _ACEOF
13798 if ac_fn_c_try_compile "$LINENO"; then :
13799 gl_cv_have_include_next=yes
13800 else
13801 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #include <conftest.h>
13805 _ACEOF
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807 gl_cv_have_include_next=buggy
13808 else
13809 gl_cv_have_include_next=no
13810 fi
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812
13813 fi
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 CPPFLAGS="$gl_save_CPPFLAGS"
13816 rm -rf conftestd1a conftestd1b conftestd2
13817
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13820 $as_echo "$gl_cv_have_include_next" >&6; }
13821 PRAGMA_SYSTEM_HEADER=
13822 if test $gl_cv_have_include_next = yes; then
13823 INCLUDE_NEXT=include_next
13824 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13825 if test -n "$GCC"; then
13826 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13827 fi
13828 else
13829 if test $gl_cv_have_include_next = buggy; then
13830 INCLUDE_NEXT=include
13831 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13832 else
13833 INCLUDE_NEXT=include
13834 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13835 fi
13836 fi
13837
13838
13839
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13841 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13842 if ${gl_cv_pragma_columns+:} false; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13847
13848 #ifdef __TANDEM
13849 choke me
13850 #endif
13851
13852 _ACEOF
13853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13854 $EGREP "choke me" >/dev/null 2>&1; then :
13855 gl_cv_pragma_columns=yes
13856 else
13857 gl_cv_pragma_columns=no
13858 fi
13859 rm -f conftest*
13860
13861
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13864 $as_echo "$gl_cv_pragma_columns" >&6; }
13865 if test $gl_cv_pragma_columns = yes; then
13866 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13867 else
13868 PRAGMA_COLUMNS=
13869 fi
13870
13871
13872
13873
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13875 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
13876 if ${ac_cv_c_restrict+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 ac_cv_c_restrict=no
13880 # The order here caters to the fact that C++ does not require restrict.
13881 for ac_kw in __restrict __restrict__ _Restrict restrict; do
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884 typedef int * int_ptr;
13885 int foo (int_ptr $ac_kw ip) {
13886 return ip[0];
13887 }
13888 int
13889 main ()
13890 {
13891 int s[1];
13892 int * $ac_kw t = s;
13893 t[0] = 0;
13894 return foo(t)
13895 ;
13896 return 0;
13897 }
13898 _ACEOF
13899 if ac_fn_c_try_compile "$LINENO"; then :
13900 ac_cv_c_restrict=$ac_kw
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903 test "$ac_cv_c_restrict" != no && break
13904 done
13905
13906 fi
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13908 $as_echo "$ac_cv_c_restrict" >&6; }
13909
13910 case $ac_cv_c_restrict in
13911 restrict) ;;
13912 no) $as_echo "#define restrict /**/" >>confdefs.h
13913 ;;
13914 *) cat >>confdefs.h <<_ACEOF
13915 #define restrict $ac_cv_c_restrict
13916 _ACEOF
13917 ;;
13918 esac
13919
13920
13921
13922
13923
13924
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
13927 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
13928 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13933 #include <time.h>
13934
13935 int
13936 main ()
13937 {
13938 static struct timespec x; x.tv_sec = x.tv_nsec;
13939 ;
13940 return 0;
13941 }
13942 _ACEOF
13943 if ac_fn_c_try_compile "$LINENO"; then :
13944 gl_cv_sys_struct_timespec_in_time_h=yes
13945 else
13946 gl_cv_sys_struct_timespec_in_time_h=no
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 fi
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
13951 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
13952
13953 TIME_H_DEFINES_STRUCT_TIMESPEC=0
13954 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
13955 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
13956 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
13957 TIME_H_DEFINES_STRUCT_TIMESPEC=1
13958 else
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
13960 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
13961 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
13962 $as_echo_n "(cached) " >&6
13963 else
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13966 #include <sys/time.h>
13967
13968 int
13969 main ()
13970 {
13971 static struct timespec x; x.tv_sec = x.tv_nsec;
13972 ;
13973 return 0;
13974 }
13975 _ACEOF
13976 if ac_fn_c_try_compile "$LINENO"; then :
13977 gl_cv_sys_struct_timespec_in_sys_time_h=yes
13978 else
13979 gl_cv_sys_struct_timespec_in_sys_time_h=no
13980 fi
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982 fi
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
13984 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
13985 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
13986 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
13987 else
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
13989 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
13990 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 #include <pthread.h>
13996
13997 int
13998 main ()
13999 {
14000 static struct timespec x; x.tv_sec = x.tv_nsec;
14001 ;
14002 return 0;
14003 }
14004 _ACEOF
14005 if ac_fn_c_try_compile "$LINENO"; then :
14006 gl_cv_sys_struct_timespec_in_pthread_h=yes
14007 else
14008 gl_cv_sys_struct_timespec_in_pthread_h=no
14009 fi
14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14011 fi
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14013 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14014 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14015 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14016 fi
14017 fi
14018 fi
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032 if test $gl_cv_have_include_next = yes; then
14033 gl_cv_next_time_h='<'time.h'>'
14034 else
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14036 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14037 if ${gl_cv_next_time_h+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040
14041 if test $ac_cv_header_time_h = yes; then
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 #include <time.h>
14045
14046 _ACEOF
14047 case "$host_os" in
14048 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14049 *) gl_absname_cpp="$ac_cpp" ;;
14050 esac
14051 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14052 sed -n '\#/time.h#{
14053 s#.*"\(.*/time.h\)".*#\1#
14054 s#^/[^/]#//&#
14055 p
14056 q
14057 }'`'"'
14058 else
14059 gl_cv_next_time_h='<'time.h'>'
14060 fi
14061
14062 fi
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14064 $as_echo "$gl_cv_next_time_h" >&6; }
14065 fi
14066 NEXT_TIME_H=$gl_cv_next_time_h
14067
14068 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14069 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14070 gl_next_as_first_directive='<'time.h'>'
14071 else
14072 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14073 gl_next_as_first_directive=$gl_cv_next_time_h
14074 fi
14075 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14076
14077
14078
14079
14080
14081 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14082 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14083 ac_have_decl=1
14084 else
14085 ac_have_decl=0
14086 fi
14087
14088 cat >>confdefs.h <<_ACEOF
14089 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14090 _ACEOF
14091
14092
14093
14094
14095 if false; then
14096 GL_COND_LIBTOOL_TRUE=
14097 GL_COND_LIBTOOL_FALSE='#'
14098 else
14099 GL_COND_LIBTOOL_TRUE='#'
14100 GL_COND_LIBTOOL_FALSE=
14101 fi
14102
14103 gl_cond_libtool=false
14104 gl_libdeps=
14105 gl_ltlibdeps=
14106 gl_m4_base='m4'
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116 gl_source_base='lib'
14117 # Code from module arg-nonnull:
14118 # Code from module c++defs:
14119 # Code from module extensions:
14120 # Code from module ftoastr:
14121
14122 # Code from module include_next:
14123 # Code from module intprops:
14124 # Code from module mktime:
14125
14126
14127
14128
14129
14130 if test $APPLE_UNIVERSAL_BUILD = 1; then
14131 # A universal build on Apple MacOS X platforms.
14132 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14133 # But we need a configuration result that is valid in both modes.
14134 ac_cv_func_working_mktime=no
14135 fi
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14137 $as_echo_n "checking for working mktime... " >&6; }
14138 if ${ac_cv_func_working_mktime+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 if test "$cross_compiling" = yes; then :
14142 ac_cv_func_working_mktime=no
14143 else
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 /* Test program from Paul Eggert and Tony Leneis. */
14147 #include <limits.h>
14148 #include <stdlib.h>
14149 #include <time.h>
14150
14151 #ifdef HAVE_UNISTD_H
14152 # include <unistd.h>
14153 #endif
14154
14155 #ifndef HAVE_ALARM
14156 # define alarm(X) /* empty */
14157 #endif
14158
14159 /* Work around redefinition to rpl_putenv by other config tests. */
14160 #undef putenv
14161
14162 static time_t time_t_max;
14163 static time_t time_t_min;
14164
14165 /* Values we'll use to set the TZ environment variable. */
14166 static char *tz_strings[] = {
14167 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14168 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14169 };
14170 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14171
14172 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14173 Based on a problem report from Andreas Jaeger. */
14174 static int
14175 spring_forward_gap ()
14176 {
14177 /* glibc (up to about 1998-10-07) failed this test. */
14178 struct tm tm;
14179
14180 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14181 instead of "TZ=America/Vancouver" in order to detect the bug even
14182 on systems that don't support the Olson extension, or don't have the
14183 full zoneinfo tables installed. */
14184 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14185
14186 tm.tm_year = 98;
14187 tm.tm_mon = 3;
14188 tm.tm_mday = 5;
14189 tm.tm_hour = 2;
14190 tm.tm_min = 0;
14191 tm.tm_sec = 0;
14192 tm.tm_isdst = -1;
14193 return mktime (&tm) != (time_t) -1;
14194 }
14195
14196 static int
14197 mktime_test1 (time_t now)
14198 {
14199 struct tm *lt;
14200 return ! (lt = localtime (&now)) || mktime (lt) == now;
14201 }
14202
14203 static int
14204 mktime_test (time_t now)
14205 {
14206 return (mktime_test1 (now)
14207 && mktime_test1 ((time_t) (time_t_max - now))
14208 && mktime_test1 ((time_t) (time_t_min + now)));
14209 }
14210
14211 static int
14212 irix_6_4_bug ()
14213 {
14214 /* Based on code from Ariel Faigon. */
14215 struct tm tm;
14216 tm.tm_year = 96;
14217 tm.tm_mon = 3;
14218 tm.tm_mday = 0;
14219 tm.tm_hour = 0;
14220 tm.tm_min = 0;
14221 tm.tm_sec = 0;
14222 tm.tm_isdst = -1;
14223 mktime (&tm);
14224 return tm.tm_mon == 2 && tm.tm_mday == 31;
14225 }
14226
14227 static int
14228 bigtime_test (int j)
14229 {
14230 struct tm tm;
14231 time_t now;
14232 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14233 now = mktime (&tm);
14234 if (now != (time_t) -1)
14235 {
14236 struct tm *lt = localtime (&now);
14237 if (! (lt
14238 && lt->tm_year == tm.tm_year
14239 && lt->tm_mon == tm.tm_mon
14240 && lt->tm_mday == tm.tm_mday
14241 && lt->tm_hour == tm.tm_hour
14242 && lt->tm_min == tm.tm_min
14243 && lt->tm_sec == tm.tm_sec
14244 && lt->tm_yday == tm.tm_yday
14245 && lt->tm_wday == tm.tm_wday
14246 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14247 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14248 return 0;
14249 }
14250 return 1;
14251 }
14252
14253 static int
14254 year_2050_test ()
14255 {
14256 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14257 ignoring leap seconds. */
14258 unsigned long int answer = 2527315200UL;
14259
14260 struct tm tm;
14261 time_t t;
14262 tm.tm_year = 2050 - 1900;
14263 tm.tm_mon = 2 - 1;
14264 tm.tm_mday = 1;
14265 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14266 tm.tm_isdst = -1;
14267
14268 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14269 instead of "TZ=America/Vancouver" in order to detect the bug even
14270 on systems that don't support the Olson extension, or don't have the
14271 full zoneinfo tables installed. */
14272 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14273
14274 t = mktime (&tm);
14275
14276 /* Check that the result is either a failure, or close enough
14277 to the correct answer that we can assume the discrepancy is
14278 due to leap seconds. */
14279 return (t == (time_t) -1
14280 || (0 < t && answer - 120 <= t && t <= answer + 120));
14281 }
14282
14283 int
14284 main ()
14285 {
14286 int result = 0;
14287 time_t t, delta;
14288 int i, j;
14289
14290 /* This test makes some buggy mktime implementations loop.
14291 Give up after 60 seconds; a mktime slower than that
14292 isn't worth using anyway. */
14293 alarm (60);
14294
14295 for (;;)
14296 {
14297 t = (time_t_max << 1) + 1;
14298 if (t <= time_t_max)
14299 break;
14300 time_t_max = t;
14301 }
14302 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
14303
14304 delta = time_t_max / 997; /* a suitable prime number */
14305 for (i = 0; i < N_STRINGS; i++)
14306 {
14307 if (tz_strings[i])
14308 putenv (tz_strings[i]);
14309
14310 for (t = 0; t <= time_t_max - delta; t += delta)
14311 if (! mktime_test (t))
14312 result |= 1;
14313 if (! (mktime_test ((time_t) 1)
14314 && mktime_test ((time_t) (60 * 60))
14315 && mktime_test ((time_t) (60 * 60 * 24))))
14316 result |= 2;
14317
14318 for (j = 1; ; j <<= 1)
14319 if (! bigtime_test (j))
14320 result |= 4;
14321 else if (INT_MAX / 2 < j)
14322 break;
14323 if (! bigtime_test (INT_MAX))
14324 result |= 8;
14325 }
14326 if (! irix_6_4_bug ())
14327 result |= 16;
14328 if (! spring_forward_gap ())
14329 result |= 32;
14330 if (! year_2050_test ())
14331 result |= 64;
14332 return result;
14333 }
14334 _ACEOF
14335 if ac_fn_c_try_run "$LINENO"; then :
14336 ac_cv_func_working_mktime=yes
14337 else
14338 ac_cv_func_working_mktime=no
14339 fi
14340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14341 conftest.$ac_objext conftest.beam conftest.$ac_ext
14342 fi
14343
14344 fi
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
14346 $as_echo "$ac_cv_func_working_mktime" >&6; }
14347 if test $ac_cv_func_working_mktime = no; then
14348
14349
14350
14351
14352
14353
14354
14355
14356 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
14357
14358 fi
14359
14360 if test $ac_cv_func_working_mktime = no; then
14361 REPLACE_MKTIME=1
14362
14363
14364
14365 else
14366 REPLACE_MKTIME=0
14367 fi
14368
14369
14370
14371
14372 GNULIB_MKTIME=1
14373
14374
14375
14376 $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
14377
14378
14379
14380 # Code from module multiarch:
14381
14382 # Code from module stddef:
14383
14384
14385
14386 if test $gt_cv_c_wchar_t = no; then
14387 HAVE_WCHAR_T=0
14388 STDDEF_H=stddef.h
14389 fi
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14391 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14392 if ${gl_cv_decl_null_works+:} false; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14397 #include <stddef.h>
14398 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14399
14400 int
14401 main ()
14402 {
14403
14404 ;
14405 return 0;
14406 }
14407 _ACEOF
14408 if ac_fn_c_try_compile "$LINENO"; then :
14409 gl_cv_decl_null_works=yes
14410 else
14411 gl_cv_decl_null_works=no
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 fi
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14416 $as_echo "$gl_cv_decl_null_works" >&6; }
14417 if test $gl_cv_decl_null_works = no; then
14418 REPLACE_NULL=1
14419 STDDEF_H=stddef.h
14420 fi
14421 if test -n "$STDDEF_H"; then
14422
14423
14424
14425
14426
14427
14428 if test $gl_cv_have_include_next = yes; then
14429 gl_cv_next_stddef_h='<'stddef.h'>'
14430 else
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14432 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14433 if ${gl_cv_next_stddef_h+:} false; then :
14434 $as_echo_n "(cached) " >&6
14435 else
14436
14437 if test $ac_cv_header_stddef_h = yes; then
14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14440 #include <stddef.h>
14441
14442 _ACEOF
14443 case "$host_os" in
14444 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14445 *) gl_absname_cpp="$ac_cpp" ;;
14446 esac
14447 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14448 sed -n '\#/stddef.h#{
14449 s#.*"\(.*/stddef.h\)".*#\1#
14450 s#^/[^/]#//&#
14451 p
14452 q
14453 }'`'"'
14454 else
14455 gl_cv_next_stddef_h='<'stddef.h'>'
14456 fi
14457
14458 fi
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14460 $as_echo "$gl_cv_next_stddef_h" >&6; }
14461 fi
14462 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14463
14464 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14465 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14466 gl_next_as_first_directive='<'stddef.h'>'
14467 else
14468 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14469 gl_next_as_first_directive=$gl_cv_next_stddef_h
14470 fi
14471 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14472
14473
14474
14475 fi
14476
14477 # Code from module time:
14478
14479
14480
14481 # Code from module time_r:
14482
14483
14484
14485
14486
14487
14488
14489 if test $ac_cv_have_decl_localtime_r = no; then
14490 HAVE_DECL_LOCALTIME_R=0
14491 fi
14492
14493
14494 if test $ac_cv_func_localtime_r = yes; then
14495 HAVE_LOCALTIME_R=1
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
14497 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
14498 if ${gl_cv_time_r_posix+:} false; then :
14499 $as_echo_n "(cached) " >&6
14500 else
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14503 #include <time.h>
14504 int
14505 main ()
14506 {
14507 /* We don't need to append 'restrict's to the argument types,
14508 even though the POSIX signature has the 'restrict's,
14509 since C99 says they can't affect type compatibility. */
14510 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
14511 if (ptr) return 0;
14512 /* Check the return type is a pointer.
14513 On HP-UX 10 it is 'int'. */
14514 *localtime_r (0, 0);
14515 ;
14516 return 0;
14517 }
14518
14519 _ACEOF
14520 if ac_fn_c_try_compile "$LINENO"; then :
14521 gl_cv_time_r_posix=yes
14522 else
14523 gl_cv_time_r_posix=no
14524 fi
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
14529 $as_echo "$gl_cv_time_r_posix" >&6; }
14530 if test $gl_cv_time_r_posix = yes; then
14531 REPLACE_LOCALTIME_R=0
14532 else
14533 REPLACE_LOCALTIME_R=1
14534 fi
14535 else
14536 HAVE_LOCALTIME_R=0
14537 fi
14538 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
14539
14540
14541
14542
14543
14544
14545
14546
14547 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
14548
14549
14550 :
14551
14552 fi
14553
14554
14555
14556
14557 GNULIB_TIME_R=1
14558
14559
14560
14561 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
14562
14563
14564
14565 # Code from module warn-on-use:
14566 # End of code from modules
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576 gltests_libdeps=
14577 gltests_ltlibdeps=
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587 gl_source_base='tests'
14588 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
14589
14590 gl_module_indicator_condition=$gltests_WITNESS
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600 LIBGNU_LIBDEPS="$gl_libdeps"
14601
14602 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
14603
14604
14605
14606 for ac_func in strftime
14607 do :
14608 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14609 if test "x$ac_cv_func_strftime" = xyes; then :
14610 cat >>confdefs.h <<_ACEOF
14611 #define HAVE_STRFTIME 1
14612 _ACEOF
14613
14614 else
14615 # strftime is in -lintl on SCO UNIX.
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
14617 $as_echo_n "checking for strftime in -lintl... " >&6; }
14618 if ${ac_cv_lib_intl_strftime+:} false; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 ac_check_lib_save_LIBS=$LIBS
14622 LIBS="-lintl $LIBS"
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14625
14626 /* Override any GCC internal prototype to avoid an error.
14627 Use char because int might match the return type of a GCC
14628 builtin and then its argument prototype would still apply. */
14629 #ifdef __cplusplus
14630 extern "C"
14631 #endif
14632 char strftime ();
14633 int
14634 main ()
14635 {
14636 return strftime ();
14637 ;
14638 return 0;
14639 }
14640 _ACEOF
14641 if ac_fn_c_try_link "$LINENO"; then :
14642 ac_cv_lib_intl_strftime=yes
14643 else
14644 ac_cv_lib_intl_strftime=no
14645 fi
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext conftest.$ac_ext
14648 LIBS=$ac_check_lib_save_LIBS
14649 fi
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
14651 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
14652 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
14653 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
14654
14655 LIBS="-lintl $LIBS"
14656 fi
14657
14658 fi
14659 done
14660
14661
14662 # UNIX98 PTYs.
14663 for ac_func in grantpt
14664 do :
14665 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14666 if test "x$ac_cv_func_grantpt" = xyes; then :
14667 cat >>confdefs.h <<_ACEOF
14668 #define HAVE_GRANTPT 1
14669 _ACEOF
14670
14671 fi
14672 done
14673
14674
14675 # PTY-related GNU extensions.
14676 for ac_func in getpt
14677 do :
14678 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14679 if test "x$ac_cv_func_getpt" = xyes; then :
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_GETPT 1
14682 _ACEOF
14683
14684 fi
14685 done
14686
14687
14688 # Check this now, so that we will NOT find the above functions in ncurses.
14689 # That is because we have not set up to link ncurses in lib-src.
14690 # It's better to believe a function is not available
14691 # than to expect to find it in ncurses.
14692 # Also we need tputs and friends to be able to build at all.
14693 have_tputs_et_al=true
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14695 $as_echo_n "checking for library containing tputs... " >&6; }
14696 if ${ac_cv_search_tputs+:} false; then :
14697 $as_echo_n "(cached) " >&6
14698 else
14699 ac_func_search_save_LIBS=$LIBS
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702
14703 /* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
14706 #ifdef __cplusplus
14707 extern "C"
14708 #endif
14709 char tputs ();
14710 int
14711 main ()
14712 {
14713 return tputs ();
14714 ;
14715 return 0;
14716 }
14717 _ACEOF
14718 for ac_lib in '' ncurses terminfo termcap; do
14719 if test -z "$ac_lib"; then
14720 ac_res="none required"
14721 else
14722 ac_res=-l$ac_lib
14723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14724 fi
14725 if ac_fn_c_try_link "$LINENO"; then :
14726 ac_cv_search_tputs=$ac_res
14727 fi
14728 rm -f core conftest.err conftest.$ac_objext \
14729 conftest$ac_exeext
14730 if ${ac_cv_search_tputs+:} false; then :
14731 break
14732 fi
14733 done
14734 if ${ac_cv_search_tputs+:} false; then :
14735
14736 else
14737 ac_cv_search_tputs=no
14738 fi
14739 rm conftest.$ac_ext
14740 LIBS=$ac_func_search_save_LIBS
14741 fi
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14743 $as_echo "$ac_cv_search_tputs" >&6; }
14744 ac_res=$ac_cv_search_tputs
14745 if test "$ac_res" != no; then :
14746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14747
14748 else
14749 have_tputs_et_al=false
14750 fi
14751
14752 if test "$have_tputs_et_al" != true; then
14753 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
14754 Maybe some development libraries/packages are missing? Try installing
14755 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
14756 fi
14757 # Must define this when any termcap library is found.
14758
14759 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14760
14761 ## FIXME This was the cpp logic, but I am not sure it is right.
14762 ## The above test has not necessarily found libncurses.
14763 HAVE_LIBNCURSES=yes
14764
14765 ## Use terminfo instead of termcap?
14766 ## Note only system files NOT using terminfo are:
14767 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14768 ## darwin|gnu without ncurses.
14769 TERMINFO=no
14770 LIBS_TERMCAP=
14771 case "$opsys" in
14772 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14773 ## hpux10-20: Use the system provided termcap(3) library.
14774 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14775 ## is necessary. Otherwise Emacs dumps core when run -nw.
14776 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14777
14778 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14779 ## The ncurses library has been moved out of the System framework in
14780 ## Mac OS X 10.2. So if configure detects it, set the command-line
14781 ## option to use it.
14782 darwin|gnu*)
14783 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14784 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14785 TERMINFO=yes
14786 LIBS_TERMCAP="-lncurses"
14787 fi
14788 ;;
14789
14790 freebsd)
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14792 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14793 if ${emacs_cv_freebsd_terminfo+:} false; then :
14794 $as_echo_n "(cached) " >&6
14795 else
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14798 #include <osreldate.h>
14799 int
14800 main ()
14801 {
14802 #if __FreeBSD_version < 400000
14803 fail;
14804 #endif
14805
14806 ;
14807 return 0;
14808 }
14809 _ACEOF
14810 if ac_fn_c_try_link "$LINENO"; then :
14811 emacs_cv_freebsd_terminfo=yes
14812 else
14813 emacs_cv_freebsd_terminfo=no
14814 fi
14815 rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14817 fi
14818
14819
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14821 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14822
14823 if test $emacs_cv_freebsd_terminfo = yes; then
14824 TERMINFO=yes
14825 LIBS_TERMCAP="-lncurses"
14826 else
14827 LIBS_TERMCAP="-ltermcap"
14828 fi
14829 ;;
14830
14831 netbsd)
14832 if test $ac_cv_search_tputs = -lterminfo; then
14833 TERMINFO=yes
14834 LIBS_TERMCAP="-lterminfo"
14835 else
14836 LIBS_TERMCAP="-ltermcap"
14837 fi
14838 ;;
14839
14840 esac
14841
14842 case "$opsys" in
14843 ## hpux: Make sure we get select from libc rather than from libcurses
14844 ## because libcurses on HPUX 10.10 has a broken version of select.
14845 ## We used to use -lc -lcurses, but this may be cleaner.
14846 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14847
14848 openbsd) LIBS_TERMCAP="-lncurses" ;;
14849
14850 ## Must use system termcap, if we use any termcap. It does special things.
14851 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14852 esac
14853
14854 TERMCAP_OBJ=tparam.o
14855 if test $TERMINFO = yes; then
14856
14857 $as_echo "#define TERMINFO 1" >>confdefs.h
14858
14859
14860 ## Default used to be -ltermcap. Add a case above if need something else.
14861 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14862
14863 TERMCAP_OBJ=terminfo.o
14864 fi
14865
14866
14867
14868
14869 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14870 resolv=no
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873 #include <netinet/in.h>
14874 #include <arpa/nameser.h>
14875 #include <resolv.h>
14876 int
14877 main ()
14878 {
14879 return res_init();
14880 ;
14881 return 0;
14882 }
14883 _ACEOF
14884 if ac_fn_c_try_link "$LINENO"; then :
14885 have_res_init=yes
14886 else
14887 have_res_init=no
14888 fi
14889 rm -f core conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 if test "$have_res_init" = no; then
14892 OLIBS="$LIBS"
14893 LIBS="$LIBS -lresolv"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14895 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14898 #include <netinet/in.h>
14899 #include <arpa/nameser.h>
14900 #include <resolv.h>
14901 int
14902 main ()
14903 {
14904 return res_init();
14905 ;
14906 return 0;
14907 }
14908 _ACEOF
14909 if ac_fn_c_try_link "$LINENO"; then :
14910 have_res_init=yes
14911 else
14912 have_res_init=no
14913 fi
14914 rm -f core conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14917 $as_echo "$have_res_init" >&6; }
14918 if test "$have_res_init" = yes ; then
14919 resolv=yes
14920 fi
14921 LIBS="$OLIBS"
14922 fi
14923
14924 if test "$have_res_init" = yes; then
14925
14926 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14927
14928 fi
14929
14930 # Do we need the Hesiod library to provide the support routines?
14931 LIBHESIOD=
14932 if test "$with_hesiod" != no ; then
14933 # Don't set $LIBS here -- see comments above. FIXME which comments?
14934 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14935 if test "x$ac_cv_func_res_send" = xyes; then :
14936
14937 else
14938 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14939 if test "x$ac_cv_func___res_send" = xyes; then :
14940
14941 else
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14943 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14944 if ${ac_cv_lib_resolv_res_send+:} false; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 ac_check_lib_save_LIBS=$LIBS
14948 LIBS="-lresolv $LIBS"
14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14951
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14955 #ifdef __cplusplus
14956 extern "C"
14957 #endif
14958 char res_send ();
14959 int
14960 main ()
14961 {
14962 return res_send ();
14963 ;
14964 return 0;
14965 }
14966 _ACEOF
14967 if ac_fn_c_try_link "$LINENO"; then :
14968 ac_cv_lib_resolv_res_send=yes
14969 else
14970 ac_cv_lib_resolv_res_send=no
14971 fi
14972 rm -f core conftest.err conftest.$ac_objext \
14973 conftest$ac_exeext conftest.$ac_ext
14974 LIBS=$ac_check_lib_save_LIBS
14975 fi
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14977 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14978 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
14979 resolv=yes
14980 else
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14982 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14983 if ${ac_cv_lib_resolv___res_send+:} false; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 ac_check_lib_save_LIBS=$LIBS
14987 LIBS="-lresolv $LIBS"
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14990
14991 /* Override any GCC internal prototype to avoid an error.
14992 Use char because int might match the return type of a GCC
14993 builtin and then its argument prototype would still apply. */
14994 #ifdef __cplusplus
14995 extern "C"
14996 #endif
14997 char __res_send ();
14998 int
14999 main ()
15000 {
15001 return __res_send ();
15002 ;
15003 return 0;
15004 }
15005 _ACEOF
15006 if ac_fn_c_try_link "$LINENO"; then :
15007 ac_cv_lib_resolv___res_send=yes
15008 else
15009 ac_cv_lib_resolv___res_send=no
15010 fi
15011 rm -f core conftest.err conftest.$ac_objext \
15012 conftest$ac_exeext conftest.$ac_ext
15013 LIBS=$ac_check_lib_save_LIBS
15014 fi
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15016 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15017 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
15018 resolv=yes
15019 fi
15020
15021 fi
15022
15023 fi
15024
15025 fi
15026
15027 if test "$resolv" = yes ; then
15028 RESOLVLIB=-lresolv
15029 else
15030 RESOLVLIB=
15031 fi
15032 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15033 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
15034
15035 else
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15037 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15038 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
15039 $as_echo_n "(cached) " >&6
15040 else
15041 ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-lhesiod $RESOLVLIB $LIBS"
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045
15046 /* Override any GCC internal prototype to avoid an error.
15047 Use char because int might match the return type of a GCC
15048 builtin and then its argument prototype would still apply. */
15049 #ifdef __cplusplus
15050 extern "C"
15051 #endif
15052 char hes_getmailhost ();
15053 int
15054 main ()
15055 {
15056 return hes_getmailhost ();
15057 ;
15058 return 0;
15059 }
15060 _ACEOF
15061 if ac_fn_c_try_link "$LINENO"; then :
15062 ac_cv_lib_hesiod_hes_getmailhost=yes
15063 else
15064 ac_cv_lib_hesiod_hes_getmailhost=no
15065 fi
15066 rm -f core conftest.err conftest.$ac_objext \
15067 conftest$ac_exeext conftest.$ac_ext
15068 LIBS=$ac_check_lib_save_LIBS
15069 fi
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15071 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15072 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
15073 hesiod=yes
15074 else
15075 :
15076 fi
15077
15078 fi
15079
15080
15081 if test x"$hesiod" = xyes; then
15082
15083 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15084
15085 LIBHESIOD=-lhesiod
15086 fi
15087 fi
15088
15089
15090 # Do we need libresolv (due to res_init or Hesiod)?
15091 if test "$resolv" = yes ; then
15092
15093 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15094
15095 LIBRESOLV=-lresolv
15096 else
15097 LIBRESOLV=
15098 fi
15099
15100
15101 # These tell us which Kerberos-related libraries to use.
15102 COM_ERRLIB=
15103 CRYPTOLIB=
15104 KRB5LIB=
15105 DESLIB=
15106 KRB4LIB=
15107
15108 if test "${with_kerberos}" != no; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15110 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15111 if ${ac_cv_lib_com_err_com_err+:} false; then :
15112 $as_echo_n "(cached) " >&6
15113 else
15114 ac_check_lib_save_LIBS=$LIBS
15115 LIBS="-lcom_err $LIBS"
15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118
15119 /* Override any GCC internal prototype to avoid an error.
15120 Use char because int might match the return type of a GCC
15121 builtin and then its argument prototype would still apply. */
15122 #ifdef __cplusplus
15123 extern "C"
15124 #endif
15125 char com_err ();
15126 int
15127 main ()
15128 {
15129 return com_err ();
15130 ;
15131 return 0;
15132 }
15133 _ACEOF
15134 if ac_fn_c_try_link "$LINENO"; then :
15135 ac_cv_lib_com_err_com_err=yes
15136 else
15137 ac_cv_lib_com_err_com_err=no
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext \
15140 conftest$ac_exeext conftest.$ac_ext
15141 LIBS=$ac_check_lib_save_LIBS
15142 fi
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15144 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15145 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
15146 have_com_err=yes
15147 else
15148 have_com_err=no
15149 fi
15150
15151 if test $have_com_err = yes; then
15152 COM_ERRLIB=-lcom_err
15153 LIBS="$COM_ERRLIB $LIBS"
15154
15155 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15156
15157 fi
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15159 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15160 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
15161 $as_echo_n "(cached) " >&6
15162 else
15163 ac_check_lib_save_LIBS=$LIBS
15164 LIBS="-lcrypto $LIBS"
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167
15168 /* Override any GCC internal prototype to avoid an error.
15169 Use char because int might match the return type of a GCC
15170 builtin and then its argument prototype would still apply. */
15171 #ifdef __cplusplus
15172 extern "C"
15173 #endif
15174 char mit_des_cbc_encrypt ();
15175 int
15176 main ()
15177 {
15178 return mit_des_cbc_encrypt ();
15179 ;
15180 return 0;
15181 }
15182 _ACEOF
15183 if ac_fn_c_try_link "$LINENO"; then :
15184 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15185 else
15186 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15187 fi
15188 rm -f core conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
15190 LIBS=$ac_check_lib_save_LIBS
15191 fi
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15193 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15194 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
15195 have_crypto=yes
15196 else
15197 have_crypto=no
15198 fi
15199
15200 if test $have_crypto = yes; then
15201 CRYPTOLIB=-lcrypto
15202 LIBS="$CRYPTOLIB $LIBS"
15203
15204 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15205
15206 fi
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15208 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15209 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 ac_check_lib_save_LIBS=$LIBS
15213 LIBS="-lk5crypto $LIBS"
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15216
15217 /* Override any GCC internal prototype to avoid an error.
15218 Use char because int might match the return type of a GCC
15219 builtin and then its argument prototype would still apply. */
15220 #ifdef __cplusplus
15221 extern "C"
15222 #endif
15223 char mit_des_cbc_encrypt ();
15224 int
15225 main ()
15226 {
15227 return mit_des_cbc_encrypt ();
15228 ;
15229 return 0;
15230 }
15231 _ACEOF
15232 if ac_fn_c_try_link "$LINENO"; then :
15233 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15234 else
15235 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext \
15238 conftest$ac_exeext conftest.$ac_ext
15239 LIBS=$ac_check_lib_save_LIBS
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15242 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15243 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
15244 have_k5crypto=yes
15245 else
15246 have_k5crypto=no
15247 fi
15248
15249 if test $have_k5crypto = yes; then
15250 CRYPTOLIB=-lk5crypto
15251 LIBS="$CRYPTOLIB $LIBS"
15252
15253 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15254
15255 fi
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15257 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15258 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15259 $as_echo_n "(cached) " >&6
15260 else
15261 ac_check_lib_save_LIBS=$LIBS
15262 LIBS="-lkrb5 $LIBS"
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15265
15266 /* Override any GCC internal prototype to avoid an error.
15267 Use char because int might match the return type of a GCC
15268 builtin and then its argument prototype would still apply. */
15269 #ifdef __cplusplus
15270 extern "C"
15271 #endif
15272 char krb5_init_context ();
15273 int
15274 main ()
15275 {
15276 return krb5_init_context ();
15277 ;
15278 return 0;
15279 }
15280 _ACEOF
15281 if ac_fn_c_try_link "$LINENO"; then :
15282 ac_cv_lib_krb5_krb5_init_context=yes
15283 else
15284 ac_cv_lib_krb5_krb5_init_context=no
15285 fi
15286 rm -f core conftest.err conftest.$ac_objext \
15287 conftest$ac_exeext conftest.$ac_ext
15288 LIBS=$ac_check_lib_save_LIBS
15289 fi
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15291 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15292 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15293 have_krb5=yes
15294 else
15295 have_krb5=no
15296 fi
15297
15298 if test $have_krb5=yes; then
15299 KRB5LIB=-lkrb5
15300 LIBS="$KRB5LIB $LIBS"
15301
15302 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15303
15304 fi
15305 if test "${with_kerberos5}" = no; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15307 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15308 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
15309 $as_echo_n "(cached) " >&6
15310 else
15311 ac_check_lib_save_LIBS=$LIBS
15312 LIBS="-ldes425 $LIBS"
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15315
15316 /* Override any GCC internal prototype to avoid an error.
15317 Use char because int might match the return type of a GCC
15318 builtin and then its argument prototype would still apply. */
15319 #ifdef __cplusplus
15320 extern "C"
15321 #endif
15322 char des_cbc_encrypt ();
15323 int
15324 main ()
15325 {
15326 return des_cbc_encrypt ();
15327 ;
15328 return 0;
15329 }
15330 _ACEOF
15331 if ac_fn_c_try_link "$LINENO"; then :
15332 ac_cv_lib_des425_des_cbc_encrypt=yes
15333 else
15334 ac_cv_lib_des425_des_cbc_encrypt=no
15335 fi
15336 rm -f core conftest.err conftest.$ac_objext \
15337 conftest$ac_exeext conftest.$ac_ext
15338 LIBS=$ac_check_lib_save_LIBS
15339 fi
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15341 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15342 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
15343 have_des425=yes
15344 else
15345 have_des425=no
15346 fi
15347
15348 if test $have_des425 = yes; then
15349 DESLIB=-ldes425
15350 LIBS="$DESLIB $LIBS"
15351
15352 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15353
15354 else
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15356 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15357 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
15358 $as_echo_n "(cached) " >&6
15359 else
15360 ac_check_lib_save_LIBS=$LIBS
15361 LIBS="-ldes $LIBS"
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364
15365 /* Override any GCC internal prototype to avoid an error.
15366 Use char because int might match the return type of a GCC
15367 builtin and then its argument prototype would still apply. */
15368 #ifdef __cplusplus
15369 extern "C"
15370 #endif
15371 char des_cbc_encrypt ();
15372 int
15373 main ()
15374 {
15375 return des_cbc_encrypt ();
15376 ;
15377 return 0;
15378 }
15379 _ACEOF
15380 if ac_fn_c_try_link "$LINENO"; then :
15381 ac_cv_lib_des_des_cbc_encrypt=yes
15382 else
15383 ac_cv_lib_des_des_cbc_encrypt=no
15384 fi
15385 rm -f core conftest.err conftest.$ac_objext \
15386 conftest$ac_exeext conftest.$ac_ext
15387 LIBS=$ac_check_lib_save_LIBS
15388 fi
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15390 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15391 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
15392 have_des=yes
15393 else
15394 have_des=no
15395 fi
15396
15397 if test $have_des = yes; then
15398 DESLIB=-ldes
15399 LIBS="$DESLIB $LIBS"
15400
15401 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15402
15403 fi
15404 fi
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15406 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15407 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 ac_check_lib_save_LIBS=$LIBS
15411 LIBS="-lkrb4 $LIBS"
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15414
15415 /* Override any GCC internal prototype to avoid an error.
15416 Use char because int might match the return type of a GCC
15417 builtin and then its argument prototype would still apply. */
15418 #ifdef __cplusplus
15419 extern "C"
15420 #endif
15421 char krb_get_cred ();
15422 int
15423 main ()
15424 {
15425 return krb_get_cred ();
15426 ;
15427 return 0;
15428 }
15429 _ACEOF
15430 if ac_fn_c_try_link "$LINENO"; then :
15431 ac_cv_lib_krb4_krb_get_cred=yes
15432 else
15433 ac_cv_lib_krb4_krb_get_cred=no
15434 fi
15435 rm -f core conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15438 fi
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15440 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15441 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
15442 have_krb4=yes
15443 else
15444 have_krb4=no
15445 fi
15446
15447 if test $have_krb4 = yes; then
15448 KRB4LIB=-lkrb4
15449 LIBS="$KRB4LIB $LIBS"
15450
15451 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15452
15453 else
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15455 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15456 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
15457 $as_echo_n "(cached) " >&6
15458 else
15459 ac_check_lib_save_LIBS=$LIBS
15460 LIBS="-lkrb $LIBS"
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15463
15464 /* Override any GCC internal prototype to avoid an error.
15465 Use char because int might match the return type of a GCC
15466 builtin and then its argument prototype would still apply. */
15467 #ifdef __cplusplus
15468 extern "C"
15469 #endif
15470 char krb_get_cred ();
15471 int
15472 main ()
15473 {
15474 return krb_get_cred ();
15475 ;
15476 return 0;
15477 }
15478 _ACEOF
15479 if ac_fn_c_try_link "$LINENO"; then :
15480 ac_cv_lib_krb_krb_get_cred=yes
15481 else
15482 ac_cv_lib_krb_krb_get_cred=no
15483 fi
15484 rm -f core conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext conftest.$ac_ext
15486 LIBS=$ac_check_lib_save_LIBS
15487 fi
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15489 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15490 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
15491 have_krb=yes
15492 else
15493 have_krb=no
15494 fi
15495
15496 if test $have_krb = yes; then
15497 KRB4LIB=-lkrb
15498 LIBS="$KRB4LIB $LIBS"
15499
15500 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15501
15502 fi
15503 fi
15504 fi
15505
15506 if test "${with_kerberos5}" != no; then
15507 for ac_header in krb5.h
15508 do :
15509 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15510 if test "x$ac_cv_header_krb5_h" = xyes; then :
15511 cat >>confdefs.h <<_ACEOF
15512 #define HAVE_KRB5_H 1
15513 _ACEOF
15514 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15515 "
15516 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
15517
15518 cat >>confdefs.h <<_ACEOF
15519 #define HAVE_KRB5_ERROR_TEXT 1
15520 _ACEOF
15521
15522
15523 fi
15524 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15525 "
15526 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
15527
15528 cat >>confdefs.h <<_ACEOF
15529 #define HAVE_KRB5_ERROR_E_TEXT 1
15530 _ACEOF
15531
15532
15533 fi
15534
15535 fi
15536
15537 done
15538
15539 else
15540 for ac_header in des.h
15541 do :
15542 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15543 if test "x$ac_cv_header_des_h" = xyes; then :
15544 cat >>confdefs.h <<_ACEOF
15545 #define HAVE_DES_H 1
15546 _ACEOF
15547
15548 else
15549 for ac_header in kerberosIV/des.h
15550 do :
15551 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15552 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
15553 cat >>confdefs.h <<_ACEOF
15554 #define HAVE_KERBEROSIV_DES_H 1
15555 _ACEOF
15556
15557 else
15558 for ac_header in kerberos/des.h
15559 do :
15560 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15561 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
15562 cat >>confdefs.h <<_ACEOF
15563 #define HAVE_KERBEROS_DES_H 1
15564 _ACEOF
15565
15566 fi
15567
15568 done
15569
15570 fi
15571
15572 done
15573
15574 fi
15575
15576 done
15577
15578 for ac_header in krb.h
15579 do :
15580 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15581 if test "x$ac_cv_header_krb_h" = xyes; then :
15582 cat >>confdefs.h <<_ACEOF
15583 #define HAVE_KRB_H 1
15584 _ACEOF
15585
15586 else
15587 for ac_header in kerberosIV/krb.h
15588 do :
15589 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15590 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
15591 cat >>confdefs.h <<_ACEOF
15592 #define HAVE_KERBEROSIV_KRB_H 1
15593 _ACEOF
15594
15595 else
15596 for ac_header in kerberos/krb.h
15597 do :
15598 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15599 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
15600 cat >>confdefs.h <<_ACEOF
15601 #define HAVE_KERBEROS_KRB_H 1
15602 _ACEOF
15603
15604 fi
15605
15606 done
15607
15608 fi
15609
15610 done
15611
15612 fi
15613
15614 done
15615
15616 fi
15617 for ac_header in com_err.h
15618 do :
15619 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15620 if test "x$ac_cv_header_com_err_h" = xyes; then :
15621 cat >>confdefs.h <<_ACEOF
15622 #define HAVE_COM_ERR_H 1
15623 _ACEOF
15624
15625 fi
15626
15627 done
15628
15629 fi
15630
15631
15632
15633
15634
15635
15636
15637 # Solaris requires -lintl if you want strerror (which calls dgettext)
15638 # to return localized messages.
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15640 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15641 if ${ac_cv_lib_intl_dgettext+:} false; then :
15642 $as_echo_n "(cached) " >&6
15643 else
15644 ac_check_lib_save_LIBS=$LIBS
15645 LIBS="-lintl $LIBS"
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648
15649 /* Override any GCC internal prototype to avoid an error.
15650 Use char because int might match the return type of a GCC
15651 builtin and then its argument prototype would still apply. */
15652 #ifdef __cplusplus
15653 extern "C"
15654 #endif
15655 char dgettext ();
15656 int
15657 main ()
15658 {
15659 return dgettext ();
15660 ;
15661 return 0;
15662 }
15663 _ACEOF
15664 if ac_fn_c_try_link "$LINENO"; then :
15665 ac_cv_lib_intl_dgettext=yes
15666 else
15667 ac_cv_lib_intl_dgettext=no
15668 fi
15669 rm -f core conftest.err conftest.$ac_objext \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LIBS=$ac_check_lib_save_LIBS
15672 fi
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15674 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15675 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
15676 cat >>confdefs.h <<_ACEOF
15677 #define HAVE_LIBINTL 1
15678 _ACEOF
15679
15680 LIBS="-lintl $LIBS"
15681
15682 fi
15683
15684
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15686 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15687 if ${emacs_cv_localtime_cache+:} false; then :
15688 $as_echo_n "(cached) " >&6
15689 else
15690 if test x$ac_cv_func_tzset = xyes; then
15691 if test "$cross_compiling" = yes; then :
15692 # If we have tzset, assume the worst when cross-compiling.
15693 emacs_cv_localtime_cache=yes
15694 else
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697 #include <time.h>
15698 char TZ_GMT0[] = "TZ=GMT0";
15699 char TZ_PST8[] = "TZ=PST8";
15700 main()
15701 {
15702 time_t now = time ((time_t *) 0);
15703 int hour_GMT0, hour_unset;
15704 if (putenv (TZ_GMT0) != 0)
15705 exit (1);
15706 hour_GMT0 = localtime (&now)->tm_hour;
15707 unsetenv("TZ");
15708 hour_unset = localtime (&now)->tm_hour;
15709 if (putenv (TZ_PST8) != 0)
15710 exit (1);
15711 if (localtime (&now)->tm_hour == hour_GMT0)
15712 exit (1);
15713 unsetenv("TZ");
15714 if (localtime (&now)->tm_hour != hour_unset)
15715 exit (1);
15716 exit (0);
15717 }
15718 _ACEOF
15719 if ac_fn_c_try_run "$LINENO"; then :
15720 emacs_cv_localtime_cache=no
15721 else
15722 emacs_cv_localtime_cache=yes
15723 fi
15724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15725 conftest.$ac_objext conftest.beam conftest.$ac_ext
15726 fi
15727
15728 else
15729 # If we lack tzset, report that localtime does not cache TZ,
15730 # since we can't invalidate the cache if we don't have tzset.
15731 emacs_cv_localtime_cache=no
15732 fi
15733 fi
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15735 $as_echo "$emacs_cv_localtime_cache" >&6; }
15736 if test $emacs_cv_localtime_cache = yes; then
15737
15738 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15739
15740 fi
15741
15742 if test "x$HAVE_TIMEVAL" = xyes; then
15743 for ac_func in gettimeofday
15744 do :
15745 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15746 if test "x$ac_cv_func_gettimeofday" = xyes; then :
15747 cat >>confdefs.h <<_ACEOF
15748 #define HAVE_GETTIMEOFDAY 1
15749 _ACEOF
15750
15751 fi
15752 done
15753
15754 if test $ac_cv_func_gettimeofday = yes; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15756 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15757 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762
15763 #ifdef TIME_WITH_SYS_TIME
15764 #include <sys/time.h>
15765 #include <time.h>
15766 #else
15767 #ifdef HAVE_SYS_TIME_H
15768 #include <sys/time.h>
15769 #else
15770 #include <time.h>
15771 #endif
15772 #endif
15773 int
15774 main ()
15775 {
15776 struct timeval time;
15777 gettimeofday (&time, 0);
15778 ;
15779 return 0;
15780 }
15781 _ACEOF
15782 if ac_fn_c_try_compile "$LINENO"; then :
15783 emacs_cv_gettimeofday_two_arguments=yes
15784 else
15785 emacs_cv_gettimeofday_two_arguments=no
15786 fi
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 fi
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15790 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15791 if test $emacs_cv_gettimeofday_two_arguments = no; then
15792
15793 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15794
15795 fi
15796 fi
15797 fi
15798
15799 ok_so_far=yes
15800 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15801 if test "x$ac_cv_func_socket" = xyes; then :
15802
15803 else
15804 ok_so_far=no
15805 fi
15806
15807 if test $ok_so_far = yes; then
15808 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15809 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
15810
15811 else
15812 ok_so_far=no
15813 fi
15814
15815
15816 fi
15817 if test $ok_so_far = yes; then
15818 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15819 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
15820
15821 else
15822 ok_so_far=no
15823 fi
15824
15825
15826 fi
15827 if test $ok_so_far = yes; then
15828
15829 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15830
15831 fi
15832
15833 if test -f /usr/lpp/X11/bin/smt.exp; then
15834
15835 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15836
15837 fi
15838
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15840 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15841 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15843 $as_echo "yes" >&6; }
15844
15845 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15846
15847 else
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15849 $as_echo "no" >&6; }
15850 fi
15851
15852 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15853 if test "x$ac_cv_type_pid_t" = xyes; then :
15854
15855 else
15856
15857 cat >>confdefs.h <<_ACEOF
15858 #define pid_t int
15859 _ACEOF
15860
15861 fi
15862
15863 for ac_header in vfork.h
15864 do :
15865 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15866 if test "x$ac_cv_header_vfork_h" = xyes; then :
15867 cat >>confdefs.h <<_ACEOF
15868 #define HAVE_VFORK_H 1
15869 _ACEOF
15870
15871 fi
15872
15873 done
15874
15875 for ac_func in fork vfork
15876 do :
15877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15878 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15879 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15880 cat >>confdefs.h <<_ACEOF
15881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15882 _ACEOF
15883
15884 fi
15885 done
15886
15887 if test "x$ac_cv_func_fork" = xyes; then
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15889 $as_echo_n "checking for working fork... " >&6; }
15890 if ${ac_cv_func_fork_works+:} false; then :
15891 $as_echo_n "(cached) " >&6
15892 else
15893 if test "$cross_compiling" = yes; then :
15894 ac_cv_func_fork_works=cross
15895 else
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 $ac_includes_default
15899 int
15900 main ()
15901 {
15902
15903 /* By Ruediger Kuhlmann. */
15904 return fork () < 0;
15905
15906 ;
15907 return 0;
15908 }
15909 _ACEOF
15910 if ac_fn_c_try_run "$LINENO"; then :
15911 ac_cv_func_fork_works=yes
15912 else
15913 ac_cv_func_fork_works=no
15914 fi
15915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15916 conftest.$ac_objext conftest.beam conftest.$ac_ext
15917 fi
15918
15919 fi
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15921 $as_echo "$ac_cv_func_fork_works" >&6; }
15922
15923 else
15924 ac_cv_func_fork_works=$ac_cv_func_fork
15925 fi
15926 if test "x$ac_cv_func_fork_works" = xcross; then
15927 case $host in
15928 *-*-amigaos* | *-*-msdosdjgpp*)
15929 # Override, as these systems have only a dummy fork() stub
15930 ac_cv_func_fork_works=no
15931 ;;
15932 *)
15933 ac_cv_func_fork_works=yes
15934 ;;
15935 esac
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15937 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15938 fi
15939 ac_cv_func_vfork_works=$ac_cv_func_vfork
15940 if test "x$ac_cv_func_vfork" = xyes; then
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15942 $as_echo_n "checking for working vfork... " >&6; }
15943 if ${ac_cv_func_vfork_works+:} false; then :
15944 $as_echo_n "(cached) " >&6
15945 else
15946 if test "$cross_compiling" = yes; then :
15947 ac_cv_func_vfork_works=cross
15948 else
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951 /* Thanks to Paul Eggert for this test. */
15952 $ac_includes_default
15953 #include <sys/wait.h>
15954 #ifdef HAVE_VFORK_H
15955 # include <vfork.h>
15956 #endif
15957 /* On some sparc systems, changes by the child to local and incoming
15958 argument registers are propagated back to the parent. The compiler
15959 is told about this with #include <vfork.h>, but some compilers
15960 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15961 static variable whose address is put into a register that is
15962 clobbered by the vfork. */
15963 static void
15964 #ifdef __cplusplus
15965 sparc_address_test (int arg)
15966 # else
15967 sparc_address_test (arg) int arg;
15968 #endif
15969 {
15970 static pid_t child;
15971 if (!child) {
15972 child = vfork ();
15973 if (child < 0) {
15974 perror ("vfork");
15975 _exit(2);
15976 }
15977 if (!child) {
15978 arg = getpid();
15979 write(-1, "", 0);
15980 _exit (arg);
15981 }
15982 }
15983 }
15984
15985 int
15986 main ()
15987 {
15988 pid_t parent = getpid ();
15989 pid_t child;
15990
15991 sparc_address_test (0);
15992
15993 child = vfork ();
15994
15995 if (child == 0) {
15996 /* Here is another test for sparc vfork register problems. This
15997 test uses lots of local variables, at least as many local
15998 variables as main has allocated so far including compiler
15999 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16000 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16001 reuse the register of parent for one of the local variables,
16002 since it will think that parent can't possibly be used any more
16003 in this routine. Assigning to the local variable will thus
16004 munge parent in the parent process. */
16005 pid_t
16006 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16007 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16008 /* Convince the compiler that p..p7 are live; otherwise, it might
16009 use the same hardware register for all 8 local variables. */
16010 if (p != p1 || p != p2 || p != p3 || p != p4
16011 || p != p5 || p != p6 || p != p7)
16012 _exit(1);
16013
16014 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16015 from child file descriptors. If the child closes a descriptor
16016 before it execs or exits, this munges the parent's descriptor
16017 as well. Test for this by closing stdout in the child. */
16018 _exit(close(fileno(stdout)) != 0);
16019 } else {
16020 int status;
16021 struct stat st;
16022
16023 while (wait(&status) != child)
16024 ;
16025 return (
16026 /* Was there some problem with vforking? */
16027 child < 0
16028
16029 /* Did the child fail? (This shouldn't happen.) */
16030 || status
16031
16032 /* Did the vfork/compiler bug occur? */
16033 || parent != getpid()
16034
16035 /* Did the file descriptor bug occur? */
16036 || fstat(fileno(stdout), &st) != 0
16037 );
16038 }
16039 }
16040 _ACEOF
16041 if ac_fn_c_try_run "$LINENO"; then :
16042 ac_cv_func_vfork_works=yes
16043 else
16044 ac_cv_func_vfork_works=no
16045 fi
16046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16047 conftest.$ac_objext conftest.beam conftest.$ac_ext
16048 fi
16049
16050 fi
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16052 $as_echo "$ac_cv_func_vfork_works" >&6; }
16053
16054 fi;
16055 if test "x$ac_cv_func_fork_works" = xcross; then
16056 ac_cv_func_vfork_works=$ac_cv_func_vfork
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16058 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16059 fi
16060
16061 if test "x$ac_cv_func_vfork_works" = xyes; then
16062
16063 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16064
16065 else
16066
16067 $as_echo "#define vfork fork" >>confdefs.h
16068
16069 fi
16070 if test "x$ac_cv_func_fork_works" = xyes; then
16071
16072 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16073
16074 fi
16075
16076
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16078 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16079 if ${emacs_cv_langinfo_codeset+:} false; then :
16080 $as_echo_n "(cached) " >&6
16081 else
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <langinfo.h>
16085 int
16086 main ()
16087 {
16088 char* cs = nl_langinfo(CODESET);
16089 ;
16090 return 0;
16091 }
16092 _ACEOF
16093 if ac_fn_c_try_link "$LINENO"; then :
16094 emacs_cv_langinfo_codeset=yes
16095 else
16096 emacs_cv_langinfo_codeset=no
16097 fi
16098 rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16100
16101 fi
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16103 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16104 if test $emacs_cv_langinfo_codeset = yes; then
16105
16106 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16107
16108 fi
16109
16110 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16111 if test "x$ac_cv_type_size_t" = xyes; then :
16112
16113 cat >>confdefs.h <<_ACEOF
16114 #define HAVE_SIZE_T 1
16115 _ACEOF
16116
16117
16118 fi
16119
16120
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16122 $as_echo_n "checking for mbstate_t... " >&6; }
16123 if ${ac_cv_type_mbstate_t+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16128 $ac_includes_default
16129 # include <wchar.h>
16130 int
16131 main ()
16132 {
16133 mbstate_t x; return sizeof x;
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 if ac_fn_c_try_compile "$LINENO"; then :
16139 ac_cv_type_mbstate_t=yes
16140 else
16141 ac_cv_type_mbstate_t=no
16142 fi
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 fi
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16146 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16147 if test $ac_cv_type_mbstate_t = yes; then
16148
16149 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16150
16151 else
16152
16153 $as_echo "#define mbstate_t int" >>confdefs.h
16154
16155 fi
16156
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16158 $as_echo_n "checking for C restricted array declarations... " >&6; }
16159 if ${emacs_cv_c_restrict_arr+:} false; then :
16160 $as_echo_n "(cached) " >&6
16161 else
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16164 void fred (int x[__restrict]);
16165 int
16166 main ()
16167 {
16168
16169 ;
16170 return 0;
16171 }
16172 _ACEOF
16173 if ac_fn_c_try_compile "$LINENO"; then :
16174 emacs_cv_c_restrict_arr=yes
16175 else
16176 emacs_cv_c_restrict_arr=no
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16179 fi
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16181 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16182 if test "$emacs_cv_c_restrict_arr" = yes; then
16183
16184 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16185
16186 fi
16187
16188
16189
16190 # Set up the CFLAGS for real compilation, so we can substitute it.
16191 CFLAGS="$REAL_CFLAGS"
16192 CPPFLAGS="$REAL_CPPFLAGS"
16193
16194 ## Hack to detect a buggy GCC version.
16195 if test "x$GCC" = xyes \
16196 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16197 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16198 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16199 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16200 fi
16201
16202 #### Find out which version of Emacs this is.
16203 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
16204 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
16205 if test x"${version}" = x; then
16206 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
16207 fi
16208 if test x"${version}" != x"$PACKAGE_VERSION"; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
16210 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
16211 fi
16212
16213 ### Specify what sort of things we'll be editing into Makefile and config.h.
16214 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16215
16216
16217 ## Unused?
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16239 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16240 ## end of LIBX_BASE, but nothing ever set it.
16241
16242
16243
16244
16245 ## Used in lwlib/Makefile.in.
16246
16247 if test -n "${machfile}"; then
16248 M_FILE="\$(srcdir)/${machfile}"
16249 else
16250 M_FILE=
16251 fi
16252 S_FILE="\$(srcdir)/${opsysfile}"
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264 cat >>confdefs.h <<_ACEOF
16265 #define EMACS_CONFIGURATION "${canonical}"
16266 _ACEOF
16267
16268
16269 cat >>confdefs.h <<_ACEOF
16270 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16271 _ACEOF
16272
16273 if test -n "$machfile"; then
16274
16275 cat >>confdefs.h <<_ACEOF
16276 #define config_machfile "${machfile}"
16277 _ACEOF
16278
16279 fi
16280
16281 cat >>confdefs.h <<_ACEOF
16282 #define config_opsysfile "${opsysfile}"
16283 _ACEOF
16284
16285
16286 XMENU_OBJ=
16287 XOBJ=
16288 FONT_OBJ=
16289 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16290
16291 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16292
16293 XMENU_OBJ=xmenu.o
16294 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16295 FONT_OBJ=xfont.o
16296 if test "$HAVE_XFT" = "yes"; then
16297 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16298 elif test "$HAVE_FREETYPE" = "yes"; then
16299 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16300 fi
16301
16302 fi
16303
16304
16305
16306
16307 WIDGET_OBJ=
16308 MOTIF_LIBW=
16309 if test "${USE_X_TOOLKIT}" != "none" ; then
16310 WIDGET_OBJ=widget.o
16311
16312 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16313
16314 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16315
16316 $as_echo "#define USE_LUCID 1" >>confdefs.h
16317
16318 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16319
16320 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16321
16322 MOTIF_LIBW=-lXm
16323 case "$opsys" in
16324 gnu-linux)
16325 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16326 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16327 ;;
16328
16329 unixware)
16330 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16331 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16332 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16333 ;;
16334
16335 aix4-2)
16336 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16337 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16338 ;;
16339 esac
16340 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16341 fi
16342 fi
16343
16344
16345 TOOLKIT_LIBW=
16346 case "$USE_X_TOOLKIT" in
16347 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16348 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16349 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16350 esac
16351
16352
16353 if test "$USE_X_TOOLKIT" = "none"; then
16354 LIBXT_OTHER="\$(LIBXSM)"
16355 OLDXMENU_TARGET="really-oldXMenu"
16356 else
16357 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16358 OLDXMENU_TARGET="really-lwlib"
16359 fi
16360
16361
16362 ## The X Menu stuff is present in the X10 distribution, but missing
16363 ## from X11. If we have X10, just use the installed library;
16364 ## otherwise, use our own copy.
16365 if test "${HAVE_X11}" = "yes" ; then
16366
16367 $as_echo "#define HAVE_X11 1" >>confdefs.h
16368
16369
16370 if test "$USE_X_TOOLKIT" = "none"; then
16371 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16372 else
16373 OLDXMENU="\${lwlibdir}/liblw.a"
16374 fi
16375 LIBXMENU="\$(OLDXMENU)"
16376 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16377 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16378 else
16379 ## For a syntactically valid Makefile; not actually used for anything.
16380 ## See comments in src/Makefile.in.
16381 OLDXMENU=nothing
16382 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16383 if test "${HAVE_X_WINDOWS}" = "yes"; then
16384 LIBXMENU="-lXMenu"
16385 else
16386 LIBXMENU=
16387 fi
16388 LIBX_OTHER=
16389 OLDXMENU_DEPS=
16390 fi
16391
16392 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16393 OLDXMENU_TARGET=
16394 OLDXMENU=nothing
16395 LIBXMENU=
16396 OLDXMENU_DEPS=
16397 fi
16398
16399
16400
16401
16402
16403
16404
16405 if test "${HAVE_MENUS}" = "yes" ; then
16406
16407 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16408
16409 fi
16410
16411 if test "${GNU_MALLOC}" = "yes" ; then
16412
16413 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16414
16415 fi
16416
16417 RALLOC_OBJ=
16418 if test "${REL_ALLOC}" = "yes" ; then
16419
16420 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16421
16422
16423 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16424 fi
16425
16426
16427 if test "$opsys" = "cygwin"; then
16428 CYGWIN_OBJ="sheap.o"
16429 ## Cygwin differs because of its unexec().
16430 PRE_ALLOC_OBJ=
16431 POST_ALLOC_OBJ=lastfile.o
16432 else
16433 CYGWIN_OBJ=
16434 PRE_ALLOC_OBJ=lastfile.o
16435 POST_ALLOC_OBJ=
16436 fi
16437
16438
16439
16440
16441
16442 case "$opsys" in
16443 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
16444
16445 darwin)
16446 ## The -headerpad option tells ld (see man page) to leave room at the
16447 ## end of the header for adding load commands. Needed for dumping.
16448 ## 0x690 is the total size of 30 segment load commands (at 56
16449 ## each); under Cocoa 31 commands are required.
16450 if test "$HAVE_NS" = "yes"; then
16451 libs_nsgui="-framework AppKit"
16452 headerpad_extra=6C8
16453 else
16454 libs_nsgui=
16455 headerpad_extra=690
16456 fi
16457 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
16458
16459 ## This is here because src/Makefile.in did some extra fiddling around
16460 ## with LD_SWITCH_SYSTEM. The cpp logic was:
16461 ## #ifndef LD_SWITCH_SYSTEM
16462 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
16463 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
16464 ## not using gcc, darwin system not on an alpha (ie darwin, since
16465 ## darwin + alpha does not occur).
16466 ## Because this was done in src/Makefile.in, the resulting part of
16467 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
16468 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
16469 ## rather than LD_SWITCH_SYSTEM.
16470 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
16471 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
16472 ;;
16473
16474 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
16475 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
16476 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
16477 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
16478 ## had different values in configure (in ac_link) and src/Makefile.in.
16479 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
16480 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
16481
16482 *) LD_SWITCH_SYSTEM_TEMACS= ;;
16483 esac
16484
16485 if test "$NS_IMPL_GNUSTEP" = "yes"; then
16486 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
16487 fi
16488
16489
16490
16491
16492 LD_FIRSTFLAG=
16493 ORDINARY_LINK=
16494 case "$opsys" in
16495 ## gnu: GNU needs its own crt0.
16496 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
16497
16498 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
16499 ## library search parth, i.e. it won't search /usr/lib for libc and
16500 ## friends. Using -nostartfiles instead avoids this problem, and
16501 ## will also work on earlier NetBSD releases.
16502 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
16503
16504 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
16505 ## MkLinux/LinuxPPC needs this.
16506 ## ibms390x only supports opsys = gnu-linux so it can be added here.
16507 gnu-*)
16508 case "$machine" in
16509 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
16510 esac
16511 ;;
16512 esac
16513
16514
16515 if test "x$ORDINARY_LINK" = "xyes"; then
16516
16517 LD_FIRSTFLAG=""
16518
16519 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
16520
16521
16522 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
16523 ## freebsd, gnu-* not on macppc|ibms390x.
16524 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
16525
16526 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
16527 ## places that are difficult to figure out at make time. Fortunately,
16528 ## these same versions allow you to pass arbitrary flags on to the
16529 ## linker, so there is no reason not to use it as a linker.
16530 ##
16531 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
16532 ## searching for libraries in its internal directories, so we have to
16533 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
16534 LD_FIRSTFLAG="-nostdlib"
16535 fi
16536
16537 ## FIXME? What setting of EDIT_LDFLAGS should this have?
16538 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
16539
16540
16541
16542
16543 ## FIXME? The logic here is not precisely the same as that above.
16544 ## There is no check here for a pre-defined LD_FIRSTFLAG.
16545 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
16546 LIB_GCC=
16547 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
16548
16549 case "$opsys" in
16550 freebsd|netbsd|openbsd) LIB_GCC= ;;
16551
16552 gnu-*)
16553 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
16554 ## build on ARM EABI under GNU/Linux. (Bug#5518)
16555 case $host_cpu in
16556 arm*)
16557 LIB_GCC="-lgcc_s"
16558 ;;
16559 *)
16560 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
16561 ## immediately undefine it again and redefine it to empty.
16562 ## Was the C_SWITCH_X_SITE part really necessary?
16563 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
16564 LIB_GCC=
16565 ;;
16566 esac
16567 ;;
16568
16569 ## Ask GCC where to find libgcc.a.
16570 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
16571 esac
16572 fi
16573
16574
16575 TOOLTIP_SUPPORT=
16576 WINDOW_SUPPORT=
16577 ## If we're using X11/GNUstep, define some consequences.
16578 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
16579
16580 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
16581
16582
16583 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
16584
16585 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
16586 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
16587
16588 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
16589 test "$HAVE_X_WINDOWS" = "yes" && \
16590 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
16591
16592 fi
16593
16594
16595
16596
16597
16598
16599
16600 #### Report on what we decided to do.
16601 #### Report GTK as a toolkit, even if it doesn't use Xt.
16602 #### It makes printing result more understandable as using GTK sets
16603 #### toolkit_scroll_bars to yes by default.
16604 if test "${HAVE_GTK}" = "yes"; then
16605 USE_X_TOOLKIT=GTK
16606 fi
16607
16608 and_machfile=
16609 if test -n "$machfile"; then
16610 and_machfile=" and \`${machfile}'"
16611 fi
16612
16613 echo "
16614 Configured for \`${canonical}'.
16615
16616 Where should the build process find the source code? ${srcdir}
16617 What operating system and machine description files should Emacs use?
16618 \`${opsysfile}'${and_machfile}
16619 What compiler should emacs be built with? ${CC} ${CFLAGS}
16620 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
16621 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
16622 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
16623 What window system should Emacs use? ${window_system}
16624 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
16625
16626 if test -n "${x_includes}"; then
16627 echo " Where do we find X Windows header files? ${x_includes}"
16628 else
16629 echo " Where do we find X Windows header files? Standard dirs"
16630 fi
16631 if test -n "${x_libraries}"; then
16632 echo " Where do we find X Windows libraries? ${x_libraries}"
16633 else
16634 echo " Where do we find X Windows libraries? Standard dirs"
16635 fi
16636
16637 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
16638 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
16639 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
16640 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
16641 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
16642 echo " Does Emacs use -lpng? ${HAVE_PNG}"
16643 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
16644 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
16645
16646 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
16647 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
16648 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
16649 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
16650 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
16651 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
16652
16653 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
16654 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
16655 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
16656 echo " Does Emacs use -lxft? ${HAVE_XFT}"
16657
16658 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
16659 echo
16660
16661 if test $USE_XASSERTS = yes; then
16662 echo " Compiling with asserts turned on."
16663 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
16664 fi
16665
16666 echo
16667
16668 if test "$HAVE_NS" = "yes"; then
16669 echo
16670 echo "You must run \"make install\" in order to test the built application.
16671 The installed application will go to nextstep/Emacs.app and can be
16672 run or moved from there."
16673 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
16674 echo "The application will be fully self-contained."
16675 else
16676 echo "The lisp resources for the application will be installed under ${prefix}.
16677 You may need to run \"make install\" with sudo. The application will fail
16678 to run if these resources are not installed."
16679 fi
16680 echo
16681 fi
16682
16683
16684 # Remove any trailing slashes in these variables.
16685 test "${prefix}" != NONE &&
16686 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
16687 test "${exec_prefix}" != NONE &&
16688 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
16689
16690 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"
16691
16692 ac_config_commands="$ac_config_commands default"
16693
16694 cat >confcache <<\_ACEOF
16695 # This file is a shell script that caches the results of configure
16696 # tests run on this system so they can be shared between configure
16697 # scripts and configure runs, see configure's option --config-cache.
16698 # It is not useful on other systems. If it contains results you don't
16699 # want to keep, you may remove or edit it.
16700 #
16701 # config.status only pays attention to the cache file if you give it
16702 # the --recheck option to rerun configure.
16703 #
16704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16706 # following values.
16707
16708 _ACEOF
16709
16710 # The following way of writing the cache mishandles newlines in values,
16711 # but we know of no workaround that is simple, portable, and efficient.
16712 # So, we kill variables containing newlines.
16713 # Ultrix sh set writes to stderr and can't be redirected directly,
16714 # and sets the high bit in the cache file unless we assign to the vars.
16715 (
16716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16717 eval ac_val=\$$ac_var
16718 case $ac_val in #(
16719 *${as_nl}*)
16720 case $ac_var in #(
16721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16723 esac
16724 case $ac_var in #(
16725 _ | IFS | as_nl) ;; #(
16726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16727 *) { eval $ac_var=; unset $ac_var;} ;;
16728 esac ;;
16729 esac
16730 done
16731
16732 (set) 2>&1 |
16733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16734 *${as_nl}ac_space=\ *)
16735 # `set' does not quote correctly, so add quotes: double-quote
16736 # substitution turns \\\\ into \\, and sed turns \\ into \.
16737 sed -n \
16738 "s/'/'\\\\''/g;
16739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16740 ;; #(
16741 *)
16742 # `set' quotes correctly as required by POSIX, so do not add quotes.
16743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16744 ;;
16745 esac |
16746 sort
16747 ) |
16748 sed '
16749 /^ac_cv_env_/b end
16750 t clear
16751 :clear
16752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16753 t end
16754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16755 :end' >>confcache
16756 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16757 if test -w "$cache_file"; then
16758 if test "x$cache_file" != "x/dev/null"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16760 $as_echo "$as_me: updating cache $cache_file" >&6;}
16761 if test ! -f "$cache_file" || test -h "$cache_file"; then
16762 cat confcache >"$cache_file"
16763 else
16764 case $cache_file in #(
16765 */* | ?:*)
16766 mv -f confcache "$cache_file"$$ &&
16767 mv -f "$cache_file"$$ "$cache_file" ;; #(
16768 *)
16769 mv -f confcache "$cache_file" ;;
16770 esac
16771 fi
16772 fi
16773 else
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16776 fi
16777 fi
16778 rm -f confcache
16779
16780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16781 # Let make expand exec_prefix.
16782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16783
16784 DEFS=-DHAVE_CONFIG_H
16785
16786 ac_libobjs=
16787 ac_ltlibobjs=
16788 U=
16789 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16790 # 1. Remove the extension, and $U if already installed.
16791 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16792 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16793 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16794 # will be set to the directory where LIBOBJS objects are built.
16795 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16796 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16797 done
16798 LIBOBJS=$ac_libobjs
16799
16800 LTLIBOBJS=$ac_ltlibobjs
16801
16802
16803 if test -n "$EXEEXT"; then
16804 am__EXEEXT_TRUE=
16805 am__EXEEXT_FALSE='#'
16806 else
16807 am__EXEEXT_TRUE='#'
16808 am__EXEEXT_FALSE=
16809 fi
16810
16811 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16812 as_fn_error $? "conditional \"AMDEP\" was never defined.
16813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16814 fi
16815 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16816 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16818 fi
16819
16820 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16821 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
16822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16823 fi
16824
16825 gl_libobjs=
16826 gl_ltlibobjs=
16827 if test -n "$gl_LIBOBJS"; then
16828 # Remove the extension.
16829 sed_drop_objext='s/\.o$//;s/\.obj$//'
16830 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16831 gl_libobjs="$gl_libobjs $i.$ac_objext"
16832 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16833 done
16834 fi
16835 gl_LIBOBJS=$gl_libobjs
16836
16837 gl_LTLIBOBJS=$gl_ltlibobjs
16838
16839
16840
16841 gltests_libobjs=
16842 gltests_ltlibobjs=
16843 if test -n "$gltests_LIBOBJS"; then
16844 # Remove the extension.
16845 sed_drop_objext='s/\.o$//;s/\.obj$//'
16846 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16847 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16848 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16849 done
16850 fi
16851 gltests_LIBOBJS=$gltests_libobjs
16852
16853 gltests_LTLIBOBJS=$gltests_ltlibobjs
16854
16855
16856
16857 : "${CONFIG_STATUS=./config.status}"
16858 ac_write_fail=0
16859 ac_clean_files_save=$ac_clean_files
16860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16862 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16863 as_write_fail=0
16864 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16865 #! $SHELL
16866 # Generated by $as_me.
16867 # Run this file to recreate the current configuration.
16868 # Compiler output produced by configure, useful for debugging
16869 # configure, is in config.log if it exists.
16870
16871 debug=false
16872 ac_cs_recheck=false
16873 ac_cs_silent=false
16874
16875 SHELL=\${CONFIG_SHELL-$SHELL}
16876 export SHELL
16877 _ASEOF
16878 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16879 ## -------------------- ##
16880 ## M4sh Initialization. ##
16881 ## -------------------- ##
16882
16883 # Be more Bourne compatible
16884 DUALCASE=1; export DUALCASE # for MKS sh
16885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16886 emulate sh
16887 NULLCMD=:
16888 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16889 # is contrary to our usage. Disable this feature.
16890 alias -g '${1+"$@"}'='"$@"'
16891 setopt NO_GLOB_SUBST
16892 else
16893 case `(set -o) 2>/dev/null` in #(
16894 *posix*) :
16895 set -o posix ;; #(
16896 *) :
16897 ;;
16898 esac
16899 fi
16900
16901
16902 as_nl='
16903 '
16904 export as_nl
16905 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16906 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16909 # Prefer a ksh shell builtin over an external printf program on Solaris,
16910 # but without wasting forks for bash or zsh.
16911 if test -z "$BASH_VERSION$ZSH_VERSION" \
16912 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16913 as_echo='print -r --'
16914 as_echo_n='print -rn --'
16915 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16916 as_echo='printf %s\n'
16917 as_echo_n='printf %s'
16918 else
16919 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16920 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16921 as_echo_n='/usr/ucb/echo -n'
16922 else
16923 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16924 as_echo_n_body='eval
16925 arg=$1;
16926 case $arg in #(
16927 *"$as_nl"*)
16928 expr "X$arg" : "X\\(.*\\)$as_nl";
16929 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16930 esac;
16931 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16932 '
16933 export as_echo_n_body
16934 as_echo_n='sh -c $as_echo_n_body as_echo'
16935 fi
16936 export as_echo_body
16937 as_echo='sh -c $as_echo_body as_echo'
16938 fi
16939
16940 # The user is always right.
16941 if test "${PATH_SEPARATOR+set}" != set; then
16942 PATH_SEPARATOR=:
16943 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16944 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16945 PATH_SEPARATOR=';'
16946 }
16947 fi
16948
16949
16950 # IFS
16951 # We need space, tab and new line, in precisely that order. Quoting is
16952 # there to prevent editors from complaining about space-tab.
16953 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16954 # splitting by setting IFS to empty value.)
16955 IFS=" "" $as_nl"
16956
16957 # Find who we are. Look in the path if we contain no directory separator.
16958 as_myself=
16959 case $0 in #((
16960 *[\\/]* ) as_myself=$0 ;;
16961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16962 for as_dir in $PATH
16963 do
16964 IFS=$as_save_IFS
16965 test -z "$as_dir" && as_dir=.
16966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16967 done
16968 IFS=$as_save_IFS
16969
16970 ;;
16971 esac
16972 # We did not find ourselves, most probably we were run as `sh COMMAND'
16973 # in which case we are not to be found in the path.
16974 if test "x$as_myself" = x; then
16975 as_myself=$0
16976 fi
16977 if test ! -f "$as_myself"; then
16978 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16979 exit 1
16980 fi
16981
16982 # Unset variables that we do not need and which cause bugs (e.g. in
16983 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16984 # suppresses any "Segmentation fault" message there. '((' could
16985 # trigger a bug in pdksh 5.2.14.
16986 for as_var in BASH_ENV ENV MAIL MAILPATH
16987 do eval test x\${$as_var+set} = xset \
16988 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16989 done
16990 PS1='$ '
16991 PS2='> '
16992 PS4='+ '
16993
16994 # NLS nuisances.
16995 LC_ALL=C
16996 export LC_ALL
16997 LANGUAGE=C
16998 export LANGUAGE
16999
17000 # CDPATH.
17001 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17002
17003
17004 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17005 # ----------------------------------------
17006 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17007 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17008 # script with STATUS, using 1 if that was 0.
17009 as_fn_error ()
17010 {
17011 as_status=$1; test $as_status -eq 0 && as_status=1
17012 if test "$4"; then
17013 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17014 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17015 fi
17016 $as_echo "$as_me: error: $2" >&2
17017 as_fn_exit $as_status
17018 } # as_fn_error
17019
17020
17021 # as_fn_set_status STATUS
17022 # -----------------------
17023 # Set $? to STATUS, without forking.
17024 as_fn_set_status ()
17025 {
17026 return $1
17027 } # as_fn_set_status
17028
17029 # as_fn_exit STATUS
17030 # -----------------
17031 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17032 as_fn_exit ()
17033 {
17034 set +e
17035 as_fn_set_status $1
17036 exit $1
17037 } # as_fn_exit
17038
17039 # as_fn_unset VAR
17040 # ---------------
17041 # Portably unset VAR.
17042 as_fn_unset ()
17043 {
17044 { eval $1=; unset $1;}
17045 }
17046 as_unset=as_fn_unset
17047 # as_fn_append VAR VALUE
17048 # ----------------------
17049 # Append the text in VALUE to the end of the definition contained in VAR. Take
17050 # advantage of any shell optimizations that allow amortized linear growth over
17051 # repeated appends, instead of the typical quadratic growth present in naive
17052 # implementations.
17053 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17054 eval 'as_fn_append ()
17055 {
17056 eval $1+=\$2
17057 }'
17058 else
17059 as_fn_append ()
17060 {
17061 eval $1=\$$1\$2
17062 }
17063 fi # as_fn_append
17064
17065 # as_fn_arith ARG...
17066 # ------------------
17067 # Perform arithmetic evaluation on the ARGs, and store the result in the
17068 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17069 # must be portable across $(()) and expr.
17070 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17071 eval 'as_fn_arith ()
17072 {
17073 as_val=$(( $* ))
17074 }'
17075 else
17076 as_fn_arith ()
17077 {
17078 as_val=`expr "$@" || test $? -eq 1`
17079 }
17080 fi # as_fn_arith
17081
17082
17083 if expr a : '\(a\)' >/dev/null 2>&1 &&
17084 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17085 as_expr=expr
17086 else
17087 as_expr=false
17088 fi
17089
17090 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17091 as_basename=basename
17092 else
17093 as_basename=false
17094 fi
17095
17096 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17097 as_dirname=dirname
17098 else
17099 as_dirname=false
17100 fi
17101
17102 as_me=`$as_basename -- "$0" ||
17103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17104 X"$0" : 'X\(//\)$' \| \
17105 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17106 $as_echo X/"$0" |
17107 sed '/^.*\/\([^/][^/]*\)\/*$/{
17108 s//\1/
17109 q
17110 }
17111 /^X\/\(\/\/\)$/{
17112 s//\1/
17113 q
17114 }
17115 /^X\/\(\/\).*/{
17116 s//\1/
17117 q
17118 }
17119 s/.*/./; q'`
17120
17121 # Avoid depending upon Character Ranges.
17122 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17123 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17124 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17125 as_cr_digits='0123456789'
17126 as_cr_alnum=$as_cr_Letters$as_cr_digits
17127
17128 ECHO_C= ECHO_N= ECHO_T=
17129 case `echo -n x` in #(((((
17130 -n*)
17131 case `echo 'xy\c'` in
17132 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17133 xy) ECHO_C='\c';;
17134 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17135 ECHO_T=' ';;
17136 esac;;
17137 *)
17138 ECHO_N='-n';;
17139 esac
17140
17141 rm -f conf$$ conf$$.exe conf$$.file
17142 if test -d conf$$.dir; then
17143 rm -f conf$$.dir/conf$$.file
17144 else
17145 rm -f conf$$.dir
17146 mkdir conf$$.dir 2>/dev/null
17147 fi
17148 if (echo >conf$$.file) 2>/dev/null; then
17149 if ln -s conf$$.file conf$$ 2>/dev/null; then
17150 as_ln_s='ln -s'
17151 # ... but there are two gotchas:
17152 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17153 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17154 # In both cases, we have to default to `cp -p'.
17155 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17156 as_ln_s='cp -p'
17157 elif ln conf$$.file conf$$ 2>/dev/null; then
17158 as_ln_s=ln
17159 else
17160 as_ln_s='cp -p'
17161 fi
17162 else
17163 as_ln_s='cp -p'
17164 fi
17165 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17166 rmdir conf$$.dir 2>/dev/null
17167
17168
17169 # as_fn_mkdir_p
17170 # -------------
17171 # Create "$as_dir" as a directory, including parents if necessary.
17172 as_fn_mkdir_p ()
17173 {
17174
17175 case $as_dir in #(
17176 -*) as_dir=./$as_dir;;
17177 esac
17178 test -d "$as_dir" || eval $as_mkdir_p || {
17179 as_dirs=
17180 while :; do
17181 case $as_dir in #(
17182 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17183 *) as_qdir=$as_dir;;
17184 esac
17185 as_dirs="'$as_qdir' $as_dirs"
17186 as_dir=`$as_dirname -- "$as_dir" ||
17187 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17188 X"$as_dir" : 'X\(//\)[^/]' \| \
17189 X"$as_dir" : 'X\(//\)$' \| \
17190 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17191 $as_echo X"$as_dir" |
17192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17193 s//\1/
17194 q
17195 }
17196 /^X\(\/\/\)[^/].*/{
17197 s//\1/
17198 q
17199 }
17200 /^X\(\/\/\)$/{
17201 s//\1/
17202 q
17203 }
17204 /^X\(\/\).*/{
17205 s//\1/
17206 q
17207 }
17208 s/.*/./; q'`
17209 test -d "$as_dir" && break
17210 done
17211 test -z "$as_dirs" || eval "mkdir $as_dirs"
17212 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17213
17214
17215 } # as_fn_mkdir_p
17216 if mkdir -p . 2>/dev/null; then
17217 as_mkdir_p='mkdir -p "$as_dir"'
17218 else
17219 test -d ./-p && rmdir ./-p
17220 as_mkdir_p=false
17221 fi
17222
17223 if test -x / >/dev/null 2>&1; then
17224 as_test_x='test -x'
17225 else
17226 if ls -dL / >/dev/null 2>&1; then
17227 as_ls_L_option=L
17228 else
17229 as_ls_L_option=
17230 fi
17231 as_test_x='
17232 eval sh -c '\''
17233 if test -d "$1"; then
17234 test -d "$1/.";
17235 else
17236 case $1 in #(
17237 -*)set "./$1";;
17238 esac;
17239 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17240 ???[sx]*):;;*)false;;esac;fi
17241 '\'' sh
17242 '
17243 fi
17244 as_executable_p=$as_test_x
17245
17246 # Sed expression to map a string onto a valid CPP name.
17247 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17248
17249 # Sed expression to map a string onto a valid variable name.
17250 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17251
17252
17253 exec 6>&1
17254 ## ----------------------------------- ##
17255 ## Main body of $CONFIG_STATUS script. ##
17256 ## ----------------------------------- ##
17257 _ASEOF
17258 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17259
17260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17261 # Save the log message, to keep $0 and so on meaningful, and to
17262 # report actual input values of CONFIG_FILES etc. instead of their
17263 # values after options handling.
17264 ac_log="
17265 This file was extended by emacs $as_me 24.0.50, which was
17266 generated by GNU Autoconf 2.68. Invocation command line was
17267
17268 CONFIG_FILES = $CONFIG_FILES
17269 CONFIG_HEADERS = $CONFIG_HEADERS
17270 CONFIG_LINKS = $CONFIG_LINKS
17271 CONFIG_COMMANDS = $CONFIG_COMMANDS
17272 $ $0 $@
17273
17274 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17275 "
17276
17277 _ACEOF
17278
17279 case $ac_config_files in *"
17280 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17281 esac
17282
17283 case $ac_config_headers in *"
17284 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17285 esac
17286
17287
17288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17289 # Files that config.status was made for.
17290 config_files="$ac_config_files"
17291 config_headers="$ac_config_headers"
17292 config_commands="$ac_config_commands"
17293
17294 _ACEOF
17295
17296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17297 ac_cs_usage="\
17298 \`$as_me' instantiates files and other configuration actions
17299 from templates according to the current configuration. Unless the files
17300 and actions are specified as TAGs, all are instantiated by default.
17301
17302 Usage: $0 [OPTION]... [TAG]...
17303
17304 -h, --help print this help, then exit
17305 -V, --version print version number and configuration settings, then exit
17306 --config print configuration, then exit
17307 -q, --quiet, --silent
17308 do not print progress messages
17309 -d, --debug don't remove temporary files
17310 --recheck update $as_me by reconfiguring in the same conditions
17311 --file=FILE[:TEMPLATE]
17312 instantiate the configuration file FILE
17313 --header=FILE[:TEMPLATE]
17314 instantiate the configuration header FILE
17315
17316 Configuration files:
17317 $config_files
17318
17319 Configuration headers:
17320 $config_headers
17321
17322 Configuration commands:
17323 $config_commands
17324
17325 Report bugs to the package provider."
17326
17327 _ACEOF
17328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17329 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17330 ac_cs_version="\\
17331 emacs config.status 24.0.50
17332 configured by $0, generated by GNU Autoconf 2.68,
17333 with options \\"\$ac_cs_config\\"
17334
17335 Copyright (C) 2010 Free Software Foundation, Inc.
17336 This config.status script is free software; the Free Software Foundation
17337 gives unlimited permission to copy, distribute and modify it."
17338
17339 ac_pwd='$ac_pwd'
17340 srcdir='$srcdir'
17341 INSTALL='$INSTALL'
17342 MKDIR_P='$MKDIR_P'
17343 AWK='$AWK'
17344 test -n "\$AWK" || AWK=awk
17345 _ACEOF
17346
17347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17348 # The default lists apply if the user does not specify any file.
17349 ac_need_defaults=:
17350 while test $# != 0
17351 do
17352 case $1 in
17353 --*=?*)
17354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17355 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17356 ac_shift=:
17357 ;;
17358 --*=)
17359 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17360 ac_optarg=
17361 ac_shift=:
17362 ;;
17363 *)
17364 ac_option=$1
17365 ac_optarg=$2
17366 ac_shift=shift
17367 ;;
17368 esac
17369
17370 case $ac_option in
17371 # Handling of the options.
17372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17373 ac_cs_recheck=: ;;
17374 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17375 $as_echo "$ac_cs_version"; exit ;;
17376 --config | --confi | --conf | --con | --co | --c )
17377 $as_echo "$ac_cs_config"; exit ;;
17378 --debug | --debu | --deb | --de | --d | -d )
17379 debug=: ;;
17380 --file | --fil | --fi | --f )
17381 $ac_shift
17382 case $ac_optarg in
17383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17384 '') as_fn_error $? "missing file argument" ;;
17385 esac
17386 as_fn_append CONFIG_FILES " '$ac_optarg'"
17387 ac_need_defaults=false;;
17388 --header | --heade | --head | --hea )
17389 $ac_shift
17390 case $ac_optarg in
17391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17392 esac
17393 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17394 ac_need_defaults=false;;
17395 --he | --h)
17396 # Conflict between --help and --header
17397 as_fn_error $? "ambiguous option: \`$1'
17398 Try \`$0 --help' for more information.";;
17399 --help | --hel | -h )
17400 $as_echo "$ac_cs_usage"; exit ;;
17401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17402 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17403 ac_cs_silent=: ;;
17404
17405 # This is an error.
17406 -*) as_fn_error $? "unrecognized option: \`$1'
17407 Try \`$0 --help' for more information." ;;
17408
17409 *) as_fn_append ac_config_targets " $1"
17410 ac_need_defaults=false ;;
17411
17412 esac
17413 shift
17414 done
17415
17416 ac_configure_extra_args=
17417
17418 if $ac_cs_silent; then
17419 exec 6>/dev/null
17420 ac_configure_extra_args="$ac_configure_extra_args --silent"
17421 fi
17422
17423 _ACEOF
17424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17425 if \$ac_cs_recheck; then
17426 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17427 shift
17428 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17429 CONFIG_SHELL='$SHELL'
17430 export CONFIG_SHELL
17431 exec "\$@"
17432 fi
17433
17434 _ACEOF
17435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17436 exec 5>>config.log
17437 {
17438 echo
17439 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17440 ## Running $as_me. ##
17441 _ASBOX
17442 $as_echo "$ac_log"
17443 } >&5
17444
17445 _ACEOF
17446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17447 #
17448 # INIT-COMMANDS
17449 #
17450 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17451 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
17452
17453 _ACEOF
17454
17455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17456
17457 # Handling of arguments.
17458 for ac_config_target in $ac_config_targets
17459 do
17460 case $ac_config_target in
17461 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
17462 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17463 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17464 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17465 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
17466 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
17467 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
17468 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
17469 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
17470 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
17471 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17472 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
17473 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
17474 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
17475 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17476
17477 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17478 esac
17479 done
17480
17481
17482 # If the user did not use the arguments to specify the items to instantiate,
17483 # then the envvar interface is used. Set only those that are not.
17484 # We use the long form for the default assignment because of an extremely
17485 # bizarre bug on SunOS 4.1.3.
17486 if $ac_need_defaults; then
17487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17488 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17489 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17490 fi
17491
17492 # Have a temporary directory for convenience. Make it in the build tree
17493 # simply because there is no reason against having it here, and in addition,
17494 # creating and moving files from /tmp can sometimes cause problems.
17495 # Hook for its removal unless debugging.
17496 # Note that there is a small window in which the directory will not be cleaned:
17497 # after its creation but before its name has been assigned to `$tmp'.
17498 $debug ||
17499 {
17500 tmp= ac_tmp=
17501 trap 'exit_status=$?
17502 : "${ac_tmp:=$tmp}"
17503 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17504 ' 0
17505 trap 'as_fn_exit 1' 1 2 13 15
17506 }
17507 # Create a (secure) tmp directory for tmp files.
17508
17509 {
17510 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17511 test -d "$tmp"
17512 } ||
17513 {
17514 tmp=./conf$$-$RANDOM
17515 (umask 077 && mkdir "$tmp")
17516 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17517 ac_tmp=$tmp
17518
17519 # Set up the scripts for CONFIG_FILES section.
17520 # No need to generate them if there are no CONFIG_FILES.
17521 # This happens for instance with `./config.status config.h'.
17522 if test -n "$CONFIG_FILES"; then
17523
17524 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17525 ac_cs_awk_getline=:
17526 ac_cs_awk_pipe_init=
17527 ac_cs_awk_read_file='
17528 while ((getline aline < (F[key])) > 0)
17529 print(aline)
17530 close(F[key])'
17531 ac_cs_awk_pipe_fini=
17532 else
17533 ac_cs_awk_getline=false
17534 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17535 ac_cs_awk_read_file='
17536 print "|#_!!_#|"
17537 print "cat " F[key] " &&"
17538 '$ac_cs_awk_pipe_init
17539 # The final `:' finishes the AND list.
17540 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17541 fi
17542 ac_cr=`echo X | tr X '\015'`
17543 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17544 # But we know of no other shell where ac_cr would be empty at this
17545 # point, so we can use a bashism as a fallback.
17546 if test "x$ac_cr" = x; then
17547 eval ac_cr=\$\'\\r\'
17548 fi
17549 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17550 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17551 ac_cs_awk_cr='\\r'
17552 else
17553 ac_cs_awk_cr=$ac_cr
17554 fi
17555
17556 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17557 _ACEOF
17558
17559 # Create commands to substitute file output variables.
17560 {
17561 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17562 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17563 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17564 echo "_ACAWK" &&
17565 echo "_ACEOF"
17566 } >conf$$files.sh &&
17567 . ./conf$$files.sh ||
17568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17569 rm -f conf$$files.sh
17570
17571 {
17572 echo "cat >conf$$subs.awk <<_ACEOF" &&
17573 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17574 echo "_ACEOF"
17575 } >conf$$subs.sh ||
17576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17578 ac_delim='%!_!# '
17579 for ac_last_try in false false false false false :; do
17580 . ./conf$$subs.sh ||
17581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17582
17583 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17584 if test $ac_delim_n = $ac_delim_num; then
17585 break
17586 elif $ac_last_try; then
17587 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17588 else
17589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17590 fi
17591 done
17592 rm -f conf$$subs.sh
17593
17594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17595 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17596 _ACEOF
17597 sed -n '
17598 h
17599 s/^/S["/; s/!.*/"]=/
17600 p
17601 g
17602 s/^[^!]*!//
17603 :repl
17604 t repl
17605 s/'"$ac_delim"'$//
17606 t delim
17607 :nl
17608 h
17609 s/\(.\{148\}\)..*/\1/
17610 t more1
17611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17612 p
17613 n
17614 b repl
17615 :more1
17616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17617 p
17618 g
17619 s/.\{148\}//
17620 t nl
17621 :delim
17622 h
17623 s/\(.\{148\}\)..*/\1/
17624 t more2
17625 s/["\\]/\\&/g; s/^/"/; s/$/"/
17626 p
17627 b
17628 :more2
17629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17630 p
17631 g
17632 s/.\{148\}//
17633 t delim
17634 ' <conf$$subs.awk | sed '
17635 /^[^""]/{
17636 N
17637 s/\n//
17638 }
17639 ' >>$CONFIG_STATUS || ac_write_fail=1
17640 rm -f conf$$subs.awk
17641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17642 _ACAWK
17643 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17644 for (key in S) S_is_set[key] = 1
17645 FS = "\a"
17646 \$ac_cs_awk_pipe_init
17647 }
17648 {
17649 line = $ 0
17650 nfields = split(line, field, "@")
17651 substed = 0
17652 len = length(field[1])
17653 for (i = 2; i < nfields; i++) {
17654 key = field[i]
17655 keylen = length(key)
17656 if (S_is_set[key]) {
17657 value = S[key]
17658 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17659 len += length(value) + length(field[++i])
17660 substed = 1
17661 } else
17662 len += 1 + keylen
17663 }
17664 if (nfields == 3 && !substed) {
17665 key = field[2]
17666 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17667 \$ac_cs_awk_read_file
17668 next
17669 }
17670 }
17671 print line
17672 }
17673 \$ac_cs_awk_pipe_fini
17674 _ACAWK
17675 _ACEOF
17676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17677 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17678 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17679 else
17680 cat
17681 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17682 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17683 _ACEOF
17684
17685 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17686 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17687 # trailing colons and then remove the whole line if VPATH becomes empty
17688 # (actually we leave an empty line to preserve line numbers).
17689 if test "x$srcdir" = x.; then
17690 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17691 h
17692 s///
17693 s/^/:/
17694 s/[ ]*$/:/
17695 s/:\$(srcdir):/:/g
17696 s/:\${srcdir}:/:/g
17697 s/:@srcdir@:/:/g
17698 s/^:*//
17699 s/:*$//
17700 x
17701 s/\(=[ ]*\).*/\1/
17702 G
17703 s/\n//
17704 s/^[^=]*=[ ]*$//
17705 }'
17706 fi
17707
17708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17709 fi # test -n "$CONFIG_FILES"
17710
17711 # Set up the scripts for CONFIG_HEADERS section.
17712 # No need to generate them if there are no CONFIG_HEADERS.
17713 # This happens for instance with `./config.status Makefile'.
17714 if test -n "$CONFIG_HEADERS"; then
17715 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17716 BEGIN {
17717 _ACEOF
17718
17719 # Transform confdefs.h into an awk script `defines.awk', embedded as
17720 # here-document in config.status, that substitutes the proper values into
17721 # config.h.in to produce config.h.
17722
17723 # Create a delimiter string that does not exist in confdefs.h, to ease
17724 # handling of long lines.
17725 ac_delim='%!_!# '
17726 for ac_last_try in false false :; do
17727 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17728 if test -z "$ac_tt"; then
17729 break
17730 elif $ac_last_try; then
17731 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17732 else
17733 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17734 fi
17735 done
17736
17737 # For the awk script, D is an array of macro values keyed by name,
17738 # likewise P contains macro parameters if any. Preserve backslash
17739 # newline sequences.
17740
17741 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17742 sed -n '
17743 s/.\{148\}/&'"$ac_delim"'/g
17744 t rset
17745 :rset
17746 s/^[ ]*#[ ]*define[ ][ ]*/ /
17747 t def
17748 d
17749 :def
17750 s/\\$//
17751 t bsnl
17752 s/["\\]/\\&/g
17753 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17754 D["\1"]=" \3"/p
17755 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17756 d
17757 :bsnl
17758 s/["\\]/\\&/g
17759 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17760 D["\1"]=" \3\\\\\\n"\\/p
17761 t cont
17762 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17763 t cont
17764 d
17765 :cont
17766 n
17767 s/.\{148\}/&'"$ac_delim"'/g
17768 t clear
17769 :clear
17770 s/\\$//
17771 t bsnlc
17772 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17773 d
17774 :bsnlc
17775 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17776 b cont
17777 ' <confdefs.h | sed '
17778 s/'"$ac_delim"'/"\\\
17779 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17780
17781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17782 for (key in D) D_is_set[key] = 1
17783 FS = "\a"
17784 }
17785 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17786 line = \$ 0
17787 split(line, arg, " ")
17788 if (arg[1] == "#") {
17789 defundef = arg[2]
17790 mac1 = arg[3]
17791 } else {
17792 defundef = substr(arg[1], 2)
17793 mac1 = arg[2]
17794 }
17795 split(mac1, mac2, "(") #)
17796 macro = mac2[1]
17797 prefix = substr(line, 1, index(line, defundef) - 1)
17798 if (D_is_set[macro]) {
17799 # Preserve the white space surrounding the "#".
17800 print prefix "define", macro P[macro] D[macro]
17801 next
17802 } else {
17803 # Replace #undef with comments. This is necessary, for example,
17804 # in the case of _POSIX_SOURCE, which is predefined and required
17805 # on some systems where configure will not decide to define it.
17806 if (defundef == "undef") {
17807 print "/*", prefix defundef, macro, "*/"
17808 next
17809 }
17810 }
17811 }
17812 { print }
17813 _ACAWK
17814 _ACEOF
17815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17816 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17817 fi # test -n "$CONFIG_HEADERS"
17818
17819
17820 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17821 shift
17822 for ac_tag
17823 do
17824 case $ac_tag in
17825 :[FHLC]) ac_mode=$ac_tag; continue;;
17826 esac
17827 case $ac_mode$ac_tag in
17828 :[FHL]*:*);;
17829 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17830 :[FH]-) ac_tag=-:-;;
17831 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17832 esac
17833 ac_save_IFS=$IFS
17834 IFS=:
17835 set x $ac_tag
17836 IFS=$ac_save_IFS
17837 shift
17838 ac_file=$1
17839 shift
17840
17841 case $ac_mode in
17842 :L) ac_source=$1;;
17843 :[FH])
17844 ac_file_inputs=
17845 for ac_f
17846 do
17847 case $ac_f in
17848 -) ac_f="$ac_tmp/stdin";;
17849 *) # Look for the file first in the build tree, then in the source tree
17850 # (if the path is not absolute). The absolute path cannot be DOS-style,
17851 # because $ac_f cannot contain `:'.
17852 test -f "$ac_f" ||
17853 case $ac_f in
17854 [\\/$]*) false;;
17855 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17856 esac ||
17857 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17858 esac
17859 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17860 as_fn_append ac_file_inputs " '$ac_f'"
17861 done
17862
17863 # Let's still pretend it is `configure' which instantiates (i.e., don't
17864 # use $as_me), people would be surprised to read:
17865 # /* config.h. Generated by config.status. */
17866 configure_input='Generated from '`
17867 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17868 `' by configure.'
17869 if test x"$ac_file" != x-; then
17870 configure_input="$ac_file. $configure_input"
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17872 $as_echo "$as_me: creating $ac_file" >&6;}
17873 fi
17874 # Neutralize special characters interpreted by sed in replacement strings.
17875 case $configure_input in #(
17876 *\&* | *\|* | *\\* )
17877 ac_sed_conf_input=`$as_echo "$configure_input" |
17878 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17879 *) ac_sed_conf_input=$configure_input;;
17880 esac
17881
17882 case $ac_tag in
17883 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17884 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17885 esac
17886 ;;
17887 esac
17888
17889 ac_dir=`$as_dirname -- "$ac_file" ||
17890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17891 X"$ac_file" : 'X\(//\)[^/]' \| \
17892 X"$ac_file" : 'X\(//\)$' \| \
17893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17894 $as_echo X"$ac_file" |
17895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17896 s//\1/
17897 q
17898 }
17899 /^X\(\/\/\)[^/].*/{
17900 s//\1/
17901 q
17902 }
17903 /^X\(\/\/\)$/{
17904 s//\1/
17905 q
17906 }
17907 /^X\(\/\).*/{
17908 s//\1/
17909 q
17910 }
17911 s/.*/./; q'`
17912 as_dir="$ac_dir"; as_fn_mkdir_p
17913 ac_builddir=.
17914
17915 case "$ac_dir" in
17916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17917 *)
17918 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17919 # A ".." for each directory in $ac_dir_suffix.
17920 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17921 case $ac_top_builddir_sub in
17922 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17923 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17924 esac ;;
17925 esac
17926 ac_abs_top_builddir=$ac_pwd
17927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17928 # for backward compatibility:
17929 ac_top_builddir=$ac_top_build_prefix
17930
17931 case $srcdir in
17932 .) # We are building in place.
17933 ac_srcdir=.
17934 ac_top_srcdir=$ac_top_builddir_sub
17935 ac_abs_top_srcdir=$ac_pwd ;;
17936 [\\/]* | ?:[\\/]* ) # Absolute name.
17937 ac_srcdir=$srcdir$ac_dir_suffix;
17938 ac_top_srcdir=$srcdir
17939 ac_abs_top_srcdir=$srcdir ;;
17940 *) # Relative name.
17941 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17942 ac_top_srcdir=$ac_top_build_prefix$srcdir
17943 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17944 esac
17945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17946
17947
17948 case $ac_mode in
17949 :F)
17950 #
17951 # CONFIG_FILE
17952 #
17953
17954 case $INSTALL in
17955 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17956 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17957 esac
17958 ac_MKDIR_P=$MKDIR_P
17959 case $MKDIR_P in
17960 [\\/$]* | ?:[\\/]* ) ;;
17961 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17962 esac
17963 _ACEOF
17964
17965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17966 # If the template does not know about datarootdir, expand it.
17967 # FIXME: This hack should be removed a few years after 2.60.
17968 ac_datarootdir_hack=; ac_datarootdir_seen=
17969 ac_sed_dataroot='
17970 /datarootdir/ {
17971 p
17972 q
17973 }
17974 /@datadir@/p
17975 /@docdir@/p
17976 /@infodir@/p
17977 /@localedir@/p
17978 /@mandir@/p'
17979 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17980 *datarootdir*) ac_datarootdir_seen=yes;;
17981 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17983 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17984 _ACEOF
17985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17986 ac_datarootdir_hack='
17987 s&@datadir@&$datadir&g
17988 s&@docdir@&$docdir&g
17989 s&@infodir@&$infodir&g
17990 s&@localedir@&$localedir&g
17991 s&@mandir@&$mandir&g
17992 s&\\\${datarootdir}&$datarootdir&g' ;;
17993 esac
17994 _ACEOF
17995
17996 # Neutralize VPATH when `$srcdir' = `.'.
17997 # Shell code in configure.ac might set extrasub.
17998 # FIXME: do we really want to maintain this feature?
17999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18000 ac_sed_extra="$ac_vpsub
18001 $extrasub
18002 _ACEOF
18003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18004 :t
18005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18006 s|@configure_input@|$ac_sed_conf_input|;t t
18007 s&@top_builddir@&$ac_top_builddir_sub&;t t
18008 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18009 s&@srcdir@&$ac_srcdir&;t t
18010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18011 s&@top_srcdir@&$ac_top_srcdir&;t t
18012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18013 s&@builddir@&$ac_builddir&;t t
18014 s&@abs_builddir@&$ac_abs_builddir&;t t
18015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18016 s&@INSTALL@&$ac_INSTALL&;t t
18017 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18018 $ac_datarootdir_hack
18019 "
18020 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18021 if $ac_cs_awk_getline; then
18022 $AWK -f "$ac_tmp/subs.awk"
18023 else
18024 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18025 fi \
18026 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18027
18028 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18029 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18030 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18031 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18033 which seems to be undefined. Please make sure it is defined" >&5
18034 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18035 which seems to be undefined. Please make sure it is defined" >&2;}
18036
18037 rm -f "$ac_tmp/stdin"
18038 case $ac_file in
18039 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18040 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18041 esac \
18042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18043 ;;
18044 :H)
18045 #
18046 # CONFIG_HEADER
18047 #
18048 if test x"$ac_file" != x-; then
18049 {
18050 $as_echo "/* $configure_input */" \
18051 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18052 } >"$ac_tmp/config.h" \
18053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18054 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18056 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18057 else
18058 rm -f "$ac_file"
18059 mv "$ac_tmp/config.h" "$ac_file" \
18060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18061 fi
18062 else
18063 $as_echo "/* $configure_input */" \
18064 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18065 || as_fn_error $? "could not create -" "$LINENO" 5
18066 fi
18067 # Compute "$ac_file"'s index in $config_headers.
18068 _am_arg="$ac_file"
18069 _am_stamp_count=1
18070 for _am_header in $config_headers :; do
18071 case $_am_header in
18072 $_am_arg | $_am_arg:* )
18073 break ;;
18074 * )
18075 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18076 esac
18077 done
18078 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18079 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18080 X"$_am_arg" : 'X\(//\)[^/]' \| \
18081 X"$_am_arg" : 'X\(//\)$' \| \
18082 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18083 $as_echo X"$_am_arg" |
18084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18085 s//\1/
18086 q
18087 }
18088 /^X\(\/\/\)[^/].*/{
18089 s//\1/
18090 q
18091 }
18092 /^X\(\/\/\)$/{
18093 s//\1/
18094 q
18095 }
18096 /^X\(\/\).*/{
18097 s//\1/
18098 q
18099 }
18100 s/.*/./; q'`/stamp-h$_am_stamp_count
18101 ;;
18102
18103 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18104 $as_echo "$as_me: executing $ac_file commands" >&6;}
18105 ;;
18106 esac
18107
18108
18109 case $ac_file$ac_mode in
18110 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18111 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18112 # are listed without --file. Let's play safe and only enable the eval
18113 # if we detect the quoting.
18114 case $CONFIG_FILES in
18115 *\'*) eval set x "$CONFIG_FILES" ;;
18116 *) set x $CONFIG_FILES ;;
18117 esac
18118 shift
18119 for mf
18120 do
18121 # Strip MF so we end up with the name of the file.
18122 mf=`echo "$mf" | sed -e 's/:.*$//'`
18123 # Check whether this is an Automake generated Makefile or not.
18124 # We used to match only the files named `Makefile.in', but
18125 # some people rename them; so instead we look at the file content.
18126 # Grep'ing the first line is not enough: some people post-process
18127 # each Makefile.in and add a new line on top of each file to say so.
18128 # Grep'ing the whole file is not good either: AIX grep has a line
18129 # limit of 2048, but all sed's we know have understand at least 4000.
18130 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18131 dirpart=`$as_dirname -- "$mf" ||
18132 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18133 X"$mf" : 'X\(//\)[^/]' \| \
18134 X"$mf" : 'X\(//\)$' \| \
18135 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18136 $as_echo X"$mf" |
18137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18138 s//\1/
18139 q
18140 }
18141 /^X\(\/\/\)[^/].*/{
18142 s//\1/
18143 q
18144 }
18145 /^X\(\/\/\)$/{
18146 s//\1/
18147 q
18148 }
18149 /^X\(\/\).*/{
18150 s//\1/
18151 q
18152 }
18153 s/.*/./; q'`
18154 else
18155 continue
18156 fi
18157 # Extract the definition of DEPDIR, am__include, and am__quote
18158 # from the Makefile without running `make'.
18159 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18160 test -z "$DEPDIR" && continue
18161 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18162 test -z "am__include" && continue
18163 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18164 # When using ansi2knr, U may be empty or an underscore; expand it
18165 U=`sed -n 's/^U = //p' < "$mf"`
18166 # Find all dependency output files, they are included files with
18167 # $(DEPDIR) in their names. We invoke sed twice because it is the
18168 # simplest approach to changing $(DEPDIR) to its actual value in the
18169 # expansion.
18170 for file in `sed -n "
18171 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18172 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18173 # Make sure the directory exists.
18174 test -f "$dirpart/$file" && continue
18175 fdir=`$as_dirname -- "$file" ||
18176 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18177 X"$file" : 'X\(//\)[^/]' \| \
18178 X"$file" : 'X\(//\)$' \| \
18179 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18180 $as_echo X"$file" |
18181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18182 s//\1/
18183 q
18184 }
18185 /^X\(\/\/\)[^/].*/{
18186 s//\1/
18187 q
18188 }
18189 /^X\(\/\/\)$/{
18190 s//\1/
18191 q
18192 }
18193 /^X\(\/\).*/{
18194 s//\1/
18195 q
18196 }
18197 s/.*/./; q'`
18198 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18199 # echo "creating $dirpart/$file"
18200 echo '# dummy' > "$dirpart/$file"
18201 done
18202 done
18203 }
18204 ;;
18205 "default":C)
18206
18207 ### Make the necessary directories, if they don't exist.
18208 for dir in etc lisp ; do
18209 test -d ${dir} || mkdir ${dir}
18210 done
18211
18212 echo creating src/epaths.h
18213 ${MAKE-make} epaths-force
18214
18215 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
18216 echo creating src/.gdbinit
18217 echo source $srcdir/src/.gdbinit > src/.gdbinit
18218 fi
18219
18220 ;;
18221
18222 esac
18223 done # for ac_tag
18224
18225
18226 as_fn_exit 0
18227 _ACEOF
18228 ac_clean_files=$ac_clean_files_save
18229
18230 test $ac_write_fail = 0 ||
18231 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18232
18233
18234 # configure is writing to config.log, and then calls config.status.
18235 # config.status does its own redirection, appending to config.log.
18236 # Unfortunately, on DOS this fails, as config.log is still kept open
18237 # by configure, so config.status won't be able to write to it; its
18238 # output is simply discarded. So we exec the FD to /dev/null,
18239 # effectively closing config.log, so it can be properly (re)opened and
18240 # appended to by config.status. When coming back to configure, we
18241 # need to make the FD available again.
18242 if test "$no_create" != yes; then
18243 ac_cs_success=:
18244 ac_config_status_args=
18245 test "$silent" = yes &&
18246 ac_config_status_args="$ac_config_status_args --quiet"
18247 exec 5>/dev/null
18248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18249 exec 5>>config.log
18250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18251 # would make configure fail if this is the last instruction.
18252 $ac_cs_success || as_fn_exit 1
18253 fi
18254 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18256 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18257 fi
18258
18259