Use __executable_start to find start of text segment for profiling
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LINKER
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXSM
664 LIBGPM
665 LIBGIF
666 LIBTIFF
667 LIBPNG
668 LIBJPEG
669 LIBXPM
670 FREETYPE_LIBS
671 FREETYPE_CFLAGS
672 M17N_FLT_LIBS
673 M17N_FLT_CFLAGS
674 LIBOTF_LIBS
675 LIBOTF_CFLAGS
676 XFT_LIBS
677 XFT_CFLAGS
678 FONTCONFIG_LIBS
679 FONTCONFIG_CFLAGS
680 LIBXMU
681 LIBXTR6
682 LIBSELINUX_LIBS
683 GCONF_LIBS
684 GCONF_CFLAGS
685 DBUS_OBJ
686 DBUS_LIBS
687 DBUS_CFLAGS
688 GTK_OBJ
689 GTK_LIBS
690 GTK_CFLAGS
691 RSVG_LIBS
692 RSVG_CFLAGS
693 VMLIMIT_OBJ
694 GMALLOC_OBJ
695 HAVE_XSERVER
696 LIB_STANDARD
697 NS_SUPPORT
698 NS_OBJ
699 TEMACS_LDFLAGS2
700 LD_SWITCH_X_SITE_AUX_RPATH
701 LD_SWITCH_X_SITE_AUX
702 XMKMF
703 DEPFLAGS
704 MKDEPDIR
705 SET_MAKE
706 CFLAGS_SOUND
707 ALSA_LIBS
708 ALSA_CFLAGS
709 PKG_CONFIG
710 LIBSOUND
711 START_FILES
712 LIB_MATH
713 CRT_DIR
714 LIBS_SYSTEM
715 C_SWITCH_SYSTEM
716 UNEXEC_OBJ
717 C_SWITCH_MACHINE
718 LD_SWITCH_SYSTEM
719 CANNOT_DUMP
720 MAKEINFO
721 GZIP_PROG
722 INSTALL_INFO
723 RANLIB
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 C_WARNINGS_SWITCH
728 EGREP
729 GREP
730 CPP
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 PROFILING_LDFLAGS
747 PROFILING_CFLAGS
748 MAINT
749 GZIP_INFO
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='deps_frag
789 ns_frag'
790 ac_user_opts='
791 enable_option_checking
792 with_pop
793 with_kerberos
794 with_kerberos5
795 with_hesiod
796 with_mmdf
797 with_mail_unlink
798 with_mailhost
799 with_sound
800 with_sync_input
801 with_x_toolkit
802 with_xpm
803 with_jpeg
804 with_tiff
805 with_gif
806 with_png
807 with_rsvg
808 with_xft
809 with_libotf
810 with_m17n_flt
811 with_toolkit_scroll_bars
812 with_xaw3d
813 with_xim
814 with_ns
815 with_gpm
816 with_dbus
817 with_gconf
818 with_selinux
819 with_makeinfo
820 with_compress_info
821 with_pkg_config_prog
822 with_crt_dir
823 with_gnustep_conf
824 enable_ns_self_contained
825 enable_asserts
826 enable_maintainer_mode
827 enable_locallisppath
828 enable_checking
829 enable_use_lisp_union_type
830 enable_profiling
831 enable_autodepend
832 enable_largefile
833 with_x
834 '
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CC
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
843 CPP
844 XMKMF'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
904 fi
905
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
921
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
936
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
941
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
974
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1010
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1015
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1045
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1119
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1178
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1194
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1228
1229 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1231 ;;
1232
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1242
1243 *)
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 ;;
1250
1251 esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error $? "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1272 do
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used" >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351 else
1352 ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 X features:
1449 --x-includes=DIR X include files are in DIR
1450 --x-libraries=DIR X library files are in DIR
1451
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1461 esac
1462 cat <<\_ACEOF
1463
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --disable-ns-self-contained
1469 disable self contained build under NeXTstep
1470 --enable-asserts compile code with asserts enabled
1471 --enable-maintainer-mode
1472 enable make rules and dependencies not useful (and
1473 sometimes confusing) to the casual installer
1474 --enable-locallisppath=PATH
1475 directories Emacs should search for lisp files
1476 specific to this site
1477 --enable-checking[=LIST]
1478 enable expensive run-time checks. With LIST, enable
1479 only specific categories of checks. Categories are:
1480 all,yes,no. Flags are: stringbytes, stringoverrun,
1481 stringfreelist, xmallocoverrun, conslist
1482 --enable-use-lisp-union-type
1483 use a union for the Lisp_Object data type. This is
1484 only useful for development for catching certain
1485 types of bugs.
1486 --enable-profiling build emacs with profiling support. This might not
1487 work on all platforms
1488 --enable-autodepend automatically generate dependencies to .h-files.
1489 Requires GNU Make and Gcc. Enabled if GNU Make and
1490 Gcc is found
1491 --disable-largefile omit support for large files
1492
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --without-pop don't support POP mail retrieval with movemail
1497 --with-kerberos support Kerberos-authenticated POP
1498 --with-kerberos5 support Kerberos version 5 authenticated POP
1499 --with-hesiod support Hesiod to get the POP server host
1500 --with-mmdf support MMDF mailboxes
1501 --with-mail-unlink unlink, rather than empty, mail spool after reading
1502 --with-mailhost=HOSTNAME
1503 string giving default POP mail host
1504 --without-sound don't compile with sound support
1505 --without-sync-input process async input synchronously
1506 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1507 lucid or athena, motif, no)
1508 --without-xpm don't compile with XPM image support
1509 --without-jpeg don't compile with JPEG image support
1510 --without-tiff don't compile with TIFF image support
1511 --without-gif don't compile with GIF image support
1512 --without-png don't compile with PNG image support
1513 --without-rsvg don't compile with SVG image support
1514 --without-xft don't use XFT for anti aliased fonts
1515 --without-libotf don't use libotf for OpenType font support
1516 --without-m17n-flt don't use m17n-flt for text shaping
1517 --without-toolkit-scroll-bars
1518 don't use Motif or Xaw3d scroll bars
1519 --without-xaw3d don't use Xaw3d
1520 --without-xim don't use X11 XIM
1521 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1522 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1523 console
1524 --without-dbus don't compile with D-Bus support
1525 --without-gconf don't compile with GConf support
1526 --without-selinux don't compile with SELinux support
1527 --without-makeinfo don't require makeinfo for building manuals
1528 --without-compress-info don't compress the installed Info pages
1529 --with-pkg-config-prog=PATH
1530 path to pkg-config for finding GTK and librsvg
1531 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1532 /usr/lib, or /usr/lib64 on some platforms.
1533 --with-gnustep-conf=PATH
1534 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1535 or /etc/GNUstep/GNUstep.conf
1536 --with-x use the X Window System
1537
1538 Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1546 CPP C preprocessor
1547 XMKMF Path to xmkmf, Makefile generator for X Window System
1548
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1551
1552 Report bugs to the package provider.
1553 _ACEOF
1554 ac_status=$?
1555 fi
1556
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
1563 ac_builddir=.
1564
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *)
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1580
1581 case $srcdir in
1582 .) # We are building in place.
1583 ac_srcdir=.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1605 else
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 fi || ac_status=$?
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1609 done
1610 fi
1611
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614 cat <<\_ACEOF
1615 emacs configure 24.0.50
1616 generated by GNU Autoconf 2.66
1617
1618 Copyright (C) 2010 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1621 _ACEOF
1622 exit
1623 fi
1624
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1628
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_compile
1666
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 $as_test_x conftest$ac_exeext
1695 }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702 fi
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_link
1712
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_cpp ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } >/dev/null && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_cpp
1749
1750 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753 # the include files in INCLUDES and setting the cache variable VAR
1754 # accordingly.
1755 ac_fn_c_check_header_mongrel ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if eval "test \"\${$3+set}\"" = set; then :
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval "test \"\${$3+set}\"" = set; then :
1762 $as_echo_n "(cached) " >&6
1763 fi
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 else
1768 # Is the header compilable?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770 $as_echo_n "checking $2 usability... " >&6; }
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 $4
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777 ac_header_compiler=yes
1778 else
1779 ac_header_compiler=no
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783 $as_echo "$ac_header_compiler" >&6; }
1784
1785 # Is the header present?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787 $as_echo_n "checking $2 presence... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_cpp "$LINENO"; then :
1793 ac_header_preproc=yes
1794 else
1795 ac_header_preproc=no
1796 fi
1797 rm -f conftest.err conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799 $as_echo "$ac_header_preproc" >&6; }
1800
1801 # So? What about this header?
1802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1803 yes:no: )
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 ;;
1809 no:yes:* )
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1813 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1817 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 ;;
1821 esac
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval "test \"\${$3+set}\"" = set; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 eval "$3=\$ac_header_compiler"
1828 fi
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 fi
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
1835 } # ac_fn_c_check_header_mongrel
1836
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840 # that executables *can* be run.
1841 ac_fn_c_try_run ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1852 ac_status=$?
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=$ac_status
1872 fi
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_run
1878
1879 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists and can be compiled using the include files in
1882 # INCLUDES, setting the cache variable VAR accordingly.
1883 ac_fn_c_check_header_compile ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval "test \"\${$3+set}\"" = set; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 $4
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 eval "$3=yes"
1898 else
1899 eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
1908 } # ac_fn_c_check_header_compile
1909
1910 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 # ---------------------------------------------
1912 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1913 # accordingly.
1914 ac_fn_c_check_decl ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 as_decl_name=`echo $2|sed 's/ *(.*//'`
1918 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval "test \"\${$3+set}\"" = set; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $4
1927 int
1928 main ()
1929 {
1930 #ifndef $as_decl_name
1931 #ifdef __cplusplus
1932 (void) $as_decl_use;
1933 #else
1934 (void) $as_decl_name;
1935 #endif
1936 #endif
1937
1938 ;
1939 return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$3=yes"
1944 else
1945 eval "$3=no"
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953
1954 } # ac_fn_c_check_decl
1955
1956 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1957 # ----------------------------------------------
1958 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1959 ac_fn_c_check_header_preproc ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval "test \"\${$3+set}\"" = set; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_c_try_cpp "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1975 fi
1976 rm -f conftest.err conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982
1983 } # ac_fn_c_check_header_preproc
1984
1985 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986 # ----------------------------------------------------
1987 # Tries to find if the field MEMBER exists in type AGGR, after including
1988 # INCLUDES, setting cache variable VAR accordingly.
1989 ac_fn_c_check_member ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993 $as_echo_n "checking for $2.$3... " >&6; }
1994 if eval "test \"\${$4+set}\"" = set; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $5
2000 int
2001 main ()
2002 {
2003 static $2 ac_aggr;
2004 if (ac_aggr.$3)
2005 return 0;
2006 ;
2007 return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 eval "$4=yes"
2012 else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 $5
2016 int
2017 main ()
2018 {
2019 static $2 ac_aggr;
2020 if (sizeof ac_aggr.$3)
2021 return 0;
2022 ;
2023 return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$4=yes"
2028 else
2029 eval "$4=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 fi
2035 eval ac_res=\$$4
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
2040 } # ac_fn_c_check_member
2041
2042 # ac_fn_c_check_func LINENO FUNC VAR
2043 # ----------------------------------
2044 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2045 ac_fn_c_check_func ()
2046 {
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval "test \"\${$3+set}\"" = set; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2057 #define $2 innocuous_$2
2058
2059 /* System header to define __stub macros and hopefully few prototypes,
2060 which can conflict with char $2 (); below.
2061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2062 <limits.h> exists even on freestanding compilers. */
2063
2064 #ifdef __STDC__
2065 # include <limits.h>
2066 #else
2067 # include <assert.h>
2068 #endif
2069
2070 #undef $2
2071
2072 /* Override any GCC internal prototype to avoid an error.
2073 Use char because int might match the return type of a GCC
2074 builtin and then its argument prototype would still apply. */
2075 #ifdef __cplusplus
2076 extern "C"
2077 #endif
2078 char $2 ();
2079 /* The GNU C library defines this for functions which it implements
2080 to always fail with ENOSYS. Some functions are actually named
2081 something starting with __ and the normal name is an alias. */
2082 #if defined __stub_$2 || defined __stub___$2
2083 choke me
2084 #endif
2085
2086 int
2087 main ()
2088 {
2089 return $2 ();
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_link "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext \
2100 conftest$ac_exeext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106
2107 } # ac_fn_c_check_func
2108
2109 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2110 # -------------------------------------------
2111 # Tests whether TYPE exists after having included INCLUDES, setting cache
2112 # variable VAR accordingly.
2113 ac_fn_c_check_type ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if eval "test \"\${$3+set}\"" = set; then :
2119 $as_echo_n "(cached) " >&6
2120 else
2121 eval "$3=no"
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2124 $4
2125 int
2126 main ()
2127 {
2128 if (sizeof ($2))
2129 return 0;
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $4
2138 int
2139 main ()
2140 {
2141 if (sizeof (($2)))
2142 return 0;
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148
2149 else
2150 eval "$3=yes"
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 fi
2156 eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2160
2161 } # ac_fn_c_check_type
2162 cat >config.log <<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2165
2166 It was created by emacs $as_me 24.0.50, which was
2167 generated by GNU Autoconf 2.66. Invocation command line was
2168
2169 $ $0 $@
2170
2171 _ACEOF
2172 exec 5>>config.log
2173 {
2174 cat <<_ASUNAME
2175 ## --------- ##
2176 ## Platform. ##
2177 ## --------- ##
2178
2179 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2187
2188 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195
2196 _ASUNAME
2197
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2204 done
2205 IFS=$as_save_IFS
2206
2207 } >&5
2208
2209 cat >&5 <<_ACEOF
2210
2211
2212 ## ----------- ##
2213 ## Core tests. ##
2214 ## ----------- ##
2215
2216 _ACEOF
2217
2218
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_configure_args=
2225 ac_configure_args0=
2226 ac_configure_args1=
2227 ac_must_keep_next=false
2228 for ac_pass in 1 2
2229 do
2230 for ac_arg
2231 do
2232 case $ac_arg in
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2236 continue ;;
2237 *\'*)
2238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 esac
2240 case $ac_pass in
2241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2242 2)
2243 as_fn_append ac_configure_args1 " '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2246 else
2247 case $ac_arg in
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 esac
2255 ;;
2256 -* ) ac_must_keep_next=true ;;
2257 esac
2258 fi
2259 as_fn_append ac_configure_args " '$ac_arg'"
2260 ;;
2261 esac
2262 done
2263 done
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2266
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2274 {
2275 echo
2276
2277 $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2280 echo
2281 # The following way of writing the cache mishandles newlines in values,
2282 (
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in #(
2286 *${as_nl}*)
2287 case $ac_var in #(
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290 esac
2291 case $ac_var in #(
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2295 esac ;;
2296 esac
2297 done
2298 (set) 2>&1 |
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2301 sed -n \
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 ;; #(
2305 *)
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307 ;;
2308 esac |
2309 sort
2310 )
2311 echo
2312
2313 $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2316 echo
2317 for ac_var in $ac_subst_vars
2318 do
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2326
2327 if test -n "$ac_subst_files"; then
2328 $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2331 echo
2332 for ac_var in $ac_subst_files
2333 do
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
2339 done | sort
2340 echo
2341 fi
2342
2343 if test -s confdefs.h; then
2344 $as_echo "## ----------- ##
2345 ## confdefs.h. ##
2346 ## ----------- ##"
2347 echo
2348 cat confdefs.h
2349 echo
2350 fi
2351 test "$ac_signal" != 0 &&
2352 $as_echo "$as_me: caught signal $ac_signal"
2353 $as_echo "$as_me: exit $exit_status"
2354 } >&5
2355 rm -f core *.core core.conftest.* &&
2356 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 exit $exit_status
2358 ' 0
2359 for ac_signal in 1 2 13 15; do
2360 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2361 done
2362 ac_signal=0
2363
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest* confdefs.h
2366
2367 $as_echo "/* confdefs.h */" > confdefs.h
2368
2369 # Predefined preprocessor variables.
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 _ACEOF
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 _ACEOF
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 _ACEOF
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2393 _ACEOF
2394
2395
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2398 ac_site_file1=NONE
2399 ac_site_file2=NONE
2400 if test -n "$CONFIG_SITE"; then
2401 # We do not want a PATH search for config.site.
2402 case $CONFIG_SITE in #((
2403 -*) ac_site_file1=./$CONFIG_SITE;;
2404 */*) ac_site_file1=$CONFIG_SITE;;
2405 *) ac_site_file1=./$CONFIG_SITE;;
2406 esac
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2410 else
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2413 fi
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415 do
2416 test "x$ac_site_file" = xNONE && continue
2417 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2421 . "$ac_site_file" \
2422 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $? "failed to load site script $ac_site_file
2425 See \`config.log' for more details" "$LINENO" 5; }
2426 fi
2427 done
2428
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2435 case $cache_file in
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2438 esac
2439 fi
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443 >$cache_file
2444 fi
2445
2446 as_fn_append ac_header_list " stdlib.h"
2447 as_fn_append ac_header_list " unistd.h"
2448 as_fn_append ac_header_list " sys/param.h"
2449 as_fn_append ac_header_list " sys/time.h"
2450 as_fn_append ac_func_list " alarm"
2451 # Check that the precious variables saved in the cache have kept the same
2452 # value.
2453 ac_cache_corrupted=false
2454 for ac_var in $ac_precious_vars; do
2455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2456 eval ac_new_set=\$ac_env_${ac_var}_set
2457 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2458 eval ac_new_val=\$ac_env_${ac_var}_value
2459 case $ac_old_set,$ac_new_set in
2460 set,)
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2462 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2463 ac_cache_corrupted=: ;;
2464 ,set)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,);;
2469 *)
2470 if test "x$ac_old_val" != "x$ac_new_val"; then
2471 # differences in whitespace do not lead to failure.
2472 ac_old_val_w=`echo x $ac_old_val`
2473 ac_new_val_w=`echo x $ac_new_val`
2474 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2476 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2477 ac_cache_corrupted=:
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2480 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2481 eval $ac_var=\$ac_old_val
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2484 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2486 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2487 fi;;
2488 esac
2489 # Pass precious variables to config.status.
2490 if test "$ac_new_set" = set; then
2491 case $ac_new_val in
2492 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2493 *) ac_arg=$ac_var=$ac_new_val ;;
2494 esac
2495 case " $ac_configure_args " in
2496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2497 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2498 esac
2499 fi
2500 done
2501 if $ac_cache_corrupted; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2505 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2506 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2507 fi
2508 ## -------------------- ##
2509 ## Main body of script. ##
2510 ## -------------------- ##
2511
2512 ac_ext=c
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517
2518
2519 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2520
2521
2522
2523 test "$program_prefix" != NONE &&
2524 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2525 # Use a double $ so make ignores it.
2526 test "$program_suffix" != NONE &&
2527 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2528 # Double any \ or $.
2529 # By default was `s,x,x', remove it if useless.
2530 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2531 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2532
2533
2534 lispdir='${datadir}/emacs/${version}/lisp'
2535 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2536 '${datadir}/emacs/site-lisp'
2537 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2538 etcdir='${datadir}/emacs/${version}/etc'
2539 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2540 docdir='${datadir}/emacs/${version}/etc'
2541 gamedir='${localstatedir}/games/emacs'
2542
2543 gameuser=games
2544
2545
2546
2547
2548 # Check whether --with-pop was given.
2549 if test "${with_pop+set}" = set; then :
2550 withval=$with_pop;
2551 else
2552 with_pop=yes
2553 fi
2554
2555 if test "$with_pop" = yes; then
2556 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2557
2558 fi
2559
2560
2561 # Check whether --with-kerberos was given.
2562 if test "${with_kerberos+set}" = set; then :
2563 withval=$with_kerberos;
2564 else
2565 with_kerberos=no
2566 fi
2567
2568 if test "$with_kerberos" != no; then
2569 $as_echo "#define KERBEROS 1" >>confdefs.h
2570
2571 fi
2572
2573
2574 # Check whether --with-kerberos5 was given.
2575 if test "${with_kerberos5+set}" = set; then :
2576 withval=$with_kerberos5;
2577 else
2578 with_kerberos5=no
2579 fi
2580
2581 if test "${with_kerberos5}" != no; then
2582 if test "${with_kerberos}" = no; then
2583 with_kerberos=yes
2584 $as_echo "#define KERBEROS 1" >>confdefs.h
2585
2586 fi
2587
2588 $as_echo "#define KERBEROS5 1" >>confdefs.h
2589
2590 fi
2591
2592
2593 # Check whether --with-hesiod was given.
2594 if test "${with_hesiod+set}" = set; then :
2595 withval=$with_hesiod;
2596 else
2597 with_hesiod=no
2598 fi
2599
2600 if test "$with_hesiod" != no; then
2601
2602 $as_echo "#define HESIOD 1" >>confdefs.h
2603
2604 fi
2605
2606
2607 # Check whether --with-mmdf was given.
2608 if test "${with_mmdf+set}" = set; then :
2609 withval=$with_mmdf;
2610 else
2611 with_mmdf=no
2612 fi
2613
2614 if test "$with_mmdf" != no; then
2615
2616 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2617
2618 fi
2619
2620
2621 # Check whether --with-mail-unlink was given.
2622 if test "${with_mail_unlink+set}" = set; then :
2623 withval=$with_mail_unlink;
2624 else
2625 with_mail_unlink=no
2626 fi
2627
2628 if test "$with_mail_unlink" != no; then
2629
2630 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2631
2632 fi
2633
2634
2635 # Check whether --with-mailhost was given.
2636 if test "${with_mailhost+set}" = set; then :
2637 withval=$with_mailhost;
2638 cat >>confdefs.h <<_ACEOF
2639 #define MAILHOST "$withval"
2640 _ACEOF
2641
2642 fi
2643
2644
2645
2646 # Check whether --with-sound was given.
2647 if test "${with_sound+set}" = set; then :
2648 withval=$with_sound;
2649 else
2650 with_sound=yes
2651 fi
2652
2653
2654
2655 # Check whether --with-sync-input was given.
2656 if test "${with_sync_input+set}" = set; then :
2657 withval=$with_sync_input;
2658 else
2659 with_sync_input=yes
2660 fi
2661
2662 if test "$with_sync_input" = yes; then
2663
2664 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2665
2666 fi
2667
2668
2669 # Check whether --with-x-toolkit was given.
2670 if test "${with_x_toolkit+set}" = set; then :
2671 withval=$with_x_toolkit; case "${withval}" in
2672 y | ye | yes ) val=gtk ;;
2673 n | no ) val=no ;;
2674 l | lu | luc | luci | lucid ) val=lucid ;;
2675 a | at | ath | athe | athen | athena ) val=athena ;;
2676 m | mo | mot | moti | motif ) val=motif ;;
2677 g | gt | gtk ) val=gtk ;;
2678 gtk3 ) val=gtk3 ;;
2679 * )
2680 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2681 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2682 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2683 ;;
2684 esac
2685 with_x_toolkit=$val
2686
2687 fi
2688
2689
2690
2691 # Check whether --with-xpm was given.
2692 if test "${with_xpm+set}" = set; then :
2693 withval=$with_xpm;
2694 else
2695 with_xpm=yes
2696 fi
2697
2698
2699 # Check whether --with-jpeg was given.
2700 if test "${with_jpeg+set}" = set; then :
2701 withval=$with_jpeg;
2702 else
2703 with_jpeg=yes
2704 fi
2705
2706
2707 # Check whether --with-tiff was given.
2708 if test "${with_tiff+set}" = set; then :
2709 withval=$with_tiff;
2710 else
2711 with_tiff=yes
2712 fi
2713
2714
2715 # Check whether --with-gif was given.
2716 if test "${with_gif+set}" = set; then :
2717 withval=$with_gif;
2718 else
2719 with_gif=yes
2720 fi
2721
2722
2723 # Check whether --with-png was given.
2724 if test "${with_png+set}" = set; then :
2725 withval=$with_png;
2726 else
2727 with_png=yes
2728 fi
2729
2730
2731 # Check whether --with-rsvg was given.
2732 if test "${with_rsvg+set}" = set; then :
2733 withval=$with_rsvg;
2734 else
2735 with_rsvg=yes
2736 fi
2737
2738
2739
2740 # Check whether --with-xft was given.
2741 if test "${with_xft+set}" = set; then :
2742 withval=$with_xft;
2743 else
2744 with_xft=yes
2745 fi
2746
2747
2748 # Check whether --with-libotf was given.
2749 if test "${with_libotf+set}" = set; then :
2750 withval=$with_libotf;
2751 else
2752 with_libotf=yes
2753 fi
2754
2755
2756 # Check whether --with-m17n-flt was given.
2757 if test "${with_m17n_flt+set}" = set; then :
2758 withval=$with_m17n_flt;
2759 else
2760 with_m17n_flt=yes
2761 fi
2762
2763
2764
2765 # Check whether --with-toolkit-scroll-bars was given.
2766 if test "${with_toolkit_scroll_bars+set}" = set; then :
2767 withval=$with_toolkit_scroll_bars;
2768 else
2769 with_toolkit_scroll_bars=yes
2770 fi
2771
2772
2773 # Check whether --with-xaw3d was given.
2774 if test "${with_xaw3d+set}" = set; then :
2775 withval=$with_xaw3d;
2776 else
2777 with_xaw3d=yes
2778 fi
2779
2780
2781 # Check whether --with-xim was given.
2782 if test "${with_xim+set}" = set; then :
2783 withval=$with_xim;
2784 else
2785 with_xim=yes
2786 fi
2787
2788
2789 # Check whether --with-ns was given.
2790 if test "${with_ns+set}" = set; then :
2791 withval=$with_ns;
2792 else
2793 with_ns=no
2794 fi
2795
2796
2797
2798 # Check whether --with-gpm was given.
2799 if test "${with_gpm+set}" = set; then :
2800 withval=$with_gpm;
2801 else
2802 with_gpm=yes
2803 fi
2804
2805
2806 # Check whether --with-dbus was given.
2807 if test "${with_dbus+set}" = set; then :
2808 withval=$with_dbus;
2809 else
2810 with_dbus=yes
2811 fi
2812
2813
2814 # Check whether --with-gconf was given.
2815 if test "${with_gconf+set}" = set; then :
2816 withval=$with_gconf;
2817 else
2818 with_gconf=yes
2819 fi
2820
2821
2822 # Check whether --with-selinux was given.
2823 if test "${with_selinux+set}" = set; then :
2824 withval=$with_selinux;
2825 else
2826 with_selinux=yes
2827 fi
2828
2829
2830 ## For the times when you want to build Emacs but don't have
2831 ## a suitable makeinfo, and can live without the manuals.
2832
2833 # Check whether --with-makeinfo was given.
2834 if test "${with_makeinfo+set}" = set; then :
2835 withval=$with_makeinfo;
2836 else
2837 with_makeinfo=yes
2838 fi
2839
2840
2841 ## This is an option because I do not know if all info/man support
2842 ## compressed files, nor how to test if they do so.
2843
2844 # Check whether --with-compress-info was given.
2845 if test "${with_compress_info+set}" = set; then :
2846 withval=$with_compress_info;
2847 else
2848 with_compress_info=yes
2849 fi
2850
2851 if test $with_compress_info = yes; then
2852 GZIP_INFO=yes
2853 else
2854 GZIP_INFO=
2855 fi
2856
2857
2858
2859 # Check whether --with-pkg-config-prog was given.
2860 if test "${with_pkg_config_prog+set}" = set; then :
2861 withval=$with_pkg_config_prog;
2862 fi
2863
2864 if test "X${with_pkg_config_prog}" != X; then
2865 if test "${with_pkg_config_prog}" != yes; then
2866 PKG_CONFIG="${with_pkg_config_prog}"
2867 fi
2868 fi
2869
2870 CRT_DIR=
2871
2872 # Check whether --with-crt-dir was given.
2873 if test "${with_crt_dir+set}" = set; then :
2874 withval=$with_crt_dir;
2875 fi
2876
2877 CRT_DIR="${with_crt_dir}"
2878
2879
2880 # Check whether --with-gnustep-conf was given.
2881 if test "${with_gnustep_conf+set}" = set; then :
2882 withval=$with_gnustep_conf;
2883 fi
2884
2885 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2886 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2887 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2888 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2889
2890 # Check whether --enable-ns-self-contained was given.
2891 if test "${enable_ns_self_contained+set}" = set; then :
2892 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2893 else
2894 EN_NS_SELF_CONTAINED=yes
2895 fi
2896
2897
2898 # Check whether --enable-asserts was given.
2899 if test "${enable_asserts+set}" = set; then :
2900 enableval=$enable_asserts; USE_XASSERTS=$enableval
2901 else
2902 USE_XASSERTS=no
2903 fi
2904
2905
2906 # Check whether --enable-maintainer-mode was given.
2907 if test "${enable_maintainer_mode+set}" = set; then :
2908 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2909 else
2910 USE_MAINTAINER_MODE=no
2911 fi
2912
2913 if test $USE_MAINTAINER_MODE = yes; then
2914 MAINT=
2915 else
2916 MAINT=#
2917 fi
2918
2919
2920 # Check whether --enable-locallisppath was given.
2921 if test "${enable_locallisppath+set}" = set; then :
2922 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2923 locallisppath=
2924 elif test "${enableval}" != "yes"; then
2925 locallisppath=${enableval}
2926 fi
2927 fi
2928
2929
2930 # Check whether --enable-checking was given.
2931 if test "${enable_checking+set}" = set; then :
2932 enableval=$enable_checking; ac_checking_flags="${enableval}"
2933 fi
2934
2935 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2936 for check in $ac_checking_flags
2937 do
2938 case $check in
2939 # these set all the flags to specific states
2940 yes) ac_enable_checking=1 ;;
2941 no) ac_enable_checking= ;
2942 ac_gc_check_stringbytes= ;
2943 ac_gc_check_string_overrun= ;
2944 ac_gc_check_string_free_list= ;
2945 ac_xmalloc_overrun= ;
2946 ac_gc_check_cons_list= ;;
2947 all) ac_enable_checking=1 ;
2948 ac_gc_check_stringbytes=1 ;
2949 ac_gc_check_string_overrun=1 ;
2950 ac_gc_check_string_free_list=1 ;
2951 ac_xmalloc_overrun=1 ;
2952 ac_gc_check_cons_list=1 ;;
2953 # these enable particular checks
2954 stringbytes) ac_gc_check_stringbytes=1 ;;
2955 stringoverrun) ac_gc_check_string_overrun=1 ;;
2956 stringfreelist) ac_gc_check_string_free_list=1 ;;
2957 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2958 conslist) ac_gc_check_cons_list=1 ;;
2959 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
2960 esac
2961 done
2962 IFS="$ac_save_IFS"
2963
2964 if test x$ac_enable_checking != x ; then
2965
2966 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2967
2968 fi
2969 if test x$ac_gc_check_stringbytes != x ; then
2970
2971 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2972
2973 fi
2974 if test x$ac_gc_check_stringoverrun != x ; then
2975
2976 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2977
2978 fi
2979 if test x$ac_gc_check_string_free_list != x ; then
2980
2981 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2982
2983 fi
2984 if test x$ac_xmalloc_overrun != x ; then
2985
2986 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2987
2988 fi
2989 if test x$ac_gc_check_cons_list != x ; then
2990
2991 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2992
2993 fi
2994
2995 # Check whether --enable-use-lisp-union-type was given.
2996 if test "${enable_use_lisp_union_type+set}" = set; then :
2997 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
2998
2999 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3000
3001 fi
3002 fi
3003
3004
3005
3006 # Check whether --enable-profiling was given.
3007 if test "${enable_profiling+set}" = set; then :
3008 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3009 fi
3010
3011 if test x$ac_enable_profiling != x ; then
3012 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3013 PROFILING_LDFLAGS="-pg"
3014 else
3015 PROFILING_CFLAGS=
3016 PROFILING_LDFLAGS=
3017 fi
3018
3019
3020
3021 # Check whether --enable-autodepend was given.
3022 if test "${enable_autodepend+set}" = set; then :
3023 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3024 else
3025 ac_enable_autodepend=yes
3026 fi
3027
3028
3029 #### Make srcdir absolute, if it isn't already. It's important to
3030 #### avoid running the path through pwd unnecessarily, since pwd can
3031 #### give you automounter prefixes, which can go away. We do all this
3032 #### so Emacs can find its files when run uninstalled.
3033 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3034 unset CDPATH
3035 case "${srcdir}" in
3036 /* ) ;;
3037 . )
3038 ## We may be able to use the $PWD environment variable to make this
3039 ## absolute. But sometimes PWD is inaccurate.
3040 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3041 ## but that tested only for a well-formed and valid PWD,
3042 ## it did not object when PWD was well-formed and valid but just wrong.
3043 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3044 then
3045 srcdir="$PWD"
3046 else
3047 srcdir="`(cd ${srcdir}; pwd)`"
3048 fi
3049 ;;
3050 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3051 esac
3052
3053 #### Check if the source directory already has a configured system in it.
3054 if test `pwd` != `(cd ${srcdir} && pwd)` \
3055 && test -f "${srcdir}/src/config.h" ; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3057 as a build directory right now; it has been configured in its own
3058 right. To configure in another directory as well, you MUST
3059 use GNU make. If you do not have GNU make, then you must
3060 now do \`make distclean' in ${srcdir},
3061 and then run $0 again." >&5
3062 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3063 as a build directory right now; it has been configured in its own
3064 right. To configure in another directory as well, you MUST
3065 use GNU make. If you do not have GNU make, then you must
3066 now do \`make distclean' in ${srcdir},
3067 and then run $0 again." >&2;}
3068 fi
3069
3070 #### Given the configuration name, set machfile and opsysfile to the
3071 #### names of the m/*.h and s/*.h files we should use.
3072
3073 ### Canonicalize the configuration name.
3074
3075 ac_aux_dir=
3076 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3077 if test -f "$ac_dir/install-sh"; then
3078 ac_aux_dir=$ac_dir
3079 ac_install_sh="$ac_aux_dir/install-sh -c"
3080 break
3081 elif test -f "$ac_dir/install.sh"; then
3082 ac_aux_dir=$ac_dir
3083 ac_install_sh="$ac_aux_dir/install.sh -c"
3084 break
3085 elif test -f "$ac_dir/shtool"; then
3086 ac_aux_dir=$ac_dir
3087 ac_install_sh="$ac_aux_dir/shtool install -c"
3088 break
3089 fi
3090 done
3091 if test -z "$ac_aux_dir"; then
3092 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3093 fi
3094
3095 # These three variables are undocumented and unsupported,
3096 # and are intended to be withdrawn in a future Autoconf release.
3097 # They can cause serious problems if a builder's source tree is in a directory
3098 # whose full name contains unusual characters.
3099 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3100 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3101 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3102
3103
3104 # Make sure we can run config.sub.
3105 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3106 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3107
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3109 $as_echo_n "checking build system type... " >&6; }
3110 if test "${ac_cv_build+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 ac_build_alias=$build_alias
3114 test "x$ac_build_alias" = x &&
3115 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3116 test "x$ac_build_alias" = x &&
3117 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3118 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3119 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3123 $as_echo "$ac_cv_build" >&6; }
3124 case $ac_cv_build in
3125 *-*-*) ;;
3126 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3127 esac
3128 build=$ac_cv_build
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_build
3131 shift
3132 build_cpu=$1
3133 build_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 build_os=$*
3138 IFS=$ac_save_IFS
3139 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3143 $as_echo_n "checking host system type... " >&6; }
3144 if test "${ac_cv_host+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test "x$host_alias" = x; then
3148 ac_cv_host=$ac_cv_build
3149 else
3150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3151 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3152 fi
3153
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3156 $as_echo "$ac_cv_host" >&6; }
3157 case $ac_cv_host in
3158 *-*-*) ;;
3159 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3160 esac
3161 host=$ac_cv_host
3162 ac_save_IFS=$IFS; IFS='-'
3163 set x $ac_cv_host
3164 shift
3165 host_cpu=$1
3166 host_vendor=$2
3167 shift; shift
3168 # Remember, the first character of IFS is used to create $*,
3169 # except with old shells:
3170 host_os=$*
3171 IFS=$ac_save_IFS
3172 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3173
3174
3175 canonical=$host
3176 configuration=${host_alias-${build_alias-$host}}
3177
3178
3179
3180 ### If you add support for a new configuration, add code to this
3181 ### switch statement to recognize your configuration name and select
3182 ### the appropriate operating system and machine description files.
3183
3184 ### You would hope that you could choose an m/*.h file pretty much
3185 ### based on the machine portion of the configuration name, and an s/*.h
3186 ### file based on the operating system portion. However, it turns out
3187 ### that each m/*.h file is pretty manufacturer-specific - for
3188 ### example mips.h is MIPS
3189 ### So we basically have to have a special case for each
3190 ### configuration name.
3191 ###
3192 ### As far as handling version numbers on operating systems is
3193 ### concerned, make sure things will fail in a fixable way. If
3194 ### /etc/MACHINES doesn't say anything about version numbers, be
3195 ### prepared to handle anything reasonably. If version numbers
3196 ### matter, be sure /etc/MACHINES says something about it.
3197
3198 machine='' opsys='' unported=no
3199 case "${canonical}" in
3200
3201 ## FreeBSD ports
3202 *-*-freebsd* )
3203 opsys=freebsd
3204 case "${canonical}" in
3205 alpha*) machine=alpha ;;
3206 amd64-*|x86_64-*) machine=amdx86-64 ;;
3207 arm*) machine=arm ;;
3208 ia64-*) machine=ia64 ;;
3209 i[3456]86-*) machine=intel386 ;;
3210 powerpc-*) machine=macppc ;;
3211 sparc-*) machine=sparc ;;
3212 sparc64-*) machine=sparc ;;
3213 esac
3214 ;;
3215
3216 ## FreeBSD kernel + glibc based userland
3217 *-*-kfreebsd*gnu* )
3218 opsys=gnu-kfreebsd
3219 case "${canonical}" in
3220 alpha*) machine=alpha ;;
3221 amd64-*|x86_64-*) machine=amdx86-64 ;;
3222 ia64-*) machine=ia64 ;;
3223 i[3456]86-*) machine=intel386 ;;
3224 powerpc-*) machine=macppc ;;
3225 sparc-*) machine=sparc ;;
3226 sparc64-*) machine=sparc ;;
3227 esac
3228 ;;
3229
3230 ## NetBSD ports
3231 *-*-netbsd* )
3232 opsys=netbsd
3233 case "${canonical}" in
3234 alpha*) machine=alpha ;;
3235 x86_64-*) machine=amdx86-64 ;;
3236 arm-*) machine=arm ;;
3237 hppa-*) machine=hp800 ;;
3238 i[3456]86-*) machine=intel386 ;;
3239 m68k-*) machine=m68k ;;
3240 powerpc-*) machine=macppc ;;
3241 mips-*) machine=mips ;;
3242 mipse[bl]-*) machine=mips ;;
3243 sparc*-) machine=sparc ;;
3244 vax-*) machine=vax ;;
3245 esac
3246 ;;
3247
3248 ## OpenBSD ports
3249 *-*-openbsd* )
3250 opsys=openbsd
3251 case "${canonical}" in
3252 alpha*) machine=alpha ;;
3253 x86_64-*) machine=amdx86-64 ;;
3254 arm-*) machine=arm ;;
3255 hppa-*) machine=hp800 ;;
3256 i386-*) machine=intel386 ;;
3257 powerpc-*) machine=macppc ;;
3258 sparc*) machine=sparc ;;
3259 vax-*) machine=vax ;;
3260 esac
3261 ;;
3262
3263 alpha*-*-linux-gnu* )
3264 machine=alpha opsys=gnu-linux
3265 ;;
3266
3267 arm*-*-linux-gnu* )
3268 machine=arm opsys=gnu-linux
3269 ;;
3270
3271 ## Apple Darwin / Mac OS X
3272 *-apple-darwin* )
3273 case "${canonical}" in
3274 i[3456]86-* ) machine=intel386 ;;
3275 powerpc-* ) machine=macppc ;;
3276 x86_64-* ) machine=amdx86-64 ;;
3277 * ) unported=yes ;;
3278 esac
3279 opsys=darwin
3280 # Define CPP as follows to make autoconf work correctly.
3281 CPP="${CC-cc} -E -no-cpp-precomp"
3282 # Use fink packages if available.
3283 if test -d /sw/include && test -d /sw/lib; then
3284 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3285 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3286 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3287 fi
3288 ;;
3289
3290 ## HP 9000 series 700 and 800, running HP/UX
3291 hppa*-hp-hpux10.2* )
3292 machine=hp800 opsys=hpux10-20
3293 ;;
3294 hppa*-hp-hpux1[1-9]* )
3295 machine=hp800 opsys=hpux11
3296 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3297 ;;
3298
3299 hppa*-*-linux-gnu* )
3300 machine=hp800 opsys=gnu-linux
3301 ;;
3302
3303 ## IBM machines
3304 s390-*-linux-gnu* )
3305 machine=ibms390 opsys=gnu-linux
3306 ;;
3307 s390x-*-linux-gnu* )
3308 machine=ibms390x opsys=gnu-linux
3309 ;;
3310 rs6000-ibm-aix4.[23]* )
3311 machine=ibmrs6000 opsys=aix4-2
3312 ;;
3313 powerpc-ibm-aix4.[23]* )
3314 machine=ibmrs6000 opsys=aix4-2
3315 ;;
3316 rs6000-ibm-aix[56]* )
3317 machine=ibmrs6000 opsys=aix4-2
3318 ;;
3319 powerpc-ibm-aix[56]* )
3320 machine=ibmrs6000 opsys=aix4-2
3321 ;;
3322
3323 ## Macintosh PowerPC
3324 powerpc*-*-linux-gnu* )
3325 machine=macppc opsys=gnu-linux
3326 ;;
3327
3328 ## Silicon Graphics machines
3329 ## Iris 4D
3330 mips-sgi-irix6.5 )
3331 machine=iris4d opsys=irix6-5
3332 # Without defining _LANGUAGE_C, things get masked out in the headers
3333 # so that, for instance, grepping for `free' in stdlib.h fails and
3334 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3335 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3336 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3337 ;;
3338
3339 ## Suns
3340 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3341 machine=sparc opsys=gnu-linux
3342 ;;
3343
3344 *-sun-solaris* \
3345 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3346 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3347 case "${canonical}" in
3348 i[3456]86-*-* ) machine=intel386 ;;
3349 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3350 sparc* ) machine=sparc ;;
3351 * ) unported=yes ;;
3352 esac
3353 case "${canonical}" in
3354 *-sunos5.6* | *-solaris2.6* )
3355 opsys=sol2-6
3356 NON_GNU_CPP=/usr/ccs/lib/cpp
3357 RANLIB="ar -ts"
3358 ;;
3359 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3360 opsys=sol2-6
3361 emacs_check_sunpro_c=yes
3362 NON_GNU_CPP=/usr/ccs/lib/cpp
3363 ;;
3364 *-sunos5* | *-solaris* )
3365 opsys=sol2-10
3366 emacs_check_sunpro_c=yes
3367 NON_GNU_CPP=/usr/ccs/lib/cpp
3368 ;;
3369 esac
3370 ## Watch out for a compiler that we know will not work.
3371 case "${canonical}" in
3372 *-solaris* | *-sunos5* )
3373 if [ "x$CC" = x/usr/ucb/cc ]; then
3374 ## /usr/ucb/cc doesn't work;
3375 ## we should find some other compiler that does work.
3376 unset CC
3377 fi
3378 ;;
3379 *) ;;
3380 esac
3381 ;;
3382
3383 ## IA-64
3384 ia64*-*-linux* )
3385 machine=ia64 opsys=gnu-linux
3386 ;;
3387
3388 ## Intel 386 machines where we don't care about the manufacturer.
3389 i[3456]86-*-* )
3390 machine=intel386
3391 case "${canonical}" in
3392 *-cygwin ) opsys=cygwin ;;
3393 *-darwin* ) opsys=darwin
3394 CPP="${CC-cc} -E -no-cpp-precomp"
3395 ;;
3396 *-linux-gnu* ) opsys=gnu-linux ;;
3397 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3398 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3399 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3400 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3401 esac
3402 ;;
3403
3404 ## m68k Linux-based GNU system
3405 m68k-*-linux-gnu* )
3406 machine=m68k opsys=gnu-linux
3407 ;;
3408
3409 ## Mips Linux-based GNU system
3410 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3411 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3412 machine=mips opsys=gnu-linux
3413 ;;
3414
3415 ## AMD x86-64 Linux-based GNU system
3416 x86_64-*-linux-gnu* )
3417 machine=amdx86-64 opsys=gnu-linux
3418 ;;
3419
3420 ## Tensilica Xtensa Linux-based GNU system
3421 xtensa*-*-linux-gnu* )
3422 machine=xtensa opsys=gnu-linux
3423 ;;
3424
3425 ## SuperH Linux-based GNU system
3426 sh[34]*-*-linux-gnu* )
3427 machine=sh3 opsys=gnu-linux
3428 ;;
3429
3430 * )
3431 unported=yes
3432 ;;
3433 esac
3434
3435 ### If the code above didn't choose an operating system, just choose
3436 ### an operating system based on the configuration name. You really
3437 ### only want to use this when you have no idea what the right
3438 ### operating system is; if you know what operating systems a machine
3439 ### runs, it's cleaner to make it explicit in the case statement
3440 ### above.
3441 if test x"${opsys}" = x; then
3442 case "${canonical}" in
3443 *-gnu* ) opsys=gnu ;;
3444 * )
3445 unported=yes
3446 ;;
3447 esac
3448 fi
3449
3450
3451
3452 if test $unported = yes; then
3453 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3454 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3455 fi
3456
3457 machfile="m/${machine}.h"
3458 opsysfile="s/${opsys}.h"
3459
3460
3461 #### Choose a compiler.
3462 test -n "$CC" && cc_specified=yes
3463
3464 # Save the value of CFLAGS that the user specified.
3465 SPECIFIED_CFLAGS="$CFLAGS"
3466
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 fi
3508
3509
3510 fi
3511 if test -z "$ac_cv_prog_CC"; then
3512 ac_ct_CC=$CC
3513 # Extract the first word of "gcc", so it can be a program name with args.
3514 set dummy gcc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_ac_ct_CC="gcc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543 $as_echo "$ac_ct_CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549 if test "x$ac_ct_CC" = x; then
3550 CC=""
3551 else
3552 case $cross_compiling:$ac_tool_warned in
3553 yes:)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3557 esac
3558 CC=$ac_ct_CC
3559 fi
3560 else
3561 CC="$ac_cv_prog_CC"
3562 fi
3563
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}cc; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CC+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC="$CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_CC="${ac_tool_prefix}cc"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 CC=$ac_cv_prog_CC
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 fi
3601
3602
3603 fi
3604 fi
3605 if test -z "$CC"; then
3606 # Extract the first word of "cc", so it can be a program name with args.
3607 set dummy cc; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if test "${ac_cv_prog_CC+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 ac_prog_rejected=no
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3625 ac_prog_rejected=yes
3626 continue
3627 fi
3628 ac_cv_prog_CC="cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 if test $ac_prog_rejected = yes; then
3637 # We found a bogon in the path, so make sure we never use it.
3638 set dummy $ac_cv_prog_CC
3639 shift
3640 if test $# != 0; then
3641 # We chose a different compiler from the bogus one.
3642 # However, it has the same basename, so the bogon will be chosen
3643 # first if we set CC to just the basename; use the full file name.
3644 shift
3645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3646 fi
3647 fi
3648 fi
3649 fi
3650 CC=$ac_cv_prog_CC
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660 fi
3661 if test -z "$CC"; then
3662 if test -n "$ac_tool_prefix"; then
3663 for ac_prog in cl.exe
3664 do
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if test "${ac_cv_prog_CC+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702 test -n "$CC" && break
3703 done
3704 fi
3705 if test -z "$CC"; then
3706 ac_ct_CC=$CC
3707 for ac_prog in cl.exe
3708 do
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 if test -n "$ac_ct_CC"; then
3717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 ac_cv_prog_ac_ct_CC="$ac_prog"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3729 fi
3730 done
3731 done
3732 IFS=$as_save_IFS
3733
3734 fi
3735 fi
3736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3737 if test -n "$ac_ct_CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3739 $as_echo "$ac_ct_CC" >&6; }
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744
3745
3746 test -n "$ac_ct_CC" && break
3747 done
3748
3749 if test "x$ac_ct_CC" = x; then
3750 CC=""
3751 else
3752 case $cross_compiling:$ac_tool_warned in
3753 yes:)
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756 ac_tool_warned=yes ;;
3757 esac
3758 CC=$ac_ct_CC
3759 fi
3760 fi
3761
3762 fi
3763
3764
3765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "no acceptable C compiler found in \$PATH
3768 See \`config.log' for more details" "$LINENO" 5; }
3769
3770 # Provide some information about the compiler.
3771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3772 set X $ac_compile
3773 ac_compiler=$2
3774 for ac_option in --version -v -V -qversion; do
3775 { { ac_try="$ac_compiler $ac_option >&5"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3783 ac_status=$?
3784 if test -s conftest.err; then
3785 sed '10a\
3786 ... rest of stderr output deleted ...
3787 10q' conftest.err >conftest.er1
3788 cat conftest.er1 >&5
3789 fi
3790 rm -f conftest.er1 conftest.err
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }
3793 done
3794
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797
3798 int
3799 main ()
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 ac_clean_files_save=$ac_clean_files
3807 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3808 # Try to create an executable without -o first, disregard a.out.
3809 # It will help us diagnose broken compilers, and finding out an intuition
3810 # of exeext.
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3812 $as_echo_n "checking whether the C compiler works... " >&6; }
3813 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3814
3815 # The possible output files:
3816 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3817
3818 ac_rmfiles=
3819 for ac_file in $ac_files
3820 do
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3823 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3824 esac
3825 done
3826 rm -f $ac_rmfiles
3827
3828 if { { ac_try="$ac_link_default"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_link_default") 2>&5
3836 ac_status=$?
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3840 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3841 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3842 # so that the user can short-circuit this test for compilers unknown to
3843 # Autoconf.
3844 for ac_file in $ac_files ''
3845 do
3846 test -f "$ac_file" || continue
3847 case $ac_file in
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3849 ;;
3850 [ab].out )
3851 # We found the default executable, but exeext='' is most
3852 # certainly right.
3853 break;;
3854 *.* )
3855 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3856 then :; else
3857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3858 fi
3859 # We set ac_cv_exeext here because the later test for it is not
3860 # safe: cross compilers may not add the suffix if given an `-o'
3861 # argument, so we may need to know it at that point already.
3862 # Even if this section looks crufty: it has the advantage of
3863 # actually working.
3864 break;;
3865 * )
3866 break;;
3867 esac
3868 done
3869 test "$ac_cv_exeext" = no && ac_cv_exeext=
3870
3871 else
3872 ac_file=''
3873 fi
3874 if test -z "$ac_file"; then :
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3879
3880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error 77 "C compiler cannot create executables
3883 See \`config.log' for more details" "$LINENO" 5; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3889 $as_echo_n "checking for C compiler default output file name... " >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 ac_exeext=$ac_cv_exeext
3893
3894 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3895 ac_clean_files=$ac_clean_files_save
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3897 $as_echo_n "checking for suffix of executables... " >&6; }
3898 if { { ac_try="$ac_link"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_link") 2>&5
3906 ac_status=$?
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; then :
3909 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3910 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3911 # work properly (i.e., refer to `conftest.exe'), while it won't with
3912 # `rm'.
3913 for ac_file in conftest.exe conftest conftest.*; do
3914 test -f "$ac_file" || continue
3915 case $ac_file in
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3918 break;;
3919 * ) break;;
3920 esac
3921 done
3922 else
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3926 See \`config.log' for more details" "$LINENO" 5; }
3927 fi
3928 rm -f conftest conftest$ac_cv_exeext
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3930 $as_echo "$ac_cv_exeext" >&6; }
3931
3932 rm -f conftest.$ac_ext
3933 EXEEXT=$ac_cv_exeext
3934 ac_exeext=$EXEEXT
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <stdio.h>
3938 int
3939 main ()
3940 {
3941 FILE *f = fopen ("conftest.out", "w");
3942 return ferror (f) || fclose (f) != 0;
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 ac_clean_files="$ac_clean_files conftest.out"
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 $as_echo_n "checking whether we are cross compiling... " >&6; }
3953 if test "$cross_compiling" != yes; then
3954 { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 if { ac_try='./conftest$ac_cv_exeext'
3966 { { case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; }; then
3976 cross_compiling=no
3977 else
3978 if test "$cross_compiling" = maybe; then
3979 cross_compiling=yes
3980 else
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "cannot run C compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details" "$LINENO" 5; }
3986 fi
3987 fi
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3991
3992 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3993 ac_clean_files=$ac_clean_files_save
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if test "${ac_cv_objext+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001
4002 int
4003 main ()
4004 {
4005
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try="$ac_compile"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4019 ac_status=$?
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 break;;
4028 esac
4029 done
4030 else
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "cannot compute suffix of object files: cannot compile
4037 See \`config.log' for more details" "$LINENO" 5; }
4038 fi
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4044 ac_objext=$OBJEXT
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052
4053 int
4054 main ()
4055 {
4056 #ifndef __GNUC__
4057 choke me
4058 #endif
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_compiler_gnu=yes
4066 else
4067 ac_compiler_gnu=no
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4076 GCC=yes
4077 else
4078 GCC=
4079 fi
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if test "${ac_cv_prog_cc_g+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4089 ac_cv_prog_cc_g=no
4090 CFLAGS="-g"
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093
4094 int
4095 main ()
4096 {
4097
4098 ;
4099 return 0;
4100 }
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_cv_prog_cc_g=yes
4104 else
4105 CFLAGS=""
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108
4109 int
4110 main ()
4111 {
4112
4113 ;
4114 return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118
4119 else
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4121 CFLAGS="-g"
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124
4125 int
4126 main ()
4127 {
4128
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_prog_cc_g=yes
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4149 CFLAGS="-g -O2"
4150 else
4151 CFLAGS="-g"
4152 fi
4153 else
4154 if test "$GCC" = yes; then
4155 CFLAGS="-O2"
4156 else
4157 CFLAGS=
4158 fi
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_cv_prog_cc_c89=no
4166 ac_save_CC=$CC
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <stdarg.h>
4170 #include <stdio.h>
4171 #include <sys/types.h>
4172 #include <sys/stat.h>
4173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4174 struct buf { int x; };
4175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4176 static char *e (p, i)
4177 char **p;
4178 int i;
4179 {
4180 return p[i];
4181 }
4182 static char *f (char * (*g) (char **, int), char **p, ...)
4183 {
4184 char *s;
4185 va_list v;
4186 va_start (v,p);
4187 s = g (p, va_arg (v,int));
4188 va_end (v);
4189 return s;
4190 }
4191
4192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4193 function prototypes and stuff, but not '\xHH' hex character constants.
4194 These don't provoke an error unfortunately, instead are silently treated
4195 as 'x'. The following induces an error, until -std is added to get
4196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4197 array size at least. It's necessary to write '\x00'==0 to get something
4198 that's true only with -std. */
4199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4200
4201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4202 inside strings and character constants. */
4203 #define FOO(x) 'x'
4204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4205
4206 int test (int i, double x);
4207 struct s1 {int (*f) (int a);};
4208 struct s2 {int (*f) (double a);};
4209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4210 int argc;
4211 char **argv;
4212 int
4213 main ()
4214 {
4215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4222 do
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c89=$ac_arg
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 done
4230 rm -f conftest.$ac_ext
4231 CC=$ac_save_CC
4232
4233 fi
4234 # AC_CACHE_VAL
4235 case "x$ac_cv_prog_cc_c89" in
4236 x)
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4239 xno)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4242 *)
4243 CC="$CC $ac_cv_prog_cc_c89"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4246 esac
4247 if test "x$ac_cv_prog_cc_c89" != xno; then :
4248
4249 fi
4250
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258 # On Suns, sometimes $CPP names a directory.
4259 if test -n "$CPP" && test -d "$CPP"; then
4260 CPP=
4261 fi
4262
4263 ## If not using gcc, and on Solaris, and no CPP specified, see if
4264 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4265 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4266 test x"$CPP" = x; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4268 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4269
4270 if test "${emacs_cv_sunpro_c+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275
4276 int
4277 main ()
4278 {
4279 #ifndef __SUNPRO_C
4280 fail;
4281 #endif
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_c_try_link "$LINENO"; then :
4288 emacs_cv_sunpro_c=yes
4289 else
4290 emacs_cv_sunpro_c=no
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext \
4293 conftest$ac_exeext conftest.$ac_ext
4294 fi
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4297 $as_echo "$emacs_cv_sunpro_c" >&6; }
4298
4299 if test x"$emacs_cv_sunpro_c" = xyes; then
4300 NON_GNU_CPP="$CC -E -Xs"
4301 fi
4302 fi
4303
4304 #### Some systems specify a CPP to use unless we are using GCC.
4305 #### Now that we know whether we are using GCC, we can decide whether
4306 #### to use that one.
4307 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4308 then
4309 CPP="$NON_GNU_CPP"
4310 fi
4311
4312 #### Some systems specify a CC to use unless we are using GCC.
4313 #### Now that we know whether we are using GCC, we can decide whether
4314 #### to use that one.
4315 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4316 test x$cc_specified != xyes
4317 then
4318 CC="$NON_GNU_CC"
4319 fi
4320
4321 ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4327 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4328 # On Suns, sometimes $CPP names a directory.
4329 if test -n "$CPP" && test -d "$CPP"; then
4330 CPP=
4331 fi
4332 if test -z "$CPP"; then
4333 if test "${ac_cv_prog_CPP+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 # Double quotes because CPP needs to be expanded
4337 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4338 do
4339 ac_preproc_ok=false
4340 for ac_c_preproc_warn_flag in '' yes
4341 do
4342 # Use a header file that comes with gcc, so configuring glibc
4343 # with a fresh cross-compiler works.
4344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4345 # <limits.h> exists even on freestanding compilers.
4346 # On the NeXT, cc -E runs the code through the compiler's parser,
4347 # not just through cpp. "Syntax error" is here to catch this case.
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #ifdef __STDC__
4351 # include <limits.h>
4352 #else
4353 # include <assert.h>
4354 #endif
4355 Syntax error
4356 _ACEOF
4357 if ac_fn_c_try_cpp "$LINENO"; then :
4358
4359 else
4360 # Broken: fails on valid input.
4361 continue
4362 fi
4363 rm -f conftest.err conftest.$ac_ext
4364
4365 # OK, works on sane cases. Now check whether nonexistent headers
4366 # can be detected and how.
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #include <ac_nonexistent.h>
4370 _ACEOF
4371 if ac_fn_c_try_cpp "$LINENO"; then :
4372 # Broken: success on invalid input.
4373 continue
4374 else
4375 # Passes both tests.
4376 ac_preproc_ok=:
4377 break
4378 fi
4379 rm -f conftest.err conftest.$ac_ext
4380
4381 done
4382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4383 rm -f conftest.err conftest.$ac_ext
4384 if $ac_preproc_ok; then :
4385 break
4386 fi
4387
4388 done
4389 ac_cv_prog_CPP=$CPP
4390
4391 fi
4392 CPP=$ac_cv_prog_CPP
4393 else
4394 ac_cv_prog_CPP=$CPP
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4397 $as_echo "$CPP" >&6; }
4398 ac_preproc_ok=false
4399 for ac_c_preproc_warn_flag in '' yes
4400 do
4401 # Use a header file that comes with gcc, so configuring glibc
4402 # with a fresh cross-compiler works.
4403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4404 # <limits.h> exists even on freestanding compilers.
4405 # On the NeXT, cc -E runs the code through the compiler's parser,
4406 # not just through cpp. "Syntax error" is here to catch this case.
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409 #ifdef __STDC__
4410 # include <limits.h>
4411 #else
4412 # include <assert.h>
4413 #endif
4414 Syntax error
4415 _ACEOF
4416 if ac_fn_c_try_cpp "$LINENO"; then :
4417
4418 else
4419 # Broken: fails on valid input.
4420 continue
4421 fi
4422 rm -f conftest.err conftest.$ac_ext
4423
4424 # OK, works on sane cases. Now check whether nonexistent headers
4425 # can be detected and how.
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <ac_nonexistent.h>
4429 _ACEOF
4430 if ac_fn_c_try_cpp "$LINENO"; then :
4431 # Broken: success on invalid input.
4432 continue
4433 else
4434 # Passes both tests.
4435 ac_preproc_ok=:
4436 break
4437 fi
4438 rm -f conftest.err conftest.$ac_ext
4439
4440 done
4441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4442 rm -f conftest.err conftest.$ac_ext
4443 if $ac_preproc_ok; then :
4444
4445 else
4446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4448 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4449 See \`config.log' for more details" "$LINENO" 5; }
4450 fi
4451
4452 ac_ext=c
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4461 if test "${ac_cv_path_GREP+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -z "$GREP"; then
4465 ac_path_GREP_found=false
4466 # Loop through the user's path and test for each of PROGNAME-LIST
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469 do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_prog in grep ggrep; do
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4475 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4476 # Check for GNU ac_path_GREP and select it if it is found.
4477 # Check for GNU $ac_path_GREP
4478 case `"$ac_path_GREP" --version 2>&1` in
4479 *GNU*)
4480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4481 *)
4482 ac_count=0
4483 $as_echo_n 0123456789 >"conftest.in"
4484 while :
4485 do
4486 cat "conftest.in" "conftest.in" >"conftest.tmp"
4487 mv "conftest.tmp" "conftest.in"
4488 cp "conftest.in" "conftest.nl"
4489 $as_echo 'GREP' >> "conftest.nl"
4490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492 as_fn_arith $ac_count + 1 && ac_count=$as_val
4493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4494 # Best one so far, save it but keep looking for a better one
4495 ac_cv_path_GREP="$ac_path_GREP"
4496 ac_path_GREP_max=$ac_count
4497 fi
4498 # 10*(2^10) chars as input seems more than enough
4499 test $ac_count -gt 10 && break
4500 done
4501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502 esac
4503
4504 $ac_path_GREP_found && break 3
4505 done
4506 done
4507 done
4508 IFS=$as_save_IFS
4509 if test -z "$ac_cv_path_GREP"; then
4510 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4511 fi
4512 else
4513 ac_cv_path_GREP=$GREP
4514 fi
4515
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4518 $as_echo "$ac_cv_path_GREP" >&6; }
4519 GREP="$ac_cv_path_GREP"
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4523 $as_echo_n "checking for egrep... " >&6; }
4524 if test "${ac_cv_path_EGREP+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4528 then ac_cv_path_EGREP="$GREP -E"
4529 else
4530 if test -z "$EGREP"; then
4531 ac_path_EGREP_found=false
4532 # Loop through the user's path and test for each of PROGNAME-LIST
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535 do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_prog in egrep; do
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4541 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4542 # Check for GNU ac_path_EGREP and select it if it is found.
4543 # Check for GNU $ac_path_EGREP
4544 case `"$ac_path_EGREP" --version 2>&1` in
4545 *GNU*)
4546 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4547 *)
4548 ac_count=0
4549 $as_echo_n 0123456789 >"conftest.in"
4550 while :
4551 do
4552 cat "conftest.in" "conftest.in" >"conftest.tmp"
4553 mv "conftest.tmp" "conftest.in"
4554 cp "conftest.in" "conftest.nl"
4555 $as_echo 'EGREP' >> "conftest.nl"
4556 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558 as_fn_arith $ac_count + 1 && ac_count=$as_val
4559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4560 # Best one so far, save it but keep looking for a better one
4561 ac_cv_path_EGREP="$ac_path_EGREP"
4562 ac_path_EGREP_max=$ac_count
4563 fi
4564 # 10*(2^10) chars as input seems more than enough
4565 test $ac_count -gt 10 && break
4566 done
4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 esac
4569
4570 $ac_path_EGREP_found && break 3
4571 done
4572 done
4573 done
4574 IFS=$as_save_IFS
4575 if test -z "$ac_cv_path_EGREP"; then
4576 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577 fi
4578 else
4579 ac_cv_path_EGREP=$EGREP
4580 fi
4581
4582 fi
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4585 $as_echo "$ac_cv_path_EGREP" >&6; }
4586 EGREP="$ac_cv_path_EGREP"
4587
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4590 $as_echo_n "checking for ANSI C header files... " >&6; }
4591 if test "${ac_cv_header_stdc+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <stdlib.h>
4597 #include <stdarg.h>
4598 #include <string.h>
4599 #include <float.h>
4600
4601 int
4602 main ()
4603 {
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 ac_cv_header_stdc=yes
4611 else
4612 ac_cv_header_stdc=no
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615
4616 if test $ac_cv_header_stdc = yes; then
4617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #include <string.h>
4621
4622 _ACEOF
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 $EGREP "memchr" >/dev/null 2>&1; then :
4625
4626 else
4627 ac_cv_header_stdc=no
4628 fi
4629 rm -f conftest*
4630
4631 fi
4632
4633 if test $ac_cv_header_stdc = yes; then
4634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 #include <stdlib.h>
4638
4639 _ACEOF
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641 $EGREP "free" >/dev/null 2>&1; then :
4642
4643 else
4644 ac_cv_header_stdc=no
4645 fi
4646 rm -f conftest*
4647
4648 fi
4649
4650 if test $ac_cv_header_stdc = yes; then
4651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4652 if test "$cross_compiling" = yes; then :
4653 :
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #include <ctype.h>
4658 #include <stdlib.h>
4659 #if ((' ' & 0x0FF) == 0x020)
4660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4662 #else
4663 # define ISLOWER(c) \
4664 (('a' <= (c) && (c) <= 'i') \
4665 || ('j' <= (c) && (c) <= 'r') \
4666 || ('s' <= (c) && (c) <= 'z'))
4667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4668 #endif
4669
4670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4671 int
4672 main ()
4673 {
4674 int i;
4675 for (i = 0; i < 256; i++)
4676 if (XOR (islower (i), ISLOWER (i))
4677 || toupper (i) != TOUPPER (i))
4678 return 2;
4679 return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_run "$LINENO"; then :
4683
4684 else
4685 ac_cv_header_stdc=no
4686 fi
4687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4688 conftest.$ac_objext conftest.beam conftest.$ac_ext
4689 fi
4690
4691 fi
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4694 $as_echo "$ac_cv_header_stdc" >&6; }
4695 if test $ac_cv_header_stdc = yes; then
4696
4697 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4698
4699 fi
4700
4701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4703 inttypes.h stdint.h unistd.h
4704 do :
4705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4706 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4707 "
4708 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4709 cat >>confdefs.h <<_ACEOF
4710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711 _ACEOF
4712
4713 fi
4714
4715 done
4716
4717
4718
4719 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4720 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4721 MINIX=yes
4722 else
4723 MINIX=
4724 fi
4725
4726
4727 if test "$MINIX" = yes; then
4728
4729 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4730
4731
4732 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4733
4734
4735 $as_echo "#define _MINIX 1" >>confdefs.h
4736
4737 fi
4738
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4741 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4742 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747
4748 # define __EXTENSIONS__ 1
4749 $ac_includes_default
4750 int
4751 main ()
4752 {
4753
4754 ;
4755 return 0;
4756 }
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_cv_safe_to_define___extensions__=yes
4760 else
4761 ac_cv_safe_to_define___extensions__=no
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4766 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4767 test $ac_cv_safe_to_define___extensions__ = yes &&
4768 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4769
4770 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4771
4772 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4773
4774 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4775
4776 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4777
4778
4779
4780 ### Use -Wno-pointer-sign if the compiler supports it
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4782 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4783 SAVE_CFLAGS="$CFLAGS"
4784 CFLAGS="$CFLAGS -Wno-pointer-sign"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787
4788 int
4789 main ()
4790 {
4791
4792 ;
4793 return 0;
4794 }
4795 _ACEOF
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 has_option=yes
4798 else
4799 has_option=no
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 if test $has_option = yes; then
4803 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4806 $as_echo "$has_option" >&6; }
4807 CFLAGS="$SAVE_CFLAGS"
4808 unset has_option
4809 unset SAVE_CFLAGS
4810
4811 ### Use -Wdeclaration-after-statement if the compiler supports it
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4813 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4814 SAVE_CFLAGS="$CFLAGS"
4815 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818
4819 int
4820 main ()
4821 {
4822
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828 has_option=yes
4829 else
4830 has_option=no
4831 fi
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 if test $has_option = yes; then
4834 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4837 $as_echo "$has_option" >&6; }
4838 CFLAGS="$SAVE_CFLAGS"
4839 unset has_option
4840 unset SAVE_CFLAGS
4841
4842 ### Use -Wold-style-definition if the compiler supports it
4843 # This can be removed when conversion to standard C is finished.
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4845 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4846 SAVE_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS -Wold-style-definition"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850
4851 int
4852 main ()
4853 {
4854
4855 ;
4856 return 0;
4857 }
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 has_option=yes
4861 else
4862 has_option=no
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 if test $has_option = yes; then
4866 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4869 $as_echo "$has_option" >&6; }
4870 CFLAGS="$SAVE_CFLAGS"
4871 unset has_option
4872 unset SAVE_CFLAGS
4873
4874
4875
4876 #### Some other nice autoconf tests.
4877
4878 ac_ext=c
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4884 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4885 # On Suns, sometimes $CPP names a directory.
4886 if test -n "$CPP" && test -d "$CPP"; then
4887 CPP=
4888 fi
4889 if test -z "$CPP"; then
4890 if test "${ac_cv_prog_CPP+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 # Double quotes because CPP needs to be expanded
4894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4895 do
4896 ac_preproc_ok=false
4897 for ac_c_preproc_warn_flag in '' yes
4898 do
4899 # Use a header file that comes with gcc, so configuring glibc
4900 # with a fresh cross-compiler works.
4901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4902 # <limits.h> exists even on freestanding compilers.
4903 # On the NeXT, cc -E runs the code through the compiler's parser,
4904 # not just through cpp. "Syntax error" is here to catch this case.
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 #ifdef __STDC__
4908 # include <limits.h>
4909 #else
4910 # include <assert.h>
4911 #endif
4912 Syntax error
4913 _ACEOF
4914 if ac_fn_c_try_cpp "$LINENO"; then :
4915
4916 else
4917 # Broken: fails on valid input.
4918 continue
4919 fi
4920 rm -f conftest.err conftest.$ac_ext
4921
4922 # OK, works on sane cases. Now check whether nonexistent headers
4923 # can be detected and how.
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #include <ac_nonexistent.h>
4927 _ACEOF
4928 if ac_fn_c_try_cpp "$LINENO"; then :
4929 # Broken: success on invalid input.
4930 continue
4931 else
4932 # Passes both tests.
4933 ac_preproc_ok=:
4934 break
4935 fi
4936 rm -f conftest.err conftest.$ac_ext
4937
4938 done
4939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4940 rm -f conftest.err conftest.$ac_ext
4941 if $ac_preproc_ok; then :
4942 break
4943 fi
4944
4945 done
4946 ac_cv_prog_CPP=$CPP
4947
4948 fi
4949 CPP=$ac_cv_prog_CPP
4950 else
4951 ac_cv_prog_CPP=$CPP
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4954 $as_echo "$CPP" >&6; }
4955 ac_preproc_ok=false
4956 for ac_c_preproc_warn_flag in '' yes
4957 do
4958 # Use a header file that comes with gcc, so configuring glibc
4959 # with a fresh cross-compiler works.
4960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961 # <limits.h> exists even on freestanding compilers.
4962 # On the NeXT, cc -E runs the code through the compiler's parser,
4963 # not just through cpp. "Syntax error" is here to catch this case.
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4966 #ifdef __STDC__
4967 # include <limits.h>
4968 #else
4969 # include <assert.h>
4970 #endif
4971 Syntax error
4972 _ACEOF
4973 if ac_fn_c_try_cpp "$LINENO"; then :
4974
4975 else
4976 # Broken: fails on valid input.
4977 continue
4978 fi
4979 rm -f conftest.err conftest.$ac_ext
4980
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 #include <ac_nonexistent.h>
4986 _ACEOF
4987 if ac_fn_c_try_cpp "$LINENO"; then :
4988 # Broken: success on invalid input.
4989 continue
4990 else
4991 # Passes both tests.
4992 ac_preproc_ok=:
4993 break
4994 fi
4995 rm -f conftest.err conftest.$ac_ext
4996
4997 done
4998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4999 rm -f conftest.err conftest.$ac_ext
5000 if $ac_preproc_ok; then :
5001
5002 else
5003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5005 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5006 See \`config.log' for more details" "$LINENO" 5; }
5007 fi
5008
5009 ac_ext=c
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014
5015 # Find a good install program. We prefer a C program (faster),
5016 # so one script is as good as another. But avoid the broken or
5017 # incompatible versions:
5018 # SysV /etc/install, /usr/sbin/install
5019 # SunOS /usr/etc/install
5020 # IRIX /sbin/install
5021 # AIX /bin/install
5022 # AmigaOS /C/install, which installs bootblocks on floppy discs
5023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5026 # OS/2's system install, which has a completely different semantic
5027 # ./install, which can be erroneously created by make from ./install.sh.
5028 # Reject install programs that cannot install multiple files.
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5030 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5031 if test -z "$INSTALL"; then
5032 if test "${ac_cv_path_install+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 # Account for people who put trailing slashes in PATH elements.
5041 case $as_dir/ in #((
5042 ./ | .// | /[cC]/* | \
5043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5044 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5045 /usr/ucb/* ) ;;
5046 *)
5047 # OSF1 and SCO ODT 3.0 have their own names for install.
5048 # Don't use installbsd from OSF since it installs stuff as root
5049 # by default.
5050 for ac_prog in ginstall scoinst install; do
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5053 if test $ac_prog = install &&
5054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5055 # AIX install. It has an incompatible calling convention.
5056 :
5057 elif test $ac_prog = install &&
5058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5059 # program-specific install script used by HP pwplus--don't use.
5060 :
5061 else
5062 rm -rf conftest.one conftest.two conftest.dir
5063 echo one > conftest.one
5064 echo two > conftest.two
5065 mkdir conftest.dir
5066 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5067 test -s conftest.one && test -s conftest.two &&
5068 test -s conftest.dir/conftest.one &&
5069 test -s conftest.dir/conftest.two
5070 then
5071 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5072 break 3
5073 fi
5074 fi
5075 fi
5076 done
5077 done
5078 ;;
5079 esac
5080
5081 done
5082 IFS=$as_save_IFS
5083
5084 rm -rf conftest.one conftest.two conftest.dir
5085
5086 fi
5087 if test "${ac_cv_path_install+set}" = set; then
5088 INSTALL=$ac_cv_path_install
5089 else
5090 # As a last resort, use the slow shell script. Don't cache a
5091 # value for INSTALL within a source directory, because that will
5092 # break other packages using the cache if that directory is
5093 # removed, or if the value is a relative name.
5094 INSTALL=$ac_install_sh
5095 fi
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5098 $as_echo "$INSTALL" >&6; }
5099
5100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5101 # It thinks the first close brace ends the variable substitution.
5102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5103
5104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5105
5106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5107
5108 if test "x$RANLIB" = x; then
5109 if test -n "$ac_tool_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$RANLIB"; then
5118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 RANLIB=$ac_cv_prog_RANLIB
5138 if test -n "$RANLIB"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5140 $as_echo "$RANLIB" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146
5147 fi
5148 if test -z "$ac_cv_prog_RANLIB"; then
5149 ac_ct_RANLIB=$RANLIB
5150 # Extract the first word of "ranlib", so it can be a program name with args.
5151 set dummy ranlib; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$ac_ct_RANLIB"; then
5158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_ac_ct_RANLIB="ranlib"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5178 if test -n "$ac_ct_RANLIB"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5180 $as_echo "$ac_ct_RANLIB" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186 if test "x$ac_ct_RANLIB" = x; then
5187 RANLIB=":"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195 RANLIB=$ac_ct_RANLIB
5196 fi
5197 else
5198 RANLIB="$ac_cv_prog_RANLIB"
5199 fi
5200
5201 fi
5202
5203 ## Although we're running on an amd64 kernel, we're actually compiling for
5204 ## the x86 architecture. The user should probably have provided an
5205 ## explicit --build to `configure', but if everything else than the kernel
5206 ## is running in i386 mode, we can help them out.
5207 if test "$machine" = "amdx86-64"; then
5208 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5209 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5210
5211 fi
5212
5213 if test "$ac_cv_have_decl_i386" = "yes"; then
5214 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5215 machine=intel386
5216 machfile="m/${machine}.h"
5217 fi
5218 fi
5219
5220 # Extract the first word of "install-info", so it can be a program name with args.
5221 set dummy install-info; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 case $INSTALL_INFO in
5228 [\\/]* | ?:[\\/]*)
5229 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5230 ;;
5231 *)
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243 done
5244 done
5245 IFS=$as_save_IFS
5246
5247 ;;
5248 esac
5249 fi
5250 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5251 if test -n "$INSTALL_INFO"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5253 $as_echo "$INSTALL_INFO" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260 # Extract the first word of "install-info", so it can be a program name with args.
5261 set dummy install-info; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 case $INSTALL_INFO in
5268 [\\/]* | ?:[\\/]*)
5269 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5270 ;;
5271 *)
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in /usr/sbin
5274 do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283 done
5284 done
5285 IFS=$as_save_IFS
5286
5287 ;;
5288 esac
5289 fi
5290 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5291 if test -n "$INSTALL_INFO"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5293 $as_echo "$INSTALL_INFO" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300 # Extract the first word of "install-info", so it can be a program name with args.
5301 set dummy install-info; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 case $INSTALL_INFO in
5308 [\\/]* | ?:[\\/]*)
5309 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5310 ;;
5311 *)
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in /sbin
5314 do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5322 fi
5323 done
5324 done
5325 IFS=$as_save_IFS
5326
5327 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5328 ;;
5329 esac
5330 fi
5331 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5332 if test -n "$INSTALL_INFO"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5334 $as_echo "$INSTALL_INFO" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340
5341 # Extract the first word of "gzip", so it can be a program name with args.
5342 set dummy gzip; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 case $GZIP_PROG in
5349 [\\/]* | ?:[\\/]*)
5350 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5351 ;;
5352 *)
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368 ;;
5369 esac
5370 fi
5371 GZIP_PROG=$ac_cv_path_GZIP_PROG
5372 if test -n "$GZIP_PROG"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5374 $as_echo "$GZIP_PROG" >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 fi
5379
5380
5381
5382
5383 ## Need makeinfo >= 4.6 (?) to build the manuals.
5384 # Extract the first word of "makeinfo", so it can be a program name with args.
5385 set dummy makeinfo; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 case $MAKEINFO in
5392 [\\/]* | ?:[\\/]*)
5393 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5394 ;;
5395 *)
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5406 fi
5407 done
5408 done
5409 IFS=$as_save_IFS
5410
5411 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5412 ;;
5413 esac
5414 fi
5415 MAKEINFO=$ac_cv_path_MAKEINFO
5416 if test -n "$MAKEINFO"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5418 $as_echo "$MAKEINFO" >&6; }
5419 else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423
5424
5425 if test "$MAKEINFO" != "no" && \
5426 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
5427 MAKEINFO=no
5428 fi
5429
5430 ## Makeinfo is unusual. For a released Emacs, the manuals are
5431 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5432 ## therefore in the category of "special tools" not normally required, which
5433 ## configure does not have to check for (eg autoconf itself).
5434 ## In a Bazaar checkout on the other hand, the manuals are not included.
5435 ## So makeinfo is a requirement to build from Bazaar, and configure
5436 ## should test for it as it does for any other build requirement.
5437 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5438 ## with pre-built manuals, from a Bazaar checkout.
5439 if test "$MAKEINFO" = "no"; then
5440 if test "x${with_makeinfo}" = "xno"; then
5441 MAKEINFO=off
5442 elif test ! -e $srcdir/info/emacs; then
5443 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5444 source tree does not seem to have pre-built manuals in the \`info' directory.
5445 Either install a suitable version of makeinfo, or re-run configure
5446 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5447 fi
5448 fi
5449
5450
5451 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5452 then
5453 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5454 fi
5455
5456 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5457 then
5458 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5459 fi
5460
5461
5462 late_LDFLAGS=$LDFLAGS
5463 if test "$GCC" = yes; then
5464 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5465 else
5466 LDFLAGS="$LDFLAGS -znocombreloc"
5467 fi
5468
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5470 $as_echo_n "checking for -znocombreloc... " >&6; }
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473 main(){return 0;}
5474 _ACEOF
5475 if ac_fn_c_try_link "$LINENO"; then :
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5477 $as_echo "yes" >&6; }
5478 else
5479 LDFLAGS=$late_LDFLAGS
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5485
5486
5487 # The value of CPP is a quoted variable reference, so we need to do this
5488 # to get its actual value...
5489 CPP=`eval "echo $CPP"`
5490
5491
5492 CANNOT_DUMP=no
5493 case "$opsys" in
5494 your-opsys-here)
5495 CANNOT_DUMP=yes
5496
5497 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5498
5499 ;;
5500 esac
5501
5502
5503
5504 UNEXEC_OBJ=unexelf.o
5505 case "$opsys" in
5506 # MSDOS uses unexec.o
5507 # MSWindows uses unexw32.o
5508 aix4-2)
5509 UNEXEC_OBJ=unexaix.o
5510 ;;
5511 cygwin)
5512 UNEXEC_OBJ=unexcw.o
5513 ;;
5514 darwin)
5515 UNEXEC_OBJ=unexmacosx.o
5516 ;;
5517 hpux10-20 | hpux11)
5518 UNEXEC_OBJ=unexhp9k800.o
5519 ;;
5520 sol2-10)
5521 # Use the Solaris dldump() function, called from unexsol.c, to dump
5522 # emacs, instead of the generic ELF dump code found in unexelf.c.
5523 # The resulting binary has a complete symbol table, and is better
5524 # for debugging and other observability tools (debuggers, pstack, etc).
5525 #
5526 # If you encounter a problem using dldump(), please consider sending
5527 # a message to the OpenSolaris tools-linking mailing list:
5528 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5529 #
5530 # It is likely that dldump() works with older Solaris too, but this has
5531 # not been tested, so for now this change is for Solaris 10 or newer.
5532 UNEXEC_OBJ=unexsol.o
5533 ;;
5534 esac
5535
5536 LD_SWITCH_SYSTEM=
5537 case "$opsys" in
5538 freebsd)
5539 ## Let `ld' find image libs and similar things in /usr/local/lib.
5540 ## The system compiler, GCC, has apparently been modified to not
5541 ## look there, contrary to what a stock GCC would do.
5542 LD_SWITCH_SYSTEM=-L/usr/local/lib
5543 ;;
5544
5545 gnu-linux)
5546 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5547 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5548 ;;
5549
5550 netbsd)
5551 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5552 ;;
5553
5554 openbsd)
5555 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5556 ## otherwise Emacs dumps core on elf systems.
5557 LD_SWITCH_SYSTEM="-Z"
5558 ;;
5559 esac
5560
5561
5562 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5563
5564 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5565 ## which has not been defined yet. When this was handled with cpp,
5566 ## it was expanded to null when configure sourced the s/*.h file.
5567 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5568 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5569 ## (or somesuch), but because it is supposed to go at the _front_
5570 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5571 ## Compare with the gnu-linux case below, which added to the end
5572 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5573 ## LD_SWITCH_SYSTEM_TEMACS.
5574 case "$opsys" in
5575 netbsd|openbsd)
5576 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5577 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5578 esac
5579
5580
5581 C_SWITCH_MACHINE=
5582 if test "$machine" = "alpha"; then
5583 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5584 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5585
5586 fi
5587
5588 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5589 ## With ELF, make sure that all common symbols get allocated to in the
5590 ## data section. Otherwise, the dump of temacs may miss variables in
5591 ## the shared library that have been initialized. For example, with
5592 ## GNU libc, __malloc_initialized would normally be resolved to the
5593 ## shared library's .bss section, which is fatal.
5594 if test "x$GCC" = "xyes"; then
5595 C_SWITCH_MACHINE="-fno-common"
5596 else
5597 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5598 fi
5599 else
5600 UNEXEC_OBJ=unexalpha.o
5601 fi
5602 fi
5603
5604
5605
5606
5607 C_SWITCH_SYSTEM=
5608 ## Some programs in src produce warnings saying certain subprograms
5609 ## are too complex and need a MAXMEM value greater than 2000 for
5610 ## additional optimization. --nils@exp-math.uni-essen.de
5611 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5612 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5613 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5614 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5615
5616
5617
5618 LIBS_SYSTEM=
5619 case "$opsys" in
5620 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5621 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5622
5623 freebsd) LIBS_SYSTEM="-lutil" ;;
5624
5625 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5626
5627 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5628
5629 ## Motif needs -lgen.
5630 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5631 esac
5632
5633
5634
5635 ### Make sure subsequent tests use flags consistent with the build flags.
5636
5637 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5638 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5639 else
5640 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5641 fi
5642
5643
5644
5645 # Check whether --enable-largefile was given.
5646 if test "${enable_largefile+set}" = set; then :
5647 enableval=$enable_largefile;
5648 fi
5649
5650 if test "$enable_largefile" != no; then
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5653 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5654 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 ac_cv_sys_largefile_CC=no
5658 if test "$GCC" != yes; then
5659 ac_save_CC=$CC
5660 while :; do
5661 # IRIX 6.2 and later do not support large files by default,
5662 # so use the C compiler's -n32 option if that helps.
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 #include <sys/types.h>
5666 /* Check that off_t can represent 2**63 - 1 correctly.
5667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5668 since some C++ compilers masquerading as C compilers
5669 incorrectly reject 9223372036854775807. */
5670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5672 && LARGE_OFF_T % 2147483647 == 1)
5673 ? 1 : -1];
5674 int
5675 main ()
5676 {
5677
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 break
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext
5686 CC="$CC -n32"
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688 ac_cv_sys_largefile_CC=' -n32'; break
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext
5691 break
5692 done
5693 CC=$ac_save_CC
5694 rm -f conftest.$ac_ext
5695 fi
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5698 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5699 if test "$ac_cv_sys_largefile_CC" != no; then
5700 CC=$CC$ac_cv_sys_largefile_CC
5701 fi
5702
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5704 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5705 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 while :; do
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #include <sys/types.h>
5712 /* Check that off_t can represent 2**63 - 1 correctly.
5713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5714 since some C++ compilers masquerading as C compilers
5715 incorrectly reject 9223372036854775807. */
5716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5718 && LARGE_OFF_T % 2147483647 == 1)
5719 ? 1 : -1];
5720 int
5721 main ()
5722 {
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 ac_cv_sys_file_offset_bits=no; break
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 #define _FILE_OFFSET_BITS 64
5735 #include <sys/types.h>
5736 /* Check that off_t can represent 2**63 - 1 correctly.
5737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5738 since some C++ compilers masquerading as C compilers
5739 incorrectly reject 9223372036854775807. */
5740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5742 && LARGE_OFF_T % 2147483647 == 1)
5743 ? 1 : -1];
5744 int
5745 main ()
5746 {
5747
5748 ;
5749 return 0;
5750 }
5751 _ACEOF
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753 ac_cv_sys_file_offset_bits=64; break
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 ac_cv_sys_file_offset_bits=unknown
5757 break
5758 done
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5761 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5762 case $ac_cv_sys_file_offset_bits in #(
5763 no | unknown) ;;
5764 *)
5765 cat >>confdefs.h <<_ACEOF
5766 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5767 _ACEOF
5768 ;;
5769 esac
5770 rm -rf conftest*
5771 if test $ac_cv_sys_file_offset_bits = unknown; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5773 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5774 if test "${ac_cv_sys_large_files+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 while :; do
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <sys/types.h>
5781 /* Check that off_t can represent 2**63 - 1 correctly.
5782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5783 since some C++ compilers masquerading as C compilers
5784 incorrectly reject 9223372036854775807. */
5785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5787 && LARGE_OFF_T % 2147483647 == 1)
5788 ? 1 : -1];
5789 int
5790 main ()
5791 {
5792
5793 ;
5794 return 0;
5795 }
5796 _ACEOF
5797 if ac_fn_c_try_compile "$LINENO"; then :
5798 ac_cv_sys_large_files=no; break
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 #define _LARGE_FILES 1
5804 #include <sys/types.h>
5805 /* Check that off_t can represent 2**63 - 1 correctly.
5806 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5807 since some C++ compilers masquerading as C compilers
5808 incorrectly reject 9223372036854775807. */
5809 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5810 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5811 && LARGE_OFF_T % 2147483647 == 1)
5812 ? 1 : -1];
5813 int
5814 main ()
5815 {
5816
5817 ;
5818 return 0;
5819 }
5820 _ACEOF
5821 if ac_fn_c_try_compile "$LINENO"; then :
5822 ac_cv_sys_large_files=1; break
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 ac_cv_sys_large_files=unknown
5826 break
5827 done
5828 fi
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5830 $as_echo "$ac_cv_sys_large_files" >&6; }
5831 case $ac_cv_sys_large_files in #(
5832 no | unknown) ;;
5833 *)
5834 cat >>confdefs.h <<_ACEOF
5835 #define _LARGE_FILES $ac_cv_sys_large_files
5836 _ACEOF
5837 ;;
5838 esac
5839 rm -rf conftest*
5840 fi
5841 fi
5842
5843
5844
5845 ## If user specified a crt-dir, use that unconditionally.
5846 if test "X$CRT_DIR" = "X"; then
5847
5848 case "$canonical" in
5849 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5850 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5851 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5852 ## For anything else (eg /usr/lib32), it is up the user to specify
5853 ## the location (bug#5655).
5854 ## Test for crtn.o, not just the directory, because sometimes the
5855 ## directory exists but does not have the relevant files (bug#1287).
5856 ## FIXME better to test for binary compatibility somehow.
5857 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5858 ;;
5859
5860 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5861 esac
5862
5863 case "$opsys" in
5864 hpux10-20) CRT_DIR=/lib ;;
5865 esac
5866
5867 ## Default is /usr/lib.
5868 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5869
5870 else
5871
5872 ## Some platforms don't use any of these files, so it is not
5873 ## appropriate to put this test outside the if block.
5874 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5875 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5876
5877 fi
5878
5879
5880
5881 LIB_MATH=-lm
5882 LIB_STANDARD=
5883 START_FILES=
5884
5885 case $opsys in
5886 cygwin )
5887 LIB_MATH=
5888 START_FILES='pre-crt0.o'
5889 ;;
5890 darwin )
5891 ## Adding -lm confuses the dynamic linker, so omit it.
5892 LIB_MATH=
5893 START_FILES='pre-crt0.o'
5894 ;;
5895 freebsd )
5896 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5897 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5898 ;;
5899 gnu-linux | gnu-kfreebsd )
5900 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5901 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5902 ;;
5903 hpux10-20 | hpux11 )
5904 LIB_STANDARD=-lc
5905 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5906 ;;
5907 netbsd | openbsd )
5908 if test -f $CRT_DIR/crti.o; then
5909 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5910 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5911 else
5912 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5913 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5914 fi
5915 ;;
5916 esac
5917
5918
5919
5920
5921
5922
5923
5924 if test "${with_sound}" != "no"; then
5925 # Sound support for GNU/Linux and the free BSDs.
5926 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5927 do :
5928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5929 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5931 cat >>confdefs.h <<_ACEOF
5932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933 _ACEOF
5934 have_sound_header=yes
5935 fi
5936
5937 done
5938
5939 # Emulation library used on NetBSD.
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5941 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5942 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 ac_check_lib_save_LIBS=$LIBS
5946 LIBS="-lossaudio $LIBS"
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949
5950 /* Override any GCC internal prototype to avoid an error.
5951 Use char because int might match the return type of a GCC
5952 builtin and then its argument prototype would still apply. */
5953 #ifdef __cplusplus
5954 extern "C"
5955 #endif
5956 char _oss_ioctl ();
5957 int
5958 main ()
5959 {
5960 return _oss_ioctl ();
5961 ;
5962 return 0;
5963 }
5964 _ACEOF
5965 if ac_fn_c_try_link "$LINENO"; then :
5966 ac_cv_lib_ossaudio__oss_ioctl=yes
5967 else
5968 ac_cv_lib_ossaudio__oss_ioctl=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext \
5971 conftest$ac_exeext conftest.$ac_ext
5972 LIBS=$ac_check_lib_save_LIBS
5973 fi
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5975 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5976 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5977 LIBSOUND=-lossaudio
5978 else
5979 LIBSOUND=
5980 fi
5981
5982
5983
5984 ALSA_REQUIRED=1.0.0
5985 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5986
5987 succeeded=no
5988
5989 # Extract the first word of "pkg-config", so it can be a program name with args.
5990 set dummy pkg-config; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 case $PKG_CONFIG in
5997 [\\/]* | ?:[\\/]*)
5998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5999 ;;
6000 *)
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012 done
6013 done
6014 IFS=$as_save_IFS
6015
6016 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6017 ;;
6018 esac
6019 fi
6020 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6021 if test -n "$PKG_CONFIG"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6023 $as_echo "$PKG_CONFIG" >&6; }
6024 else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6027 fi
6028
6029
6030
6031 if test "$PKG_CONFIG" = "no" ; then
6032 HAVE_ALSA=no
6033 else
6034 PKG_CONFIG_MIN_VERSION=0.9.0
6035 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6037 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6038
6039 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6041 $as_echo "yes" >&6; }
6042 succeeded=yes
6043
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6045 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6046 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6048 $as_echo "$ALSA_CFLAGS" >&6; }
6049
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6051 $as_echo_n "checking ALSA_LIBS... " >&6; }
6052 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6054 $as_echo "$ALSA_LIBS" >&6; }
6055 else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 ALSA_CFLAGS=""
6059 ALSA_LIBS=""
6060 ## If we have a custom action on failure, don't print errors, but
6061 ## do set a variable so people can do so.
6062 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6063
6064 fi
6065
6066
6067
6068 else
6069 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6070 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6071 fi
6072 fi
6073
6074 if test $succeeded = yes; then
6075 HAVE_ALSA=yes
6076 else
6077 HAVE_ALSA=no
6078 fi
6079
6080 if test $HAVE_ALSA = yes; then
6081 SAVE_CFLAGS="$CFLAGS"
6082 SAVE_LDFLAGS="$LDFLAGS"
6083 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6084 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 #include <asoundlib.h>
6088 int
6089 main ()
6090 {
6091 snd_lib_error_set_handler (0);
6092 ;
6093 return 0;
6094 }
6095 _ACEOF
6096 if ac_fn_c_try_compile "$LINENO"; then :
6097 emacs_alsa_normal=yes
6098 else
6099 emacs_alsa_normal=no
6100 fi
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 if test "$emacs_alsa_normal" != yes; then
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 #include <alsa/asoundlib.h>
6106 int
6107 main ()
6108 {
6109 snd_lib_error_set_handler (0);
6110 ;
6111 return 0;
6112 }
6113 _ACEOF
6114 if ac_fn_c_try_compile "$LINENO"; then :
6115 emacs_alsa_subdir=yes
6116 else
6117 emacs_alsa_subdir=no
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 if test "$emacs_alsa_subdir" != yes; then
6121 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6122 fi
6123 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6124 fi
6125
6126 CFLAGS="$SAVE_CFLAGS"
6127 LDFLAGS="$SAVE_LDFLAGS"
6128 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6129 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6130
6131 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6132
6133 fi
6134
6135 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6136 case "$opsys" in
6137 gnu-linux|freebsd|netbsd)
6138
6139 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6140
6141 ;;
6142 esac
6143 fi
6144
6145
6146 fi
6147
6148 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6149 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6150 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6151 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6152 sys/utsname.h pwd.h utmp.h
6153 do :
6154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6156 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6159 _ACEOF
6160
6161 fi
6162
6163 done
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6167 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170 #include <sys/personality.h>
6171 int
6172 main ()
6173 {
6174 personality (PER_LINUX32)
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 if ac_fn_c_try_compile "$LINENO"; then :
6180 emacs_cv_personality_linux32=yes
6181 else
6182 emacs_cv_personality_linux32=no
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6186 $as_echo "$emacs_cv_personality_linux32" >&6; }
6187
6188 if test $emacs_cv_personality_linux32 = yes; then
6189
6190 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6191
6192 fi
6193
6194 for ac_header in term.h
6195 do :
6196 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6197 if test "x$ac_cv_header_term_h" = x""yes; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_TERM_H 1
6200 _ACEOF
6201
6202 fi
6203
6204 done
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6207 $as_echo_n "checking for ANSI C header files... " >&6; }
6208 if test "${ac_cv_header_stdc+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <stdlib.h>
6214 #include <stdarg.h>
6215 #include <string.h>
6216 #include <float.h>
6217
6218 int
6219 main ()
6220 {
6221
6222 ;
6223 return 0;
6224 }
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227 ac_cv_header_stdc=yes
6228 else
6229 ac_cv_header_stdc=no
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232
6233 if test $ac_cv_header_stdc = yes; then
6234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #include <string.h>
6238
6239 _ACEOF
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241 $EGREP "memchr" >/dev/null 2>&1; then :
6242
6243 else
6244 ac_cv_header_stdc=no
6245 fi
6246 rm -f conftest*
6247
6248 fi
6249
6250 if test $ac_cv_header_stdc = yes; then
6251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 #include <stdlib.h>
6255
6256 _ACEOF
6257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6258 $EGREP "free" >/dev/null 2>&1; then :
6259
6260 else
6261 ac_cv_header_stdc=no
6262 fi
6263 rm -f conftest*
6264
6265 fi
6266
6267 if test $ac_cv_header_stdc = yes; then
6268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6269 if test "$cross_compiling" = yes; then :
6270 :
6271 else
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 #include <ctype.h>
6275 #include <stdlib.h>
6276 #if ((' ' & 0x0FF) == 0x020)
6277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6279 #else
6280 # define ISLOWER(c) \
6281 (('a' <= (c) && (c) <= 'i') \
6282 || ('j' <= (c) && (c) <= 'r') \
6283 || ('s' <= (c) && (c) <= 'z'))
6284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6285 #endif
6286
6287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6288 int
6289 main ()
6290 {
6291 int i;
6292 for (i = 0; i < 256; i++)
6293 if (XOR (islower (i), ISLOWER (i))
6294 || toupper (i) != TOUPPER (i))
6295 return 2;
6296 return 0;
6297 }
6298 _ACEOF
6299 if ac_fn_c_try_run "$LINENO"; then :
6300
6301 else
6302 ac_cv_header_stdc=no
6303 fi
6304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6305 conftest.$ac_objext conftest.beam conftest.$ac_ext
6306 fi
6307
6308 fi
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6311 $as_echo "$ac_cv_header_stdc" >&6; }
6312 if test $ac_cv_header_stdc = yes; then
6313
6314 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6315
6316 fi
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6319 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6320 if test "${ac_cv_header_time+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 #include <sys/types.h>
6326 #include <sys/time.h>
6327 #include <time.h>
6328
6329 int
6330 main ()
6331 {
6332 if ((struct tm *) 0)
6333 return 0;
6334 ;
6335 return 0;
6336 }
6337 _ACEOF
6338 if ac_fn_c_try_compile "$LINENO"; then :
6339 ac_cv_header_time=yes
6340 else
6341 ac_cv_header_time=no
6342 fi
6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6346 $as_echo "$ac_cv_header_time" >&6; }
6347 if test $ac_cv_header_time = yes; then
6348
6349 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6350
6351 fi
6352
6353 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6354 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6355 ac_have_decl=1
6356 else
6357 ac_have_decl=0
6358 fi
6359
6360 cat >>confdefs.h <<_ACEOF
6361 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6362 _ACEOF
6363
6364 if test $ac_cv_have_decl_sys_siglist != yes; then
6365 # For Tru64, at least:
6366 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6367 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6368 ac_have_decl=1
6369 else
6370 ac_have_decl=0
6371 fi
6372
6373 cat >>confdefs.h <<_ACEOF
6374 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6375 _ACEOF
6376
6377 if test $ac_cv_have_decl___sys_siglist = yes; then
6378
6379 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6380
6381 fi
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6384 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6385 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 #include <sys/types.h>
6391 #include <sys/wait.h>
6392 #ifndef WEXITSTATUS
6393 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6394 #endif
6395 #ifndef WIFEXITED
6396 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6397 #endif
6398
6399 int
6400 main ()
6401 {
6402 int s;
6403 wait (&s);
6404 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6405 ;
6406 return 0;
6407 }
6408 _ACEOF
6409 if ac_fn_c_try_compile "$LINENO"; then :
6410 ac_cv_header_sys_wait_h=yes
6411 else
6412 ac_cv_header_sys_wait_h=no
6413 fi
6414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 fi
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6417 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6418 if test $ac_cv_header_sys_wait_h = yes; then
6419
6420 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6421
6422 fi
6423
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6426 $as_echo_n "checking for struct utimbuf... " >&6; }
6427 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 #ifdef TIME_WITH_SYS_TIME
6433 #include <sys/time.h>
6434 #include <time.h>
6435 #else
6436 #ifdef HAVE_SYS_TIME_H
6437 #include <sys/time.h>
6438 #else
6439 #include <time.h>
6440 #endif
6441 #endif
6442 #ifdef HAVE_UTIME_H
6443 #include <utime.h>
6444 #endif
6445 int
6446 main ()
6447 {
6448 static struct utimbuf x; x.actime = x.modtime;
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_c_try_compile "$LINENO"; then :
6454 emacs_cv_struct_utimbuf=yes
6455 else
6456 emacs_cv_struct_utimbuf=no
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 fi
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6461 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6462 if test $emacs_cv_struct_utimbuf = yes; then
6463
6464 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6465
6466 fi
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6469 $as_echo_n "checking return type of signal handlers... " >&6; }
6470 if test "${ac_cv_type_signal+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475 #include <sys/types.h>
6476 #include <signal.h>
6477
6478 int
6479 main ()
6480 {
6481 return *(signal (0, 0)) (0) == 1;
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487 ac_cv_type_signal=int
6488 else
6489 ac_cv_type_signal=void
6490 fi
6491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 fi
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6494 $as_echo "$ac_cv_type_signal" >&6; }
6495
6496 cat >>confdefs.h <<_ACEOF
6497 #define RETSIGTYPE $ac_cv_type_signal
6498 _ACEOF
6499
6500
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6503 $as_echo_n "checking for speed_t... " >&6; }
6504 if test "${emacs_cv_speed_t+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 #include <termios.h>
6510 int
6511 main ()
6512 {
6513 speed_t x = 1;
6514 ;
6515 return 0;
6516 }
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 emacs_cv_speed_t=yes
6520 else
6521 emacs_cv_speed_t=no
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 fi
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6526 $as_echo "$emacs_cv_speed_t" >&6; }
6527 if test $emacs_cv_speed_t = yes; then
6528
6529 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6530
6531 fi
6532
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6534 $as_echo_n "checking for struct timeval... " >&6; }
6535 if test "${emacs_cv_struct_timeval+set}" = set; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 #ifdef TIME_WITH_SYS_TIME
6541 #include <sys/time.h>
6542 #include <time.h>
6543 #else
6544 #ifdef HAVE_SYS_TIME_H
6545 #include <sys/time.h>
6546 #else
6547 #include <time.h>
6548 #endif
6549 #endif
6550 int
6551 main ()
6552 {
6553 static struct timeval x; x.tv_sec = x.tv_usec;
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 emacs_cv_struct_timeval=yes
6560 else
6561 emacs_cv_struct_timeval=no
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 fi
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6566 $as_echo "$emacs_cv_struct_timeval" >&6; }
6567 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6568 if test $emacs_cv_struct_timeval = yes; then
6569
6570 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6571
6572 fi
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6575 $as_echo_n "checking for struct exception... " >&6; }
6576 if test "${emacs_cv_struct_exception+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 #include <math.h>
6582 int
6583 main ()
6584 {
6585 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6586 ;
6587 return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 emacs_cv_struct_exception=yes
6592 else
6593 emacs_cv_struct_exception=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6598 $as_echo "$emacs_cv_struct_exception" >&6; }
6599 HAVE_EXCEPTION=$emacs_cv_struct_exception
6600 if test $emacs_cv_struct_exception != yes; then
6601
6602 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6603
6604 fi
6605
6606 for ac_header in sys/socket.h
6607 do :
6608 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6609 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6610 cat >>confdefs.h <<_ACEOF
6611 #define HAVE_SYS_SOCKET_H 1
6612 _ACEOF
6613
6614 fi
6615
6616 done
6617
6618 for ac_header in net/if.h
6619 do :
6620 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6621 #if HAVE_SYS_SOCKET_H
6622 #include <sys/socket.h>
6623 #endif
6624 "
6625 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6626 cat >>confdefs.h <<_ACEOF
6627 #define HAVE_NET_IF_H 1
6628 _ACEOF
6629
6630 fi
6631
6632 done
6633
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6636 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6637 if test "${ac_cv_struct_tm+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 #include <sys/types.h>
6643 #include <time.h>
6644
6645 int
6646 main ()
6647 {
6648 struct tm tm;
6649 int *p = &tm.tm_sec;
6650 return !p;
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 if ac_fn_c_try_compile "$LINENO"; then :
6656 ac_cv_struct_tm=time.h
6657 else
6658 ac_cv_struct_tm=sys/time.h
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6663 $as_echo "$ac_cv_struct_tm" >&6; }
6664 if test $ac_cv_struct_tm = sys/time.h; then
6665
6666 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6667
6668 fi
6669
6670 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6671 #include <$ac_cv_struct_tm>
6672
6673 "
6674 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6675
6676 cat >>confdefs.h <<_ACEOF
6677 #define HAVE_STRUCT_TM_TM_ZONE 1
6678 _ACEOF
6679
6680
6681 fi
6682
6683 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6684
6685 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6686
6687 else
6688 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6689 "
6690 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6691 ac_have_decl=1
6692 else
6693 ac_have_decl=0
6694 fi
6695
6696 cat >>confdefs.h <<_ACEOF
6697 #define HAVE_DECL_TZNAME $ac_have_decl
6698 _ACEOF
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6701 $as_echo_n "checking for tzname... " >&6; }
6702 if test "${ac_cv_var_tzname+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 #include <time.h>
6708 #if !HAVE_DECL_TZNAME
6709 extern char *tzname[];
6710 #endif
6711
6712 int
6713 main ()
6714 {
6715 return tzname[0][0];
6716 ;
6717 return 0;
6718 }
6719 _ACEOF
6720 if ac_fn_c_try_link "$LINENO"; then :
6721 ac_cv_var_tzname=yes
6722 else
6723 ac_cv_var_tzname=no
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext \
6726 conftest$ac_exeext conftest.$ac_ext
6727 fi
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6729 $as_echo "$ac_cv_var_tzname" >&6; }
6730 if test $ac_cv_var_tzname = yes; then
6731
6732 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6733
6734 fi
6735 fi
6736
6737 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6738 "
6739 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6740
6741 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6742
6743 fi
6744
6745 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6746 #if HAVE_SYS_SOCKET_H
6747 #include <sys/socket.h>
6748 #endif
6749 #if HAVE_NET_IF_H
6750 #include <net/if.h>
6751 #endif
6752 "
6753 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6754
6755 cat >>confdefs.h <<_ACEOF
6756 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6757 _ACEOF
6758
6759
6760 fi
6761 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6762 #if HAVE_SYS_SOCKET_H
6763 #include <sys/socket.h>
6764 #endif
6765 #if HAVE_NET_IF_H
6766 #include <net/if.h>
6767 #endif
6768 "
6769 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6770
6771 cat >>confdefs.h <<_ACEOF
6772 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6773 _ACEOF
6774
6775
6776 fi
6777 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6778 #if HAVE_SYS_SOCKET_H
6779 #include <sys/socket.h>
6780 #endif
6781 #if HAVE_NET_IF_H
6782 #include <net/if.h>
6783 #endif
6784 "
6785 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6786
6787 cat >>confdefs.h <<_ACEOF
6788 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6789 _ACEOF
6790
6791
6792 fi
6793 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6794 #if HAVE_SYS_SOCKET_H
6795 #include <sys/socket.h>
6796 #endif
6797 #if HAVE_NET_IF_H
6798 #include <net/if.h>
6799 #endif
6800 "
6801 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6805 _ACEOF
6806
6807
6808 fi
6809 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6810 #if HAVE_SYS_SOCKET_H
6811 #include <sys/socket.h>
6812 #endif
6813 #if HAVE_NET_IF_H
6814 #include <net/if.h>
6815 #endif
6816 "
6817 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6818
6819 cat >>confdefs.h <<_ACEOF
6820 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6821 _ACEOF
6822
6823
6824 fi
6825
6826
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6829 $as_echo_n "checking for function prototypes... " >&6; }
6830 if test "$ac_cv_prog_cc_c89" != no; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6832 $as_echo "yes" >&6; }
6833
6834 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6835
6836
6837 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6838
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6845 $as_echo_n "checking for working volatile... " >&6; }
6846 if test "${ac_cv_c_volatile+set}" = set; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851
6852 int
6853 main ()
6854 {
6855
6856 volatile int x;
6857 int * volatile y = (int *) 0;
6858 return !x && !y;
6859 ;
6860 return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 ac_cv_c_volatile=yes
6865 else
6866 ac_cv_c_volatile=no
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 fi
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6871 $as_echo "$ac_cv_c_volatile" >&6; }
6872 if test $ac_cv_c_volatile = no; then
6873
6874 $as_echo "#define volatile /**/" >>confdefs.h
6875
6876 fi
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6879 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6880 if test "${ac_cv_c_const+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885
6886 int
6887 main ()
6888 {
6889 /* FIXME: Include the comments suggested by Paul. */
6890 #ifndef __cplusplus
6891 /* Ultrix mips cc rejects this. */
6892 typedef int charset[2];
6893 const charset cs;
6894 /* SunOS 4.1.1 cc rejects this. */
6895 char const *const *pcpcc;
6896 char **ppc;
6897 /* NEC SVR4.0.2 mips cc rejects this. */
6898 struct point {int x, y;};
6899 static struct point const zero = {0,0};
6900 /* AIX XL C 1.02.0.0 rejects this.
6901 It does not let you subtract one const X* pointer from another in
6902 an arm of an if-expression whose if-part is not a constant
6903 expression */
6904 const char *g = "string";
6905 pcpcc = &g + (g ? g-g : 0);
6906 /* HPUX 7.0 cc rejects these. */
6907 ++pcpcc;
6908 ppc = (char**) pcpcc;
6909 pcpcc = (char const *const *) ppc;
6910 { /* SCO 3.2v4 cc rejects this. */
6911 char *t;
6912 char const *s = 0 ? (char *) 0 : (char const *) 0;
6913
6914 *t++ = 0;
6915 if (s) return 0;
6916 }
6917 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6918 int x[] = {25, 17};
6919 const int *foo = &x[0];
6920 ++foo;
6921 }
6922 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6923 typedef const int *iptr;
6924 iptr p = 0;
6925 ++p;
6926 }
6927 { /* AIX XL C 1.02.0.0 rejects this saying
6928 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6929 struct s { int j; const int *ap[3]; };
6930 struct s *b; b->j = 5;
6931 }
6932 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6933 const int foo = 10;
6934 if (!foo) return 0;
6935 }
6936 return !cs[0] && !zero.x;
6937 #endif
6938
6939 ;
6940 return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_compile "$LINENO"; then :
6944 ac_cv_c_const=yes
6945 else
6946 ac_cv_c_const=no
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6951 $as_echo "$ac_cv_c_const" >&6; }
6952 if test $ac_cv_c_const = no; then
6953
6954 $as_echo "#define const /**/" >>confdefs.h
6955
6956 fi
6957
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6959 $as_echo_n "checking for void * support... " >&6; }
6960 if test "${emacs_cv_void_star+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965
6966 int
6967 main ()
6968 {
6969 void * foo;
6970 ;
6971 return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_compile "$LINENO"; then :
6975 emacs_cv_void_star=yes
6976 else
6977 emacs_cv_void_star=no
6978 fi
6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 fi
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6982 $as_echo "$emacs_cv_void_star" >&6; }
6983 if test $emacs_cv_void_star = yes; then
6984 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6985
6986 else
6987 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6988
6989 fi
6990
6991
6992
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6995 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6996 set x ${MAKE-make}
6997 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6998 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 cat >conftest.make <<\_ACEOF
7002 SHELL = /bin/sh
7003 all:
7004 @echo '@@@%%%=$(MAKE)=@@@%%%'
7005 _ACEOF
7006 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7008 *@@@%%%=?*=@@@%%%*)
7009 eval ac_cv_prog_make_${ac_make}_set=yes;;
7010 *)
7011 eval ac_cv_prog_make_${ac_make}_set=no;;
7012 esac
7013 rm -f conftest.make
7014 fi
7015 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7017 $as_echo "yes" >&6; }
7018 SET_MAKE=
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022 SET_MAKE="MAKE=${MAKE-make}"
7023 fi
7024
7025
7026 DEPFLAGS=
7027 MKDEPDIR=":"
7028 deps_frag=deps.mk
7029 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7031 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7032 HAVE_GNU_MAKE=no
7033 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7034 if test "x$testval" != x; then
7035 HAVE_GNU_MAKE=yes
7036 else
7037 ac_enable_autodepend=no
7038 fi
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7040 $as_echo "$HAVE_GNU_MAKE" >&6; }
7041 if test $HAVE_GNU_MAKE = yes; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7043 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7044 SAVE_CFLAGS="$CFLAGS"
7045 CFLAGS="$CFLAGS -MMD -MF deps.d"
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048
7049 int
7050 main ()
7051 {
7052
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 if ac_fn_c_try_compile "$LINENO"; then :
7058
7059 else
7060 ac_enable_autodepend=no
7061 fi
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063 CFLAGS="$SAVE_CFLAGS"
7064 test -f deps.d || ac_enable_autodepend=no
7065 rm -rf deps.d
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7067 $as_echo "$ac_enable_autodepend" >&6; }
7068 fi
7069 if test $ac_enable_autodepend = yes; then
7070 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7071 ## In parallel builds, another make might create depdir between
7072 ## the first test and mkdir, so stick another test on the end.
7073 ## Or use mkinstalldirs? mkdir -p is not portable.
7074 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7075 deps_frag=autodeps.mk
7076 fi
7077 fi
7078 deps_frag=$srcdir/src/$deps_frag
7079
7080
7081
7082
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7085 $as_echo_n "checking for long file names... " >&6; }
7086 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 ac_cv_sys_long_file_names=yes
7090 # Test for long file names in all the places we know might matter:
7091 # . the current directory, where building will happen
7092 # $prefix/lib where we will be installing things
7093 # $exec_prefix/lib likewise
7094 # $TMPDIR if set, where it might want to write temporary files
7095 # /tmp where it might want to write temporary files
7096 # /var/tmp likewise
7097 # /usr/tmp likewise
7098 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7099 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7100 # in the usual case where exec_prefix is '${prefix}'.
7101 case $ac_dir in #(
7102 . | /* | ?:[\\/]*) ;; #(
7103 *) continue;;
7104 esac
7105 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7106 ac_xdir=$ac_dir/cf$$
7107 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7108 ac_tf1=$ac_xdir/conftest9012345
7109 ac_tf2=$ac_xdir/conftest9012346
7110 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7111 ac_cv_sys_long_file_names=no
7112 rm -f -r "$ac_xdir" 2>/dev/null
7113 test $ac_cv_sys_long_file_names = no && break
7114 done
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7117 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7118 if test $ac_cv_sys_long_file_names = yes; then
7119
7120 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7121
7122 fi
7123
7124
7125 #### Choose a window system.
7126
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7128 $as_echo_n "checking for X... " >&6; }
7129
7130
7131 # Check whether --with-x was given.
7132 if test "${with_x+set}" = set; then :
7133 withval=$with_x;
7134 fi
7135
7136 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7137 if test "x$with_x" = xno; then
7138 # The user explicitly disabled X.
7139 have_x=disabled
7140 else
7141 case $x_includes,$x_libraries in #(
7142 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7143 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 # One or both of the vars are not set, and there is no cached value.
7147 ac_x_includes=no ac_x_libraries=no
7148 rm -f -r conftest.dir
7149 if mkdir conftest.dir; then
7150 cd conftest.dir
7151 cat >Imakefile <<'_ACEOF'
7152 incroot:
7153 @echo incroot='${INCROOT}'
7154 usrlibdir:
7155 @echo usrlibdir='${USRLIBDIR}'
7156 libdir:
7157 @echo libdir='${LIBDIR}'
7158 _ACEOF
7159 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7160 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7161 for ac_var in incroot usrlibdir libdir; do
7162 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7163 done
7164 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7165 for ac_extension in a so sl dylib la dll; do
7166 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7167 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7168 ac_im_usrlibdir=$ac_im_libdir; break
7169 fi
7170 done
7171 # Screen out bogus values from the imake configuration. They are
7172 # bogus both because they are the default anyway, and because
7173 # using them would break gcc on systems where it needs fixed includes.
7174 case $ac_im_incroot in
7175 /usr/include) ac_x_includes= ;;
7176 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7177 esac
7178 case $ac_im_usrlibdir in
7179 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7180 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7181 esac
7182 fi
7183 cd ..
7184 rm -f -r conftest.dir
7185 fi
7186
7187 # Standard set of common directories for X headers.
7188 # Check X11 before X11Rn because it is often a symlink to the current release.
7189 ac_x_header_dirs='
7190 /usr/X11/include
7191 /usr/X11R7/include
7192 /usr/X11R6/include
7193 /usr/X11R5/include
7194 /usr/X11R4/include
7195
7196 /usr/include/X11
7197 /usr/include/X11R7
7198 /usr/include/X11R6
7199 /usr/include/X11R5
7200 /usr/include/X11R4
7201
7202 /usr/local/X11/include
7203 /usr/local/X11R7/include
7204 /usr/local/X11R6/include
7205 /usr/local/X11R5/include
7206 /usr/local/X11R4/include
7207
7208 /usr/local/include/X11
7209 /usr/local/include/X11R7
7210 /usr/local/include/X11R6
7211 /usr/local/include/X11R5
7212 /usr/local/include/X11R4
7213
7214 /usr/X386/include
7215 /usr/x386/include
7216 /usr/XFree86/include/X11
7217
7218 /usr/include
7219 /usr/local/include
7220 /usr/unsupported/include
7221 /usr/athena/include
7222 /usr/local/x11r5/include
7223 /usr/lpp/Xamples/include
7224
7225 /usr/openwin/include
7226 /usr/openwin/share/include'
7227
7228 if test "$ac_x_includes" = no; then
7229 # Guess where to find include files, by looking for Xlib.h.
7230 # First, try using that file with no special directory specified.
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 #include <X11/Xlib.h>
7234 _ACEOF
7235 if ac_fn_c_try_cpp "$LINENO"; then :
7236 # We can compile using X headers with no special include directory.
7237 ac_x_includes=
7238 else
7239 for ac_dir in $ac_x_header_dirs; do
7240 if test -r "$ac_dir/X11/Xlib.h"; then
7241 ac_x_includes=$ac_dir
7242 break
7243 fi
7244 done
7245 fi
7246 rm -f conftest.err conftest.$ac_ext
7247 fi # $ac_x_includes = no
7248
7249 if test "$ac_x_libraries" = no; then
7250 # Check for the libraries.
7251 # See if we find them without any special options.
7252 # Don't add to $LIBS permanently.
7253 ac_save_LIBS=$LIBS
7254 LIBS="-lX11 $LIBS"
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 #include <X11/Xlib.h>
7258 int
7259 main ()
7260 {
7261 XrmInitialize ()
7262 ;
7263 return 0;
7264 }
7265 _ACEOF
7266 if ac_fn_c_try_link "$LINENO"; then :
7267 LIBS=$ac_save_LIBS
7268 # We can link X programs with no special library path.
7269 ac_x_libraries=
7270 else
7271 LIBS=$ac_save_LIBS
7272 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7273 do
7274 # Don't even attempt the hair of trying to link an X program!
7275 for ac_extension in a so sl dylib la dll; do
7276 if test -r "$ac_dir/libX11.$ac_extension"; then
7277 ac_x_libraries=$ac_dir
7278 break 2
7279 fi
7280 done
7281 done
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 fi # $ac_x_libraries = no
7286
7287 case $ac_x_includes,$ac_x_libraries in #(
7288 no,* | *,no | *\'*)
7289 # Didn't find X, or a directory has "'" in its name.
7290 ac_cv_have_x="have_x=no";; #(
7291 *)
7292 # Record where we found X for the cache.
7293 ac_cv_have_x="have_x=yes\
7294 ac_x_includes='$ac_x_includes'\
7295 ac_x_libraries='$ac_x_libraries'"
7296 esac
7297 fi
7298 ;; #(
7299 *) have_x=yes;;
7300 esac
7301 eval "$ac_cv_have_x"
7302 fi # $with_x != no
7303
7304 if test "$have_x" != yes; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7306 $as_echo "$have_x" >&6; }
7307 no_x=yes
7308 else
7309 # If each of the values was on the command line, it overrides each guess.
7310 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7311 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7312 # Update the cache value to reflect the command line values.
7313 ac_cv_have_x="have_x=yes\
7314 ac_x_includes='$x_includes'\
7315 ac_x_libraries='$x_libraries'"
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7317 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7318 fi
7319
7320 if test "$no_x" = yes; then
7321 window_system=none
7322 else
7323 window_system=x11
7324 fi
7325
7326 ## Workaround for bug in autoconf <= 2.62.
7327 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7328 ## No need to do anything special for these standard directories.
7329 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7330
7331 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7332
7333 fi
7334
7335 LD_SWITCH_X_SITE_AUX=
7336 LD_SWITCH_X_SITE_AUX_RPATH=
7337 if test "${x_libraries}" != NONE; then
7338 if test -n "${x_libraries}"; then
7339 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7340 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7341 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7342 fi
7343 x_default_search_path=""
7344 x_search_path=${x_libraries}
7345 if test -z "${x_search_path}"; then
7346 x_search_path=/usr/lib
7347 fi
7348 for x_library in `echo ${x_search_path}: | \
7349 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7350 x_search_path="\
7351 ${x_library}/X11/%L/%T/%N%C%S:\
7352 ${x_library}/X11/%l/%T/%N%C%S:\
7353 ${x_library}/X11/%T/%N%C%S:\
7354 ${x_library}/X11/%L/%T/%N%S:\
7355 ${x_library}/X11/%l/%T/%N%S:\
7356 ${x_library}/X11/%T/%N%S"
7357 if test x"${x_default_search_path}" = x; then
7358 x_default_search_path=${x_search_path}
7359 else
7360 x_default_search_path="${x_search_path}:${x_default_search_path}"
7361 fi
7362 done
7363 fi
7364
7365
7366
7367 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7368 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7369 fi
7370
7371 if test x"${x_includes}" = x; then
7372 bitmapdir=/usr/include/X11/bitmaps
7373 else
7374 # accumulate include directories that have X11 bitmap subdirectories
7375 bmd_acc="dummyval"
7376 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7377 if test -d "${bmd}/X11/bitmaps"; then
7378 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7379 fi
7380 if test -d "${bmd}/bitmaps"; then
7381 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7382 fi
7383 done
7384 if test ${bmd_acc} != "dummyval"; then
7385 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7386 fi
7387 fi
7388
7389 HAVE_NS=no
7390 NS_IMPL_COCOA=no
7391 NS_IMPL_GNUSTEP=no
7392 tmp_CPPFLAGS="$CPPFLAGS"
7393 tmp_CFLAGS="$CFLAGS"
7394 CPPFLAGS="$CPPFLAGS -x objective-c"
7395 CFLAGS="$CFLAGS -x objective-c"
7396 TEMACS_LDFLAGS2="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7397 if test "${with_ns}" != no; then
7398 if test "${opsys}" = darwin; then
7399 NS_IMPL_COCOA=yes
7400 ns_appdir=`pwd`/nextstep/Emacs.app/
7401 ns_appbindir=${ns_appdir}Contents/MacOS/
7402 ns_appresdir=${ns_appdir}Contents/Resources
7403 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7404 elif test -f $GNUSTEP_CONFIG_FILE; then
7405 NS_IMPL_GNUSTEP=yes
7406 ns_appdir=`pwd`/nextstep/Emacs.app/
7407 ns_appbindir=${ns_appdir}
7408 ns_appresdir=${ns_appdir}Resources
7409 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7410 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7411 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7412 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7413 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7414 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7415 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7416 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7417 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7418 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7419 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7420 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7421 LIB_STANDARD=
7422 START_FILES=
7423 TEMACS_LDFLAGS2=
7424 fi
7425 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7426 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7427 HAVE_NS=yes
7428 else
7429 as_fn_error $? "\`--with-ns' was specified, but the include
7430 files are missing or cannot be compiled." "$LINENO" 5
7431 fi
7432
7433
7434 NS_HAVE_NSINTEGER=yes
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 #include <Foundation/NSObjCRuntime.h>
7438 int
7439 main ()
7440 {
7441 NSInteger i;
7442 ;
7443 return 0;
7444 }
7445 _ACEOF
7446 if ac_fn_c_try_compile "$LINENO"; then :
7447 ns_have_nsinteger=yes
7448 else
7449 ns_have_nsinteger=no
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452 if test $ns_have_nsinteger = no; then
7453 NS_HAVE_NSINTEGER=no
7454 fi
7455 fi
7456
7457
7458 ns_frag=/dev/null
7459 NS_OBJ=
7460 NS_SUPPORT=
7461 if test "${HAVE_NS}" = yes; then
7462 window_system=nextstep
7463 with_xft=no
7464 # set up packaging dirs
7465 exec_prefix=${ns_appbindir}
7466 libexecdir=${ns_appbindir}/libexec
7467 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7468 prefix=${ns_appresdir}
7469 fi
7470 ns_frag=$srcdir/src/ns.mk
7471 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7472 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7473 fi
7474 CFLAGS="$tmp_CFLAGS"
7475 CPPFLAGS="$tmp_CPPFLAGS"
7476
7477
7478
7479
7480
7481 case "${window_system}" in
7482 x11 )
7483 HAVE_X_WINDOWS=yes
7484 HAVE_X11=yes
7485 case "${with_x_toolkit}" in
7486 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7487 motif ) USE_X_TOOLKIT=MOTIF ;;
7488 gtk ) with_gtk=yes
7489 USE_X_TOOLKIT=none ;;
7490 gtk3 ) with_gtk3=yes
7491 USE_X_TOOLKIT=none ;;
7492 no ) USE_X_TOOLKIT=none ;;
7493 * ) USE_X_TOOLKIT=maybe ;;
7494 esac
7495 ;;
7496 nextstep | none )
7497 HAVE_X_WINDOWS=no
7498 HAVE_X11=no
7499 USE_X_TOOLKIT=none
7500 ;;
7501 esac
7502
7503 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7504 # Extract the first word of "X", so it can be a program name with args.
7505 set dummy X; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$HAVE_XSERVER"; then
7512 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_HAVE_XSERVER="true"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7530 fi
7531 fi
7532 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7533 if test -n "$HAVE_XSERVER"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7535 $as_echo "$HAVE_XSERVER" >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540
7541
7542 if test "$HAVE_XSERVER" = true ||
7543 test -n "$DISPLAY" ||
7544 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7545 as_fn_error $? "You seem to be running X, but no X development libraries
7546 were found. You should install the relevant development files for X
7547 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7548 sure you have development files for image handling, i.e.
7549 tiff, gif, jpeg, png and xpm.
7550 If you are sure you want Emacs compiled without X window support, pass
7551 --without-x
7552 to configure." "$LINENO" 5
7553 fi
7554 fi
7555
7556 ### If we're using X11, we should use the X menu package.
7557 HAVE_MENUS=no
7558 case ${HAVE_X11} in
7559 yes ) HAVE_MENUS=yes ;;
7560 esac
7561
7562 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7563 # Assume not, until told otherwise.
7564 GNU_MALLOC=yes
7565 doug_lea_malloc=yes
7566 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7567 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7568
7569 else
7570 doug_lea_malloc=no
7571 fi
7572
7573 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7574 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7575
7576 else
7577 doug_lea_malloc=no
7578 fi
7579
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7581 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7582 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 extern void (* __after_morecore_hook)();
7588 int
7589 main ()
7590 {
7591 __after_morecore_hook = 0
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 if ac_fn_c_try_link "$LINENO"; then :
7597 emacs_cv_var___after_morecore_hook=yes
7598 else
7599 emacs_cv_var___after_morecore_hook=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7605 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7606 if test $emacs_cv_var___after_morecore_hook = no; then
7607 doug_lea_malloc=no
7608 fi
7609
7610
7611 system_malloc=no
7612 case "$opsys" in
7613 ## darwin ld insists on the use of malloc routines in the System framework.
7614 darwin|sol2-10) system_malloc=yes ;;
7615 esac
7616
7617 if test "${system_malloc}" = "yes"; then
7618
7619 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7620
7621 GNU_MALLOC=no
7622 GNU_MALLOC_reason="
7623 (The GNU allocators don't work with this system configuration.)"
7624 GMALLOC_OBJ=
7625 VMLIMIT_OBJ=
7626 else
7627 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7628 VMLIMIT_OBJ=vm-limit.o
7629 fi
7630
7631
7632
7633 if test "$doug_lea_malloc" = "yes" ; then
7634 if test "$GNU_MALLOC" = yes ; then
7635 GNU_MALLOC_reason="
7636 (Using Doug Lea's new malloc from the GNU C Library.)"
7637 fi
7638
7639 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7640
7641
7642 ## Use mmap directly for allocating larger buffers.
7643 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7644 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7645 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7646 case "$opsys" in
7647 gnu*) REL_ALLOC=no ;;
7648 esac
7649 fi
7650
7651 if test x"${REL_ALLOC}" = x; then
7652 REL_ALLOC=${GNU_MALLOC}
7653 fi
7654
7655 use_mmap_for_buffers=no
7656 case "$opsys" in
7657 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7658 esac
7659
7660
7661
7662
7663 for ac_header in $ac_header_list
7664 do :
7665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7666 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7667 "
7668 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7669 cat >>confdefs.h <<_ACEOF
7670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7671 _ACEOF
7672
7673 fi
7674
7675 done
7676
7677
7678
7679
7680
7681
7682
7683
7684 for ac_func in getpagesize
7685 do :
7686 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7687 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7688 cat >>confdefs.h <<_ACEOF
7689 #define HAVE_GETPAGESIZE 1
7690 _ACEOF
7691
7692 fi
7693 done
7694
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7696 $as_echo_n "checking for working mmap... " >&6; }
7697 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 if test "$cross_compiling" = yes; then :
7701 ac_cv_func_mmap_fixed_mapped=no
7702 else
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7705 $ac_includes_default
7706 /* malloc might have been renamed as rpl_malloc. */
7707 #undef malloc
7708
7709 /* Thanks to Mike Haertel and Jim Avera for this test.
7710 Here is a matrix of mmap possibilities:
7711 mmap private not fixed
7712 mmap private fixed at somewhere currently unmapped
7713 mmap private fixed at somewhere already mapped
7714 mmap shared not fixed
7715 mmap shared fixed at somewhere currently unmapped
7716 mmap shared fixed at somewhere already mapped
7717 For private mappings, we should verify that changes cannot be read()
7718 back from the file, nor mmap's back from the file at a different
7719 address. (There have been systems where private was not correctly
7720 implemented like the infamous i386 svr4.0, and systems where the
7721 VM page cache was not coherent with the file system buffer cache
7722 like early versions of FreeBSD and possibly contemporary NetBSD.)
7723 For shared mappings, we should conversely verify that changes get
7724 propagated back to all the places they're supposed to be.
7725
7726 Grep wants private fixed already mapped.
7727 The main things grep needs to know about mmap are:
7728 * does it exist and is it safe to write into the mmap'd area
7729 * how to use it (BSD variants) */
7730
7731 #include <fcntl.h>
7732 #include <sys/mman.h>
7733
7734 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7735 char *malloc ();
7736 #endif
7737
7738 /* This mess was copied from the GNU getpagesize.h. */
7739 #ifndef HAVE_GETPAGESIZE
7740 # ifdef _SC_PAGESIZE
7741 # define getpagesize() sysconf(_SC_PAGESIZE)
7742 # else /* no _SC_PAGESIZE */
7743 # ifdef HAVE_SYS_PARAM_H
7744 # include <sys/param.h>
7745 # ifdef EXEC_PAGESIZE
7746 # define getpagesize() EXEC_PAGESIZE
7747 # else /* no EXEC_PAGESIZE */
7748 # ifdef NBPG
7749 # define getpagesize() NBPG * CLSIZE
7750 # ifndef CLSIZE
7751 # define CLSIZE 1
7752 # endif /* no CLSIZE */
7753 # else /* no NBPG */
7754 # ifdef NBPC
7755 # define getpagesize() NBPC
7756 # else /* no NBPC */
7757 # ifdef PAGESIZE
7758 # define getpagesize() PAGESIZE
7759 # endif /* PAGESIZE */
7760 # endif /* no NBPC */
7761 # endif /* no NBPG */
7762 # endif /* no EXEC_PAGESIZE */
7763 # else /* no HAVE_SYS_PARAM_H */
7764 # define getpagesize() 8192 /* punt totally */
7765 # endif /* no HAVE_SYS_PARAM_H */
7766 # endif /* no _SC_PAGESIZE */
7767
7768 #endif /* no HAVE_GETPAGESIZE */
7769
7770 int
7771 main ()
7772 {
7773 char *data, *data2, *data3;
7774 const char *cdata2;
7775 int i, pagesize;
7776 int fd, fd2;
7777
7778 pagesize = getpagesize ();
7779
7780 /* First, make a file with some known garbage in it. */
7781 data = (char *) malloc (pagesize);
7782 if (!data)
7783 return 1;
7784 for (i = 0; i < pagesize; ++i)
7785 *(data + i) = rand ();
7786 umask (0);
7787 fd = creat ("conftest.mmap", 0600);
7788 if (fd < 0)
7789 return 2;
7790 if (write (fd, data, pagesize) != pagesize)
7791 return 3;
7792 close (fd);
7793
7794 /* Next, check that the tail of a page is zero-filled. File must have
7795 non-zero length, otherwise we risk SIGBUS for entire page. */
7796 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7797 if (fd2 < 0)
7798 return 4;
7799 cdata2 = "";
7800 if (write (fd2, cdata2, 1) != 1)
7801 return 5;
7802 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7803 if (data2 == MAP_FAILED)
7804 return 6;
7805 for (i = 0; i < pagesize; ++i)
7806 if (*(data2 + i))
7807 return 7;
7808 close (fd2);
7809 if (munmap (data2, pagesize))
7810 return 8;
7811
7812 /* Next, try to mmap the file at a fixed address which already has
7813 something else allocated at it. If we can, also make sure that
7814 we see the same garbage. */
7815 fd = open ("conftest.mmap", O_RDWR);
7816 if (fd < 0)
7817 return 9;
7818 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7819 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7820 return 10;
7821 for (i = 0; i < pagesize; ++i)
7822 if (*(data + i) != *(data2 + i))
7823 return 11;
7824
7825 /* Finally, make sure that changes to the mapped area do not
7826 percolate back to the file as seen by read(). (This is a bug on
7827 some variants of i386 svr4.0.) */
7828 for (i = 0; i < pagesize; ++i)
7829 *(data2 + i) = *(data2 + i) + 1;
7830 data3 = (char *) malloc (pagesize);
7831 if (!data3)
7832 return 12;
7833 if (read (fd, data3, pagesize) != pagesize)
7834 return 13;
7835 for (i = 0; i < pagesize; ++i)
7836 if (*(data + i) != *(data3 + i))
7837 return 14;
7838 close (fd);
7839 return 0;
7840 }
7841 _ACEOF
7842 if ac_fn_c_try_run "$LINENO"; then :
7843 ac_cv_func_mmap_fixed_mapped=yes
7844 else
7845 ac_cv_func_mmap_fixed_mapped=no
7846 fi
7847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7848 conftest.$ac_objext conftest.beam conftest.$ac_ext
7849 fi
7850
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7853 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7854 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7855
7856 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7857
7858 fi
7859 rm -f conftest.mmap conftest.txt
7860
7861 if test $use_mmap_for_buffers = yes; then
7862
7863 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
7864
7865 REL_ALLOC=no
7866 fi
7867
7868 LIBS="$LIBS_SYSTEM $LIBS"
7869
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7871 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7872 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 ac_check_lib_save_LIBS=$LIBS
7876 LIBS="-ldnet $LIBS"
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879
7880 /* Override any GCC internal prototype to avoid an error.
7881 Use char because int might match the return type of a GCC
7882 builtin and then its argument prototype would still apply. */
7883 #ifdef __cplusplus
7884 extern "C"
7885 #endif
7886 char dnet_ntoa ();
7887 int
7888 main ()
7889 {
7890 return dnet_ntoa ();
7891 ;
7892 return 0;
7893 }
7894 _ACEOF
7895 if ac_fn_c_try_link "$LINENO"; then :
7896 ac_cv_lib_dnet_dnet_ntoa=yes
7897 else
7898 ac_cv_lib_dnet_dnet_ntoa=no
7899 fi
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 LIBS=$ac_check_lib_save_LIBS
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7905 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7906 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7907 cat >>confdefs.h <<_ACEOF
7908 #define HAVE_LIBDNET 1
7909 _ACEOF
7910
7911 LIBS="-ldnet $LIBS"
7912
7913 fi
7914
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7917 $as_echo_n "checking for main in -lXbsd... " >&6; }
7918 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 ac_check_lib_save_LIBS=$LIBS
7922 LIBS="-lXbsd $LIBS"
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925
7926
7927 int
7928 main ()
7929 {
7930 return main ();
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 ac_cv_lib_Xbsd_main=yes
7937 else
7938 ac_cv_lib_Xbsd_main=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LIBS=$ac_check_lib_save_LIBS
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7945 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7946 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7947 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7948 fi
7949
7950
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7952 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7953 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 ac_check_lib_save_LIBS=$LIBS
7957 LIBS="-lpthreads $LIBS"
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7960
7961 /* Override any GCC internal prototype to avoid an error.
7962 Use char because int might match the return type of a GCC
7963 builtin and then its argument prototype would still apply. */
7964 #ifdef __cplusplus
7965 extern "C"
7966 #endif
7967 char cma_open ();
7968 int
7969 main ()
7970 {
7971 return cma_open ();
7972 ;
7973 return 0;
7974 }
7975 _ACEOF
7976 if ac_fn_c_try_link "$LINENO"; then :
7977 ac_cv_lib_pthreads_cma_open=yes
7978 else
7979 ac_cv_lib_pthreads_cma_open=no
7980 fi
7981 rm -f core conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983 LIBS=$ac_check_lib_save_LIBS
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7986 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7987 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7988 cat >>confdefs.h <<_ACEOF
7989 #define HAVE_LIBPTHREADS 1
7990 _ACEOF
7991
7992 LIBS="-lpthreads $LIBS"
7993
7994 fi
7995
7996
7997 ## Note: when using cpp in s/aix4.2.h, this definition depended on
7998 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
7999 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8000 ## added to LIBS in configure would never contain the pthreads part,
8001 ## but the value used in Makefiles might. FIXME?
8002 ##
8003 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8004 ## be harmless on older versions of X where it happens to exist.
8005 test "$opsys" = "aix4-2" && \
8006 test $ac_cv_lib_pthreads_cma_open = yes && \
8007 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8008
8009
8010 case ${host_os} in
8011 aix*)
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8013 $as_echo_n "checking for -bbigtoc option... " >&6; }
8014 if test "${gdb_cv_bigtoc+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017
8018 case $GCC in
8019 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8020 *) gdb_cv_bigtoc=-bbigtoc ;;
8021 esac
8022
8023 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026
8027 int
8028 main ()
8029 {
8030 int i;
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 if ac_fn_c_try_link "$LINENO"; then :
8036
8037 else
8038 gdb_cv_bigtoc=
8039 fi
8040 rm -f core conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042
8043 fi
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8045 $as_echo "$gdb_cv_bigtoc" >&6; }
8046 ;;
8047 esac
8048
8049 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8050 # used for the tests that follow. We set them back to REAL_CFLAGS and
8051 # REAL_CPPFLAGS later on.
8052
8053 REAL_CFLAGS="$CFLAGS"
8054 REAL_CPPFLAGS="$CPPFLAGS"
8055
8056 if test "${HAVE_X11}" = "yes"; then
8057 DEFS="$C_SWITCH_X_SITE $DEFS"
8058 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8059 LIBS="-lX11 $LIBS"
8060 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8061 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8062
8063 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8064 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8065 # but it's more convenient here to set LD_RUN_PATH
8066 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8067 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8068 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8069 export LD_RUN_PATH
8070 fi
8071
8072 if test "${opsys}" = "gnu-linux"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8074 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077
8078 int
8079 main ()
8080 {
8081 XOpenDisplay ("foo");
8082 ;
8083 return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"; then :
8087 xlinux_first_failure=no
8088 else
8089 xlinux_first_failure=yes
8090 fi
8091 rm -f core conftest.err conftest.$ac_objext \
8092 conftest$ac_exeext conftest.$ac_ext
8093 if test "${xlinux_first_failure}" = "yes"; then
8094 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8095 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8096 OLD_CPPFLAGS="$CPPFLAGS"
8097 OLD_LIBS="$LIBS"
8098 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8099 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8100 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8101 LIBS="$LIBS -b i486-linuxaout"
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104
8105 int
8106 main ()
8107 {
8108 XOpenDisplay ("foo");
8109 ;
8110 return 0;
8111 }
8112 _ACEOF
8113 if ac_fn_c_try_link "$LINENO"; then :
8114 xlinux_second_failure=no
8115 else
8116 xlinux_second_failure=yes
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext \
8119 conftest$ac_exeext conftest.$ac_ext
8120 if test "${xlinux_second_failure}" = "yes"; then
8121 # If we get the same failure with -b, there is no use adding -b.
8122 # So take it out. This plays safe.
8123 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8124 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8125 CPPFLAGS="$OLD_CPPFLAGS"
8126 LIBS="$OLD_LIBS"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 fi
8133 else
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8136 fi
8137 fi
8138
8139 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8140 # header files included from there.
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8142 $as_echo_n "checking for Xkb... " >&6; }
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 #include <X11/Xlib.h>
8146 #include <X11/XKBlib.h>
8147 int
8148 main ()
8149 {
8150 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8151 ;
8152 return 0;
8153 }
8154 _ACEOF
8155 if ac_fn_c_try_link "$LINENO"; then :
8156 emacs_xkb=yes
8157 else
8158 emacs_xkb=no
8159 fi
8160 rm -f core conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8163 $as_echo "$emacs_xkb" >&6; }
8164 if test $emacs_xkb = yes; then
8165
8166 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8167
8168 fi
8169
8170 for ac_func in XrmSetDatabase XScreenResourceString \
8171 XScreenNumberOfScreen XSetWMProtocols
8172 do :
8173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8175 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8176 cat >>confdefs.h <<_ACEOF
8177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8178 _ACEOF
8179
8180 fi
8181 done
8182
8183 fi
8184
8185 if test "${window_system}" = "x11"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8187 $as_echo_n "checking X11 version 6... " >&6; }
8188 if test "${emacs_cv_x11_version_6+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 #include <X11/Xlib.h>
8194 int
8195 main ()
8196 {
8197 #if XlibSpecificationRelease < 6
8198 fail;
8199 #endif
8200
8201 ;
8202 return 0;
8203 }
8204 _ACEOF
8205 if ac_fn_c_try_link "$LINENO"; then :
8206 emacs_cv_x11_version_6=yes
8207 else
8208 emacs_cv_x11_version_6=no
8209 fi
8210 rm -f core conftest.err conftest.$ac_objext \
8211 conftest$ac_exeext conftest.$ac_ext
8212 fi
8213
8214 if test $emacs_cv_x11_version_6 = yes; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8216 $as_echo "6 or newer" >&6; }
8217
8218 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8219
8220
8221 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8222
8223 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8224 ## XIM support.
8225 case "$opsys" in
8226 sol2-*) : ;;
8227 *)
8228 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8229
8230 ;;
8231 esac
8232 else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8234 $as_echo "before 6" >&6; }
8235 fi
8236 fi
8237
8238
8239 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8240 HAVE_RSVG=no
8241 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8242 if test "${with_rsvg}" != "no"; then
8243 RSVG_REQUIRED=2.11.0
8244 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8245
8246
8247 succeeded=no
8248
8249 # Extract the first word of "pkg-config", so it can be a program name with args.
8250 set dummy pkg-config; ac_word=$2
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8252 $as_echo_n "checking for $ac_word... " >&6; }
8253 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 case $PKG_CONFIG in
8257 [\\/]* | ?:[\\/]*)
8258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8259 ;;
8260 *)
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8263 do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272 done
8273 done
8274 IFS=$as_save_IFS
8275
8276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8277 ;;
8278 esac
8279 fi
8280 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8281 if test -n "$PKG_CONFIG"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8283 $as_echo "$PKG_CONFIG" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287 fi
8288
8289
8290
8291 if test "$PKG_CONFIG" = "no" ; then
8292 :
8293 else
8294 PKG_CONFIG_MIN_VERSION=0.9.0
8295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8297 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8298
8299 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8301 $as_echo "yes" >&6; }
8302 succeeded=yes
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8305 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8306 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8308 $as_echo "$RSVG_CFLAGS" >&6; }
8309
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8311 $as_echo_n "checking RSVG_LIBS... " >&6; }
8312 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8314 $as_echo "$RSVG_LIBS" >&6; }
8315 else
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317 $as_echo "no" >&6; }
8318 RSVG_CFLAGS=""
8319 RSVG_LIBS=""
8320 ## If we have a custom action on failure, don't print errors, but
8321 ## do set a variable so people can do so.
8322 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8323
8324 fi
8325
8326
8327
8328 else
8329 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8330 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8331 fi
8332 fi
8333
8334 if test $succeeded = yes; then
8335 :
8336 else
8337 :
8338 fi
8339
8340
8341
8342
8343 if test ".${RSVG_CFLAGS}" != "."; then
8344 HAVE_RSVG=yes
8345
8346 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8347
8348 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8349 LIBS="$RSVG_LIBS $LIBS"
8350 fi
8351 fi
8352 fi
8353
8354
8355 HAVE_GTK=no
8356 if test "${with_gtk3}" = "yes"; then
8357 GLIB_REQUIRED=2.6
8358 GTK_REQUIRED=2.90
8359 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8360
8361
8362 succeeded=no
8363
8364 # Extract the first word of "pkg-config", so it can be a program name with args.
8365 set dummy pkg-config; ac_word=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 case $PKG_CONFIG in
8372 [\\/]* | ?:[\\/]*)
8373 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8374 ;;
8375 *)
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8386 fi
8387 done
8388 done
8389 IFS=$as_save_IFS
8390
8391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8392 ;;
8393 esac
8394 fi
8395 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8396 if test -n "$PKG_CONFIG"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8398 $as_echo "$PKG_CONFIG" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403
8404
8405
8406 if test "$PKG_CONFIG" = "no" ; then
8407 pkg_check_gtk=no
8408 else
8409 PKG_CONFIG_MIN_VERSION=0.9.0
8410 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8412 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8413
8414 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8416 $as_echo "yes" >&6; }
8417 succeeded=yes
8418
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8420 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8421 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8423 $as_echo "$GTK_CFLAGS" >&6; }
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8426 $as_echo_n "checking GTK_LIBS... " >&6; }
8427 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8429 $as_echo "$GTK_LIBS" >&6; }
8430 else
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8433 GTK_CFLAGS=""
8434 GTK_LIBS=""
8435 ## If we have a custom action on failure, don't print errors, but
8436 ## do set a variable so people can do so.
8437 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8438
8439 fi
8440
8441
8442
8443 else
8444 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8445 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8446 fi
8447 fi
8448
8449 if test $succeeded = yes; then
8450 pkg_check_gtk=yes
8451 else
8452 pkg_check_gtk=no
8453 fi
8454
8455 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8456 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8457 fi
8458 fi
8459
8460 if test "$pkg_check_gtk" != "yes"; then
8461 HAVE_GTK=no
8462 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8463 GLIB_REQUIRED=2.6
8464 GTK_REQUIRED=2.6
8465 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8466
8467
8468 succeeded=no
8469
8470 # Extract the first word of "pkg-config", so it can be a program name with args.
8471 set dummy pkg-config; ac_word=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 case $PKG_CONFIG in
8478 [\\/]* | ?:[\\/]*)
8479 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8480 ;;
8481 *)
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8484 do
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8489 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 break 2
8492 fi
8493 done
8494 done
8495 IFS=$as_save_IFS
8496
8497 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8498 ;;
8499 esac
8500 fi
8501 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8502 if test -n "$PKG_CONFIG"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8504 $as_echo "$PKG_CONFIG" >&6; }
8505 else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8508 fi
8509
8510
8511
8512 if test "$PKG_CONFIG" = "no" ; then
8513 pkg_check_gtk=no
8514 else
8515 PKG_CONFIG_MIN_VERSION=0.9.0
8516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8518 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8519
8520 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8522 $as_echo "yes" >&6; }
8523 succeeded=yes
8524
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8526 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8527 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8529 $as_echo "$GTK_CFLAGS" >&6; }
8530
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8532 $as_echo_n "checking GTK_LIBS... " >&6; }
8533 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8535 $as_echo "$GTK_LIBS" >&6; }
8536 else
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8539 GTK_CFLAGS=""
8540 GTK_LIBS=""
8541 ## If we have a custom action on failure, don't print errors, but
8542 ## do set a variable so people can do so.
8543 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8544
8545 fi
8546
8547
8548
8549 else
8550 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8551 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8552 fi
8553 fi
8554
8555 if test $succeeded = yes; then
8556 pkg_check_gtk=yes
8557 else
8558 pkg_check_gtk=no
8559 fi
8560
8561 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8562 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8563 fi
8564 fi
8565 fi
8566
8567 GTK_OBJ=
8568 if test x"$pkg_check_gtk" = xyes; then
8569
8570
8571
8572 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8573 CFLAGS="$CFLAGS $GTK_CFLAGS"
8574 LIBS="$GTK_LIBS $LIBS"
8575 GTK_COMPILES=no
8576 for ac_func in gtk_main
8577 do :
8578 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8579 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_GTK_MAIN 1
8582 _ACEOF
8583 GTK_COMPILES=yes
8584 fi
8585 done
8586
8587 if test "${GTK_COMPILES}" != "yes"; then
8588 if test "$USE_X_TOOLKIT" != "maybe"; then
8589 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8590 fi
8591 else
8592 HAVE_GTK=yes
8593
8594 $as_echo "#define USE_GTK 1" >>confdefs.h
8595
8596 GTK_OBJ=gtkutil.o
8597 USE_X_TOOLKIT=none
8598 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8599 :
8600 else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8602 closing open displays. This is no problem if you just use
8603 one display, but if you use more than one and close one of them
8604 Emacs may crash." >&5
8605 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8606 closing open displays. This is no problem if you just use
8607 one display, but if you use more than one and close one of them
8608 Emacs may crash." >&2;}
8609 sleep 3
8610 fi
8611 fi
8612
8613 fi
8614
8615
8616
8617 if test "${HAVE_GTK}" = "yes"; then
8618
8619 if test "$with_toolkit_scroll_bars" != no; then
8620 with_toolkit_scroll_bars=yes
8621 fi
8622
8623 HAVE_GTK_FILE_SELECTION=no
8624 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8625 #include <gtk/gtk.h>
8626 "
8627 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8628 HAVE_GTK_FILE_SELECTION=yes
8629 else
8630 HAVE_GTK_FILE_SELECTION=no
8631 fi
8632
8633 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8634 for ac_func in gtk_file_selection_new
8635 do :
8636 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8637 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8638 cat >>confdefs.h <<_ACEOF
8639 #define HAVE_GTK_FILE_SELECTION_NEW 1
8640 _ACEOF
8641
8642 fi
8643 done
8644
8645 fi
8646
8647 HAVE_GTK_AND_PTHREAD=no
8648 for ac_header in pthread.h
8649 do :
8650 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8651 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8652 cat >>confdefs.h <<_ACEOF
8653 #define HAVE_PTHREAD_H 1
8654 _ACEOF
8655
8656 fi
8657
8658 done
8659
8660 if test "$ac_cv_header_pthread_h"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8662 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8663 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 ac_check_lib_save_LIBS=$LIBS
8667 LIBS="-lpthread $LIBS"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8670
8671 /* Override any GCC internal prototype to avoid an error.
8672 Use char because int might match the return type of a GCC
8673 builtin and then its argument prototype would still apply. */
8674 #ifdef __cplusplus
8675 extern "C"
8676 #endif
8677 char pthread_self ();
8678 int
8679 main ()
8680 {
8681 return pthread_self ();
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_link "$LINENO"; then :
8687 ac_cv_lib_pthread_pthread_self=yes
8688 else
8689 ac_cv_lib_pthread_pthread_self=no
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
8693 LIBS=$ac_check_lib_save_LIBS
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8696 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8697 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8698 HAVE_GTK_AND_PTHREAD=yes
8699 fi
8700
8701 fi
8702 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8703 case "${canonical}" in
8704 *-hpux*) ;;
8705 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8706 esac
8707
8708 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8709
8710 fi
8711
8712 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
8713 gtk_dialog_get_action_area gtk_widget_get_sensitive \
8714 gtk_widget_get_mapped gtk_adjustment_get_page_size \
8715 gtk_orientable_set_orientation
8716 do :
8717 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8718 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8719 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8720 cat >>confdefs.h <<_ACEOF
8721 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8722 _ACEOF
8723
8724 fi
8725 done
8726
8727
8728 fi
8729
8730 HAVE_DBUS=no
8731 DBUS_OBJ=
8732 if test "${with_dbus}" = "yes"; then
8733
8734 succeeded=no
8735
8736 # Extract the first word of "pkg-config", so it can be a program name with args.
8737 set dummy pkg-config; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 case $PKG_CONFIG in
8744 [\\/]* | ?:[\\/]*)
8745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8746 ;;
8747 *)
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8750 do
8751 IFS=$as_save_IFS
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8755 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8757 break 2
8758 fi
8759 done
8760 done
8761 IFS=$as_save_IFS
8762
8763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8764 ;;
8765 esac
8766 fi
8767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8768 if test -n "$PKG_CONFIG"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8770 $as_echo "$PKG_CONFIG" >&6; }
8771 else
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8774 fi
8775
8776
8777
8778 if test "$PKG_CONFIG" = "no" ; then
8779 HAVE_DBUS=no
8780 else
8781 PKG_CONFIG_MIN_VERSION=0.9.0
8782 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8784 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8785
8786 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8788 $as_echo "yes" >&6; }
8789 succeeded=yes
8790
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8792 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8793 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8795 $as_echo "$DBUS_CFLAGS" >&6; }
8796
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8798 $as_echo_n "checking DBUS_LIBS... " >&6; }
8799 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8801 $as_echo "$DBUS_LIBS" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8805 DBUS_CFLAGS=""
8806 DBUS_LIBS=""
8807 ## If we have a custom action on failure, don't print errors, but
8808 ## do set a variable so people can do so.
8809 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8810
8811 fi
8812
8813
8814
8815 else
8816 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8817 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8818 fi
8819 fi
8820
8821 if test $succeeded = yes; then
8822 HAVE_DBUS=yes
8823 else
8824 HAVE_DBUS=no
8825 fi
8826
8827 if test "$HAVE_DBUS" = yes; then
8828 LIBS="$LIBS $DBUS_LIBS"
8829
8830 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8831
8832 for ac_func in dbus_watch_get_unix_fd
8833 do :
8834 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8835 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8836 cat >>confdefs.h <<_ACEOF
8837 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8838 _ACEOF
8839
8840 fi
8841 done
8842
8843 DBUS_OBJ=dbusbind.o
8844 fi
8845 fi
8846
8847
8848 HAVE_GCONF=no
8849 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8850
8851 succeeded=no
8852
8853 # Extract the first word of "pkg-config", so it can be a program name with args.
8854 set dummy pkg-config; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 case $PKG_CONFIG in
8861 [\\/]* | ?:[\\/]*)
8862 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8863 ;;
8864 *)
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8867 do
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8872 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8875 fi
8876 done
8877 done
8878 IFS=$as_save_IFS
8879
8880 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8881 ;;
8882 esac
8883 fi
8884 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8885 if test -n "$PKG_CONFIG"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8887 $as_echo "$PKG_CONFIG" >&6; }
8888 else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890 $as_echo "no" >&6; }
8891 fi
8892
8893
8894
8895 if test "$PKG_CONFIG" = "no" ; then
8896 HAVE_GCONF=no
8897 else
8898 PKG_CONFIG_MIN_VERSION=0.9.0
8899 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8901 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8902
8903 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8905 $as_echo "yes" >&6; }
8906 succeeded=yes
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8909 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8910 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8912 $as_echo "$GCONF_CFLAGS" >&6; }
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8915 $as_echo_n "checking GCONF_LIBS... " >&6; }
8916 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8918 $as_echo "$GCONF_LIBS" >&6; }
8919 else
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8922 GCONF_CFLAGS=""
8923 GCONF_LIBS=""
8924 ## If we have a custom action on failure, don't print errors, but
8925 ## do set a variable so people can do so.
8926 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8927
8928 fi
8929
8930
8931
8932 else
8933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8935 fi
8936 fi
8937
8938 if test $succeeded = yes; then
8939 HAVE_GCONF=yes
8940 else
8941 HAVE_GCONF=no
8942 fi
8943
8944 if test "$HAVE_GCONF" = yes; then
8945
8946 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8947
8948 fi
8949 fi
8950
8951 HAVE_LIBSELINUX=no
8952 LIBSELINUX_LIBS=
8953 if test "${with_selinux}" = "yes"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8955 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8956 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 ac_check_lib_save_LIBS=$LIBS
8960 LIBS="-lselinux $LIBS"
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963
8964 /* Override any GCC internal prototype to avoid an error.
8965 Use char because int might match the return type of a GCC
8966 builtin and then its argument prototype would still apply. */
8967 #ifdef __cplusplus
8968 extern "C"
8969 #endif
8970 char lgetfilecon ();
8971 int
8972 main ()
8973 {
8974 return lgetfilecon ();
8975 ;
8976 return 0;
8977 }
8978 _ACEOF
8979 if ac_fn_c_try_link "$LINENO"; then :
8980 ac_cv_lib_selinux_lgetfilecon=yes
8981 else
8982 ac_cv_lib_selinux_lgetfilecon=no
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8987 fi
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8989 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8990 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
8991 HAVE_LIBSELINUX=yes
8992 else
8993 HAVE_LIBSELINUX=no
8994 fi
8995
8996 if test "$HAVE_LIBSELINUX" = yes; then
8997
8998 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8999
9000 LIBSELINUX_LIBS=-lselinux
9001 fi
9002 fi
9003
9004
9005 HAVE_XAW3D=no
9006 LUCID_LIBW=
9007 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9008 if test "$with_xaw3d" != no; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9010 $as_echo_n "checking for xaw3d... " >&6; }
9011 if test "${emacs_cv_xaw3d+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9016
9017 #include <X11/Intrinsic.h>
9018 #include <X11/Xaw3d/Simple.h>
9019 int
9020 main ()
9021 {
9022
9023 ;
9024 return 0;
9025 }
9026 _ACEOF
9027 if ac_fn_c_try_link "$LINENO"; then :
9028 emacs_cv_xaw3d=yes
9029 else
9030 emacs_cv_xaw3d=no
9031 fi
9032 rm -f core conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034 fi
9035
9036 else
9037 emacs_cv_xaw3d=no
9038 fi
9039 if test $emacs_cv_xaw3d = yes; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9041 $as_echo "yes; using Lucid toolkit" >&6; }
9042 USE_X_TOOLKIT=LUCID
9043 HAVE_XAW3D=yes
9044 LUCID_LIBW=-lXaw3d
9045
9046 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9047
9048 else
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9052 $as_echo_n "checking for libXaw... " >&6; }
9053 if test "${emacs_cv_xaw+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058
9059 #include <X11/Intrinsic.h>
9060 #include <X11/Xaw/Simple.h>
9061 int
9062 main ()
9063 {
9064
9065 ;
9066 return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"; then :
9070 emacs_cv_xaw=yes
9071 else
9072 emacs_cv_xaw=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9076 fi
9077
9078 if test $emacs_cv_xaw = yes; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9080 $as_echo "yes; using Lucid toolkit" >&6; }
9081 USE_X_TOOLKIT=LUCID
9082 LUCID_LIBW=-lXaw
9083 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9084 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9087 $as_echo "no; do not use toolkit by default" >&6; }
9088 USE_X_TOOLKIT=none
9089 fi
9090 fi
9091 fi
9092
9093 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9094
9095 LIBXTR6=
9096 if test "${USE_X_TOOLKIT}" != "none"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9098 $as_echo_n "checking X11 toolkit version... " >&6; }
9099 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 #include <X11/Intrinsic.h>
9105 int
9106 main ()
9107 {
9108 #if XtSpecificationRelease < 6
9109 fail;
9110 #endif
9111
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117 emacs_cv_x11_toolkit_version_6=yes
9118 else
9119 emacs_cv_x11_toolkit_version_6=no
9120 fi
9121 rm -f core conftest.err conftest.$ac_objext \
9122 conftest$ac_exeext conftest.$ac_ext
9123 fi
9124
9125 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9126 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9128 $as_echo "6 or newer" >&6; }
9129
9130 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9131
9132 LIBXTR6="-lSM -lICE"
9133 case "$opsys" in
9134 ## Use libw.a along with X11R6 Xt.
9135 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9136 esac
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9139 $as_echo "before 6" >&6; }
9140 fi
9141
9142 OLDLIBS="$LIBS"
9143 if test x$HAVE_X11XTR6 = xyes; then
9144 LIBS="-lXt -lSM -lICE $LIBS"
9145 else
9146 LIBS="-lXt $LIBS"
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9149 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9150 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 ac_check_lib_save_LIBS=$LIBS
9154 LIBS="-lXmu $LIBS"
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9157
9158 /* Override any GCC internal prototype to avoid an error.
9159 Use char because int might match the return type of a GCC
9160 builtin and then its argument prototype would still apply. */
9161 #ifdef __cplusplus
9162 extern "C"
9163 #endif
9164 char XmuConvertStandardSelection ();
9165 int
9166 main ()
9167 {
9168 return XmuConvertStandardSelection ();
9169 ;
9170 return 0;
9171 }
9172 _ACEOF
9173 if ac_fn_c_try_link "$LINENO"; then :
9174 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9175 else
9176 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 LIBS=$ac_check_lib_save_LIBS
9181 fi
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9183 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9184 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9185 cat >>confdefs.h <<_ACEOF
9186 #define HAVE_LIBXMU 1
9187 _ACEOF
9188
9189 LIBS="-lXmu $LIBS"
9190
9191 fi
9192
9193 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9194 fi
9195
9196
9197 LIBXMU=-lXmu
9198 case "$machine" in
9199 ## These machines don't supply Xmu.
9200 hpux* | aix4-2 )
9201 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9202 ;;
9203 esac
9204
9205
9206 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9207 if test "${HAVE_X11}" = "yes"; then
9208 if test "${USE_X_TOOLKIT}" != "none"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9210 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9211 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 ac_check_lib_save_LIBS=$LIBS
9215 LIBS="-lXext $LIBS"
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218
9219 /* Override any GCC internal prototype to avoid an error.
9220 Use char because int might match the return type of a GCC
9221 builtin and then its argument prototype would still apply. */
9222 #ifdef __cplusplus
9223 extern "C"
9224 #endif
9225 char XShapeQueryExtension ();
9226 int
9227 main ()
9228 {
9229 return XShapeQueryExtension ();
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 if ac_fn_c_try_link "$LINENO"; then :
9235 ac_cv_lib_Xext_XShapeQueryExtension=yes
9236 else
9237 ac_cv_lib_Xext_XShapeQueryExtension=no
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
9241 LIBS=$ac_check_lib_save_LIBS
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9244 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9245 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9246 cat >>confdefs.h <<_ACEOF
9247 #define HAVE_LIBXEXT 1
9248 _ACEOF
9249
9250 LIBS="-lXext $LIBS"
9251
9252 fi
9253
9254 fi
9255 fi
9256
9257 LIBXP=
9258 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9260 $as_echo_n "checking for Motif version 2.1... " >&6; }
9261 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9266 #include <Xm/Xm.h>
9267 int
9268 main ()
9269 {
9270 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9271 int x = 5;
9272 #else
9273 Motif version prior to 2.1.
9274 #endif
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_compile "$LINENO"; then :
9280 emacs_cv_motif_version_2_1=yes
9281 else
9282 emacs_cv_motif_version_2_1=no
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 fi
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9287 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9288 if test $emacs_cv_motif_version_2_1 = yes; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9290 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9291 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 ac_check_lib_save_LIBS=$LIBS
9295 LIBS="-lXp $LIBS"
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298
9299 /* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 char XpCreateContext ();
9306 int
9307 main ()
9308 {
9309 return XpCreateContext ();
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 if ac_fn_c_try_link "$LINENO"; then :
9315 ac_cv_lib_Xp_XpCreateContext=yes
9316 else
9317 ac_cv_lib_Xp_XpCreateContext=no
9318 fi
9319 rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9324 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9325 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9326 LIBXP=-lXp
9327 fi
9328
9329 else
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9331 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9332 if test "${emacs_cv_lesstif+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 # We put this in CFLAGS temporarily to precede other -I options
9336 # that might be in CFLAGS temporarily.
9337 # We put this in CPPFLAGS where it precedes the other -I options.
9338 OLD_CPPFLAGS=$CPPFLAGS
9339 OLD_CFLAGS=$CFLAGS
9340 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9341 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9345 int
9346 main ()
9347 {
9348 int x = 5;
9349 ;
9350 return 0;
9351 }
9352 _ACEOF
9353 if ac_fn_c_try_compile "$LINENO"; then :
9354 emacs_cv_lesstif=yes
9355 else
9356 emacs_cv_lesstif=no
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9361 $as_echo "$emacs_cv_lesstif" >&6; }
9362 if test $emacs_cv_lesstif = yes; then
9363 # Make sure this -I option remains in CPPFLAGS after it is set
9364 # back to REAL_CPPFLAGS.
9365 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9366 # have those other -I options anyway. Ultimately, having this
9367 # directory ultimately in CPPFLAGS will be enough.
9368 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9369 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9370 else
9371 CFLAGS=$OLD_CFLAGS
9372 CPPFLAGS=$OLD_CPPFLAGS
9373 fi
9374 fi
9375 fi
9376
9377
9378 USE_TOOLKIT_SCROLL_BARS=no
9379 if test "${with_toolkit_scroll_bars}" != "no"; then
9380 if test "${USE_X_TOOLKIT}" != "none"; then
9381 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9382 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9383
9384 HAVE_XAW3D=no
9385 USE_TOOLKIT_SCROLL_BARS=yes
9386 elif test "${HAVE_XAW3D}" = "yes"; then
9387 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9388
9389 USE_TOOLKIT_SCROLL_BARS=yes
9390 fi
9391 elif test "${HAVE_GTK}" = "yes"; then
9392 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9393
9394 USE_TOOLKIT_SCROLL_BARS=yes
9395 elif test "${HAVE_NS}" = "yes"; then
9396 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9397
9398 USE_TOOLKIT_SCROLL_BARS=yes
9399 fi
9400 fi
9401
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9404
9405 #include <X11/Xlib.h>
9406 #include <X11/Xresource.h>
9407 int
9408 main ()
9409 {
9410 XIMProc callback;
9411 ;
9412 return 0;
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_compile "$LINENO"; then :
9416 HAVE_XIM=yes
9417
9418 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9419
9420 else
9421 HAVE_XIM=no
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424
9425
9426 if test "${with_xim}" != "no"; then
9427
9428 $as_echo "#define USE_XIM 1" >>confdefs.h
9429
9430 fi
9431
9432
9433 if test "${HAVE_XIM}" != "no"; then
9434 late_CFLAGS=$CFLAGS
9435 if test "$GCC" = yes; then
9436 CFLAGS="$CFLAGS --pedantic-errors"
9437 fi
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9440
9441 #include <X11/Xlib.h>
9442 #include <X11/Xresource.h>
9443 int
9444 main ()
9445 {
9446 Display *display;
9447 XrmDatabase db;
9448 char *res_name;
9449 char *res_class;
9450 XIMProc callback;
9451 XPointer *client_data;
9452 #ifndef __GNUC__
9453 /* If we're not using GCC, it's probably not XFree86, and this is
9454 probably right, but we can't use something like --pedantic-errors. */
9455 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9456 char*, XIMProc, XPointer*);
9457 #endif
9458 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9459 client_data);
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 if ac_fn_c_try_compile "$LINENO"; then :
9465 emacs_cv_arg6_star=yes
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468 if test "$emacs_cv_arg6_star" = yes; then
9469 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9470
9471 else
9472 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9473
9474 fi
9475 CFLAGS=$late_CFLAGS
9476 fi
9477
9478 ### Start of font-backend (under any platform) section.
9479 # (nothing here yet -- this is a placeholder)
9480 ### End of font-backend (under any platform) section.
9481
9482 ### Start of font-backend (under X11) section.
9483 if test "${HAVE_X11}" = "yes"; then
9484
9485 succeeded=no
9486
9487 # Extract the first word of "pkg-config", so it can be a program name with args.
9488 set dummy pkg-config; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 case $PKG_CONFIG in
9495 [\\/]* | ?:[\\/]*)
9496 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9497 ;;
9498 *)
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9509 fi
9510 done
9511 done
9512 IFS=$as_save_IFS
9513
9514 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9515 ;;
9516 esac
9517 fi
9518 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9519 if test -n "$PKG_CONFIG"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9521 $as_echo "$PKG_CONFIG" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9525 fi
9526
9527
9528
9529 if test "$PKG_CONFIG" = "no" ; then
9530 HAVE_FC=no
9531 else
9532 PKG_CONFIG_MIN_VERSION=0.9.0
9533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9535 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9536
9537 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9539 $as_echo "yes" >&6; }
9540 succeeded=yes
9541
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9543 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9544 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9546 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9547
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9549 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9550 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9552 $as_echo "$FONTCONFIG_LIBS" >&6; }
9553 else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9556 FONTCONFIG_CFLAGS=""
9557 FONTCONFIG_LIBS=""
9558 ## If we have a custom action on failure, don't print errors, but
9559 ## do set a variable so people can do so.
9560 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9561
9562 fi
9563
9564
9565
9566 else
9567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9569 fi
9570 fi
9571
9572 if test $succeeded = yes; then
9573 HAVE_FC=yes
9574 else
9575 HAVE_FC=no
9576 fi
9577
9578
9579 ## Use -lXft if available, unless `--with-xft=no'.
9580 HAVE_XFT=maybe
9581 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9582 with_xft="no";
9583 fi
9584 if test "x${with_xft}" != "xno"; then
9585
9586
9587 succeeded=no
9588
9589 # Extract the first word of "pkg-config", so it can be a program name with args.
9590 set dummy pkg-config; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 case $PKG_CONFIG in
9597 [\\/]* | ?:[\\/]*)
9598 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9599 ;;
9600 *)
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9603 do
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 break 2
9611 fi
9612 done
9613 done
9614 IFS=$as_save_IFS
9615
9616 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9617 ;;
9618 esac
9619 fi
9620 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9621 if test -n "$PKG_CONFIG"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9623 $as_echo "$PKG_CONFIG" >&6; }
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9627 fi
9628
9629
9630
9631 if test "$PKG_CONFIG" = "no" ; then
9632 HAVE_XFT=no
9633 else
9634 PKG_CONFIG_MIN_VERSION=0.9.0
9635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9637 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9638
9639 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9641 $as_echo "yes" >&6; }
9642 succeeded=yes
9643
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9645 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9646 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9648 $as_echo "$XFT_CFLAGS" >&6; }
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9651 $as_echo_n "checking XFT_LIBS... " >&6; }
9652 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9654 $as_echo "$XFT_LIBS" >&6; }
9655 else
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9658 XFT_CFLAGS=""
9659 XFT_LIBS=""
9660 ## If we have a custom action on failure, don't print errors, but
9661 ## do set a variable so people can do so.
9662 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9663
9664 fi
9665
9666
9667
9668 else
9669 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9670 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9671 fi
9672 fi
9673
9674 if test $succeeded = yes; then
9675 :
9676 else
9677 HAVE_XFT=no
9678 fi
9679
9680 ## Because xftfont.c uses XRenderQueryExtension, we also
9681 ## need to link to -lXrender.
9682 HAVE_XRENDER=no
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9684 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9685 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 ac_check_lib_save_LIBS=$LIBS
9689 LIBS="-lXrender $LIBS"
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692
9693 /* Override any GCC internal prototype to avoid an error.
9694 Use char because int might match the return type of a GCC
9695 builtin and then its argument prototype would still apply. */
9696 #ifdef __cplusplus
9697 extern "C"
9698 #endif
9699 char XRenderQueryExtension ();
9700 int
9701 main ()
9702 {
9703 return XRenderQueryExtension ();
9704 ;
9705 return 0;
9706 }
9707 _ACEOF
9708 if ac_fn_c_try_link "$LINENO"; then :
9709 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9710 else
9711 ac_cv_lib_Xrender_XRenderQueryExtension=no
9712 fi
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9716 fi
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9718 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9719 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9720 HAVE_XRENDER=yes
9721 fi
9722
9723 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9724 OLD_CPPFLAGS="$CPPFLAGS"
9725 OLD_CFLAGS="$CFLAGS"
9726 OLD_LIBS="$LIBS"
9727 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9728 CFLAGS="$CFLAGS $XFT_CFLAGS"
9729 XFT_LIBS="-lXrender $XFT_LIBS"
9730 LIBS="$XFT_LIBS $LIBS"
9731 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9732 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9734 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9735 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 ac_check_lib_save_LIBS=$LIBS
9739 LIBS="-lXft $XFT_LIBS $LIBS"
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9746 #ifdef __cplusplus
9747 extern "C"
9748 #endif
9749 char XftFontOpen ();
9750 int
9751 main ()
9752 {
9753 return XftFontOpen ();
9754 ;
9755 return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_link "$LINENO"; then :
9759 ac_cv_lib_Xft_XftFontOpen=yes
9760 else
9761 ac_cv_lib_Xft_XftFontOpen=no
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9768 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9769 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9770 HAVE_XFT=yes
9771 fi
9772
9773 fi
9774
9775
9776
9777 if test "${HAVE_XFT}" = "yes"; then
9778
9779 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9780
9781
9782 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9783 else
9784 CPPFLAGS="$OLD_CPPFLAGS"
9785 CFLAGS="$OLD_CFLAGS"
9786 LIBS="$OLD_LIBS"
9787 fi # "${HAVE_XFT}" = "yes"
9788 fi # "$HAVE_XFT" != no
9789 fi # "x${with_xft}" != "xno"
9790
9791 if test "$HAVE_XFT" != "yes"; then
9792 HAVE_XFT=no
9793 fi
9794
9795
9796 HAVE_FREETYPE=no
9797 ## We used to allow building with FreeType and without Xft.
9798 ## However, the ftx font backend driver is not in good shape.
9799 if test "${HAVE_XFT}" = "yes"; then
9800 HAVE_FREETYPE=yes
9801 FONTCONFIG_CFLAGS=
9802 FONTCONFIG_LIBS=
9803 fi
9804
9805 HAVE_LIBOTF=no
9806 if test "${HAVE_FREETYPE}" = "yes"; then
9807
9808 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9809
9810 if test "${with_libotf}" != "no"; then
9811
9812 succeeded=no
9813
9814 # Extract the first word of "pkg-config", so it can be a program name with args.
9815 set dummy pkg-config; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 case $PKG_CONFIG in
9822 [\\/]* | ?:[\\/]*)
9823 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9824 ;;
9825 *)
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9828 do
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9833 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9836 fi
9837 done
9838 done
9839 IFS=$as_save_IFS
9840
9841 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9842 ;;
9843 esac
9844 fi
9845 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9846 if test -n "$PKG_CONFIG"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9848 $as_echo "$PKG_CONFIG" >&6; }
9849 else
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9852 fi
9853
9854
9855
9856 if test "$PKG_CONFIG" = "no" ; then
9857 HAVE_LIBOTF=no
9858 else
9859 PKG_CONFIG_MIN_VERSION=0.9.0
9860 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9862 $as_echo_n "checking for libotf... " >&6; }
9863
9864 if $PKG_CONFIG --exists "libotf" 2>&5; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9866 $as_echo "yes" >&6; }
9867 succeeded=yes
9868
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9870 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9871 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9873 $as_echo "$LIBOTF_CFLAGS" >&6; }
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9876 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9877 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9879 $as_echo "$LIBOTF_LIBS" >&6; }
9880 else
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9883 LIBOTF_CFLAGS=""
9884 LIBOTF_LIBS=""
9885 ## If we have a custom action on failure, don't print errors, but
9886 ## do set a variable so people can do so.
9887 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9888
9889 fi
9890
9891
9892
9893 else
9894 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9895 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9896 fi
9897 fi
9898
9899 if test $succeeded = yes; then
9900 HAVE_LIBOTF=yes
9901 else
9902 HAVE_LIBOTF=no
9903 fi
9904
9905 if test "$HAVE_LIBOTF" = "yes"; then
9906
9907 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9908
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9910 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9911 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-lotf $LIBS"
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9918
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9922 #ifdef __cplusplus
9923 extern "C"
9924 #endif
9925 char OTF_get_variation_glyphs ();
9926 int
9927 main ()
9928 {
9929 return OTF_get_variation_glyphs ();
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 if ac_fn_c_try_link "$LINENO"; then :
9935 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9936 else
9937 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9938 fi
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 LIBS=$ac_check_lib_save_LIBS
9942 fi
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9944 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9945 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9946 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9947 else
9948 HAVE_OTF_GET_VARIATION_GLYPHS=no
9949 fi
9950
9951 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9952
9953 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9954
9955 fi
9956 fi
9957 fi
9958 fi
9959
9960 HAVE_M17N_FLT=no
9961 if test "${HAVE_LIBOTF}" = yes; then
9962 if test "${with_m17n_flt}" != "no"; then
9963
9964 succeeded=no
9965
9966 # Extract the first word of "pkg-config", so it can be a program name with args.
9967 set dummy pkg-config; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 case $PKG_CONFIG in
9974 [\\/]* | ?:[\\/]*)
9975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9976 ;;
9977 *)
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9980 do
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9985 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 break 2
9988 fi
9989 done
9990 done
9991 IFS=$as_save_IFS
9992
9993 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9994 ;;
9995 esac
9996 fi
9997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9998 if test -n "$PKG_CONFIG"; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10000 $as_echo "$PKG_CONFIG" >&6; }
10001 else
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10004 fi
10005
10006
10007
10008 if test "$PKG_CONFIG" = "no" ; then
10009 HAVE_M17N_FLT=no
10010 else
10011 PKG_CONFIG_MIN_VERSION=0.9.0
10012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10014 $as_echo_n "checking for m17n-flt... " >&6; }
10015
10016 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10018 $as_echo "yes" >&6; }
10019 succeeded=yes
10020
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10022 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10023 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10025 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10026
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10028 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10029 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10031 $as_echo "$M17N_FLT_LIBS" >&6; }
10032 else
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10035 M17N_FLT_CFLAGS=""
10036 M17N_FLT_LIBS=""
10037 ## If we have a custom action on failure, don't print errors, but
10038 ## do set a variable so people can do so.
10039 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10040
10041 fi
10042
10043
10044
10045 else
10046 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10047 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10048 fi
10049 fi
10050
10051 if test $succeeded = yes; then
10052 HAVE_M17N_FLT=yes
10053 else
10054 HAVE_M17N_FLT=no
10055 fi
10056
10057 if test "$HAVE_M17N_FLT" = "yes"; then
10058
10059 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10060
10061 fi
10062 fi
10063 fi
10064 else
10065 HAVE_XFT=no
10066 HAVE_FREETYPE=no
10067 HAVE_LIBOTF=no
10068 HAVE_M17N_FLT=no
10069 fi
10070
10071 ### End of font-backend (under X11) section.
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082 ### Use -lXpm if available, unless `--with-xpm=no'.
10083 HAVE_XPM=no
10084 LIBXPM=
10085 if test "${HAVE_X11}" = "yes"; then
10086 if test "${with_xpm}" != "no"; then
10087 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10088 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10090 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10091 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 ac_check_lib_save_LIBS=$LIBS
10095 LIBS="-lXpm -lX11 $LIBS"
10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10098
10099 /* Override any GCC internal prototype to avoid an error.
10100 Use char because int might match the return type of a GCC
10101 builtin and then its argument prototype would still apply. */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 char XpmReadFileToPixmap ();
10106 int
10107 main ()
10108 {
10109 return XpmReadFileToPixmap ();
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"; then :
10115 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10116 else
10117 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10118 fi
10119 rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 LIBS=$ac_check_lib_save_LIBS
10122 fi
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10124 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10125 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10126 HAVE_XPM=yes
10127 fi
10128
10129 fi
10130
10131
10132 if test "${HAVE_XPM}" = "yes"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10134 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10137 #include "X11/xpm.h"
10138 #ifndef XpmReturnAllocPixels
10139 no_return_alloc_pixels
10140 #endif
10141
10142 _ACEOF
10143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10144 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10145 HAVE_XPM=no
10146 else
10147 HAVE_XPM=yes
10148 fi
10149 rm -f conftest*
10150
10151
10152 if test "${HAVE_XPM}" = "yes"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10154 $as_echo "yes" >&6; }
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10158 fi
10159 fi
10160 fi
10161
10162 if test "${HAVE_XPM}" = "yes"; then
10163
10164 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10165
10166 LIBXPM=-lXpm
10167 fi
10168 fi
10169
10170
10171 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10172 HAVE_JPEG=no
10173 LIBJPEG=
10174 if test "${HAVE_X11}" = "yes"; then
10175 if test "${with_jpeg}" != "no"; then
10176 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10177 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10179 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10180 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 ac_check_lib_save_LIBS=$LIBS
10184 LIBS="-ljpeg $LIBS"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187
10188 /* Override any GCC internal prototype to avoid an error.
10189 Use char because int might match the return type of a GCC
10190 builtin and then its argument prototype would still apply. */
10191 #ifdef __cplusplus
10192 extern "C"
10193 #endif
10194 char jpeg_destroy_compress ();
10195 int
10196 main ()
10197 {
10198 return jpeg_destroy_compress ();
10199 ;
10200 return 0;
10201 }
10202 _ACEOF
10203 if ac_fn_c_try_link "$LINENO"; then :
10204 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10205 else
10206 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10207 fi
10208 rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210 LIBS=$ac_check_lib_save_LIBS
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10213 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10214 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10215 HAVE_JPEG=yes
10216 fi
10217
10218 fi
10219
10220
10221 fi
10222
10223 if test "${HAVE_JPEG}" = "yes"; then
10224 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10225
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 #include <jpeglib.h>
10229 version=JPEG_LIB_VERSION
10230
10231 _ACEOF
10232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10233 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10234 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10235
10236 else
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10238 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10239 HAVE_JPEG=no
10240 fi
10241 rm -f conftest*
10242
10243 fi
10244 if test "${HAVE_JPEG}" = "yes"; then
10245 LIBJPEG=-ljpeg
10246 fi
10247 fi
10248
10249
10250 ### Use -lpng if available, unless `--with-png=no'.
10251 HAVE_PNG=no
10252 LIBPNG=
10253 if test "${HAVE_X11}" = "yes"; then
10254 if test "${with_png}" != "no"; then
10255 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10256 # in /usr/include/libpng.
10257 for ac_header in png.h libpng/png.h
10258 do :
10259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10260 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10261 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10262 cat >>confdefs.h <<_ACEOF
10263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10264 _ACEOF
10265
10266 fi
10267
10268 done
10269
10270 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10272 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10273 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10274 $as_echo_n "(cached) " >&6
10275 else
10276 ac_check_lib_save_LIBS=$LIBS
10277 LIBS="-lpng -lz -lm $LIBS"
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280
10281 /* Override any GCC internal prototype to avoid an error.
10282 Use char because int might match the return type of a GCC
10283 builtin and then its argument prototype would still apply. */
10284 #ifdef __cplusplus
10285 extern "C"
10286 #endif
10287 char png_get_channels ();
10288 int
10289 main ()
10290 {
10291 return png_get_channels ();
10292 ;
10293 return 0;
10294 }
10295 _ACEOF
10296 if ac_fn_c_try_link "$LINENO"; then :
10297 ac_cv_lib_png_png_get_channels=yes
10298 else
10299 ac_cv_lib_png_png_get_channels=no
10300 fi
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext conftest.$ac_ext
10303 LIBS=$ac_check_lib_save_LIBS
10304 fi
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10306 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10307 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10308 HAVE_PNG=yes
10309 fi
10310
10311 fi
10312 fi
10313
10314 if test "${HAVE_PNG}" = "yes"; then
10315
10316 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10317
10318 LIBPNG="-lpng -lz -lm"
10319 fi
10320 fi
10321
10322
10323 ### Use -ltiff if available, unless `--with-tiff=no'.
10324 HAVE_TIFF=no
10325 LIBTIFF=
10326 if test "${HAVE_X11}" = "yes"; then
10327 if test "${with_tiff}" != "no"; then
10328 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10329 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10330 tifflibs="-lz -lm"
10331 # At least one tiff package requires the jpeg library.
10332 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10334 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10335 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 ac_check_lib_save_LIBS=$LIBS
10339 LIBS="-ltiff $tifflibs $LIBS"
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10342
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char TIFFGetVersion ();
10350 int
10351 main ()
10352 {
10353 return TIFFGetVersion ();
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 if ac_fn_c_try_link "$LINENO"; then :
10359 ac_cv_lib_tiff_TIFFGetVersion=yes
10360 else
10361 ac_cv_lib_tiff_TIFFGetVersion=no
10362 fi
10363 rm -f core conftest.err conftest.$ac_objext \
10364 conftest$ac_exeext conftest.$ac_ext
10365 LIBS=$ac_check_lib_save_LIBS
10366 fi
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10368 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10369 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10370 HAVE_TIFF=yes
10371 fi
10372
10373 fi
10374
10375
10376 fi
10377
10378 if test "${HAVE_TIFF}" = "yes"; then
10379
10380 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10381
10382 LIBTIFF=-ltiff
10383 fi
10384 fi
10385
10386
10387 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10388 HAVE_GIF=no
10389 LIBGIF=
10390 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10391 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10392 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10393 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10394 # Earlier versions can crash Emacs.
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10396 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10397 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-lgif $LIBS"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404
10405 /* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10408 #ifdef __cplusplus
10409 extern "C"
10410 #endif
10411 char EGifPutExtensionLast ();
10412 int
10413 main ()
10414 {
10415 return EGifPutExtensionLast ();
10416 ;
10417 return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421 ac_cv_lib_gif_EGifPutExtensionLast=yes
10422 else
10423 ac_cv_lib_gif_EGifPutExtensionLast=no
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
10427 LIBS=$ac_check_lib_save_LIBS
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10430 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10431 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10432 HAVE_GIF=yes
10433 else
10434 HAVE_GIF=maybe
10435 fi
10436
10437 fi
10438
10439
10440
10441 if test "$HAVE_GIF" = yes; then
10442 LIBGIF=-lgif
10443 elif test "$HAVE_GIF" = maybe; then
10444 # If gif_lib.h but no libgif, try libungif.
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10446 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10447 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 ac_check_lib_save_LIBS=$LIBS
10451 LIBS="-lungif $LIBS"
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10454
10455 /* Override any GCC internal prototype to avoid an error.
10456 Use char because int might match the return type of a GCC
10457 builtin and then its argument prototype would still apply. */
10458 #ifdef __cplusplus
10459 extern "C"
10460 #endif
10461 char EGifPutExtensionLast ();
10462 int
10463 main ()
10464 {
10465 return EGifPutExtensionLast ();
10466 ;
10467 return 0;
10468 }
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10471 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10472 else
10473 ac_cv_lib_ungif_EGifPutExtensionLast=no
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LIBS=$ac_check_lib_save_LIBS
10478 fi
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10480 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10481 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10482 HAVE_GIF=yes
10483 else
10484 HAVE_GIF=no
10485 fi
10486
10487 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10488 fi
10489
10490 if test "${HAVE_GIF}" = "yes"; then
10491
10492 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10493
10494 fi
10495 fi
10496
10497
10498 if test "${HAVE_X11}" = "yes"; then
10499 MISSING=""
10500 WITH_NO=""
10501 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10502 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10503 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10504 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10505 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10506 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10507 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10508 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10509 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10510 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10511
10512 if test "X${MISSING}" != X; then
10513 as_fn_error $? "The following required libraries were not found:
10514 $MISSING
10515 Maybe some development libraries/packages are missing?
10516 If you don't want to link with them give
10517 $WITH_NO
10518 as options to configure" "$LINENO" 5
10519 fi
10520 fi
10521
10522 ### Use -lgpm if available, unless `--with-gpm=no'.
10523 HAVE_GPM=no
10524 LIBGPM=
10525 MOUSE_SUPPORT=
10526 if test "${with_gpm}" != "no"; then
10527 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10528 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10530 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10531 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lgpm $LIBS"
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char Gpm_Open ();
10546 int
10547 main ()
10548 {
10549 return Gpm_Open ();
10550 ;
10551 return 0;
10552 }
10553 _ACEOF
10554 if ac_fn_c_try_link "$LINENO"; then :
10555 ac_cv_lib_gpm_Gpm_Open=yes
10556 else
10557 ac_cv_lib_gpm_Gpm_Open=no
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10562 fi
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10564 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10565 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10566 HAVE_GPM=yes
10567 fi
10568
10569 fi
10570
10571
10572
10573 if test "${HAVE_GPM}" = "yes"; then
10574
10575 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10576
10577 LIBGPM=-lgpm
10578 ## May be reset below.
10579 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10580 fi
10581 fi
10582
10583
10584 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10585 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10586
10587 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10588
10589 fi
10590
10591
10592
10593 C_SWITCH_X_SYSTEM=
10594 ### Use NeXTstep API to implement GUI.
10595 if test "${HAVE_NS}" = "yes"; then
10596
10597 $as_echo "#define HAVE_NS 1" >>confdefs.h
10598
10599 if test "${NS_IMPL_COCOA}" = "yes"; then
10600
10601 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10602
10603 GNU_OBJC_CFLAGS=
10604 fi
10605 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10606
10607 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10608
10609 # See also .m.o rule in Makefile.in */
10610 # FIXME: are all these flags really needed? Document here why. */
10611 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10612 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10613 fi
10614 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10615
10616 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10617
10618 fi
10619 # We also have mouse menus.
10620 HAVE_MENUS=yes
10621 OTHER_FILES=ns-app
10622 fi
10623
10624
10625 ### Use session management (-lSM -lICE) if available
10626 HAVE_X_SM=no
10627 LIBXSM=
10628 if test "${HAVE_X11}" = "yes"; then
10629 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10630 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10632 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10633 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 ac_check_lib_save_LIBS=$LIBS
10637 LIBS="-lSM -lICE $LIBS"
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640
10641 /* Override any GCC internal prototype to avoid an error.
10642 Use char because int might match the return type of a GCC
10643 builtin and then its argument prototype would still apply. */
10644 #ifdef __cplusplus
10645 extern "C"
10646 #endif
10647 char SmcOpenConnection ();
10648 int
10649 main ()
10650 {
10651 return SmcOpenConnection ();
10652 ;
10653 return 0;
10654 }
10655 _ACEOF
10656 if ac_fn_c_try_link "$LINENO"; then :
10657 ac_cv_lib_SM_SmcOpenConnection=yes
10658 else
10659 ac_cv_lib_SM_SmcOpenConnection=no
10660 fi
10661 rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663 LIBS=$ac_check_lib_save_LIBS
10664 fi
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10666 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10667 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10668 HAVE_X_SM=yes
10669 fi
10670
10671 fi
10672
10673
10674
10675 if test "${HAVE_X_SM}" = "yes"; then
10676
10677 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10678
10679 LIBXSM="-lSM -lICE"
10680 case "$LIBS" in
10681 *-lSM*) ;;
10682 *) LIBS="$LIBXSM $LIBS" ;;
10683 esac
10684 fi
10685 fi
10686
10687
10688 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10690 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10691 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696 #include <netdb.h>
10697 int
10698 main ()
10699 {
10700 return h_errno;
10701 ;
10702 return 0;
10703 }
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 emacs_cv_netdb_declares_h_errno=yes
10707 else
10708 emacs_cv_netdb_declares_h_errno=no
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 fi
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10714 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10715 if test $emacs_cv_netdb_declares_h_errno = yes; then
10716
10717 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10718
10719 fi
10720
10721 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10722 # for constant arguments. Useless!
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10724 $as_echo_n "checking for working alloca.h... " >&6; }
10725 if test "${ac_cv_working_alloca_h+set}" = set; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10730 #include <alloca.h>
10731 int
10732 main ()
10733 {
10734 char *p = (char *) alloca (2 * sizeof (int));
10735 if (p) return 0;
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 if ac_fn_c_try_link "$LINENO"; then :
10741 ac_cv_working_alloca_h=yes
10742 else
10743 ac_cv_working_alloca_h=no
10744 fi
10745 rm -f core conftest.err conftest.$ac_objext \
10746 conftest$ac_exeext conftest.$ac_ext
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10749 $as_echo "$ac_cv_working_alloca_h" >&6; }
10750 if test $ac_cv_working_alloca_h = yes; then
10751
10752 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10753
10754 fi
10755
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10757 $as_echo_n "checking for alloca... " >&6; }
10758 if test "${ac_cv_func_alloca_works+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10763 #ifdef __GNUC__
10764 # define alloca __builtin_alloca
10765 #else
10766 # ifdef _MSC_VER
10767 # include <malloc.h>
10768 # define alloca _alloca
10769 # else
10770 # ifdef HAVE_ALLOCA_H
10771 # include <alloca.h>
10772 # else
10773 # ifdef _AIX
10774 #pragma alloca
10775 # else
10776 # ifndef alloca /* predefined by HP cc +Olibcalls */
10777 char *alloca ();
10778 # endif
10779 # endif
10780 # endif
10781 # endif
10782 #endif
10783
10784 int
10785 main ()
10786 {
10787 char *p = (char *) alloca (1);
10788 if (p) return 0;
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 ac_cv_func_alloca_works=yes
10795 else
10796 ac_cv_func_alloca_works=no
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 fi
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10802 $as_echo "$ac_cv_func_alloca_works" >&6; }
10803
10804 if test $ac_cv_func_alloca_works = yes; then
10805
10806 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10807
10808 else
10809 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10810 # that cause trouble. Some versions do not even contain alloca or
10811 # contain a buggy version. If you still want to use their alloca,
10812 # use ar to extract alloca.o from them instead of compiling alloca.c.
10813
10814 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10815
10816 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10817
10818
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10820 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10821 if test "${ac_cv_os_cray+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826 #if defined CRAY && ! defined CRAY2
10827 webecray
10828 #else
10829 wenotbecray
10830 #endif
10831
10832 _ACEOF
10833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10834 $EGREP "webecray" >/dev/null 2>&1; then :
10835 ac_cv_os_cray=yes
10836 else
10837 ac_cv_os_cray=no
10838 fi
10839 rm -f conftest*
10840
10841 fi
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10843 $as_echo "$ac_cv_os_cray" >&6; }
10844 if test $ac_cv_os_cray = yes; then
10845 for ac_func in _getb67 GETB67 getb67; do
10846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10848 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10849
10850 cat >>confdefs.h <<_ACEOF
10851 #define CRAY_STACKSEG_END $ac_func
10852 _ACEOF
10853
10854 break
10855 fi
10856
10857 done
10858 fi
10859
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10861 $as_echo_n "checking stack direction for C alloca... " >&6; }
10862 if test "${ac_cv_c_stack_direction+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 if test "$cross_compiling" = yes; then :
10866 ac_cv_c_stack_direction=0
10867 else
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 $ac_includes_default
10871 int
10872 find_stack_direction ()
10873 {
10874 static char *addr = 0;
10875 auto char dummy;
10876 if (addr == 0)
10877 {
10878 addr = &dummy;
10879 return find_stack_direction ();
10880 }
10881 else
10882 return (&dummy > addr) ? 1 : -1;
10883 }
10884
10885 int
10886 main ()
10887 {
10888 return find_stack_direction () < 0;
10889 }
10890 _ACEOF
10891 if ac_fn_c_try_run "$LINENO"; then :
10892 ac_cv_c_stack_direction=1
10893 else
10894 ac_cv_c_stack_direction=-1
10895 fi
10896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10897 conftest.$ac_objext conftest.beam conftest.$ac_ext
10898 fi
10899
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10902 $as_echo "$ac_cv_c_stack_direction" >&6; }
10903 cat >>confdefs.h <<_ACEOF
10904 #define STACK_DIRECTION $ac_cv_c_stack_direction
10905 _ACEOF
10906
10907
10908 fi
10909
10910
10911 if test x"$ac_cv_func_alloca_works" != xyes; then
10912 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
10913 fi
10914
10915 # fmod, logb, and frexp are found in -lm on most systems.
10916 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10918 $as_echo_n "checking for sqrt in -lm... " >&6; }
10919 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 ac_check_lib_save_LIBS=$LIBS
10923 LIBS="-lm $LIBS"
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926
10927 /* Override any GCC internal prototype to avoid an error.
10928 Use char because int might match the return type of a GCC
10929 builtin and then its argument prototype would still apply. */
10930 #ifdef __cplusplus
10931 extern "C"
10932 #endif
10933 char sqrt ();
10934 int
10935 main ()
10936 {
10937 return sqrt ();
10938 ;
10939 return 0;
10940 }
10941 _ACEOF
10942 if ac_fn_c_try_link "$LINENO"; then :
10943 ac_cv_lib_m_sqrt=yes
10944 else
10945 ac_cv_lib_m_sqrt=no
10946 fi
10947 rm -f core conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
10949 LIBS=$ac_check_lib_save_LIBS
10950 fi
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10952 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10953 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10954 cat >>confdefs.h <<_ACEOF
10955 #define HAVE_LIBM 1
10956 _ACEOF
10957
10958 LIBS="-lm $LIBS"
10959
10960 fi
10961
10962
10963 # Check for mail-locking functions in a "mail" library. Probably this should
10964 # have the same check as for liblockfile below.
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10966 $as_echo_n "checking for maillock in -lmail... " >&6; }
10967 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 ac_check_lib_save_LIBS=$LIBS
10971 LIBS="-lmail $LIBS"
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10974
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char maillock ();
10982 int
10983 main ()
10984 {
10985 return maillock ();
10986 ;
10987 return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_link "$LINENO"; then :
10991 ac_cv_lib_mail_maillock=yes
10992 else
10993 ac_cv_lib_mail_maillock=no
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11000 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11001 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11002 have_mail=yes
11003 else
11004 have_mail=no
11005 fi
11006
11007 if test $have_mail = yes; then
11008 LIBS_MAIL=-lmail
11009 LIBS="$LIBS_MAIL $LIBS"
11010
11011 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11012
11013 else
11014 LIBS_MAIL=
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11017 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11018 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-llockfile $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11025
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char maillock ();
11033 int
11034 main ()
11035 {
11036 return maillock ();
11037 ;
11038 return 0;
11039 }
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 ac_cv_lib_lockfile_maillock=yes
11043 else
11044 ac_cv_lib_lockfile_maillock=no
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11051 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11052 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11053 have_lockfile=yes
11054 else
11055 have_lockfile=no
11056 fi
11057
11058 if test $have_lockfile = yes; then
11059 LIBS_MAIL=-llockfile
11060 LIBS="$LIBS_MAIL $LIBS"
11061
11062 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11063
11064 else
11065 # If we have the shared liblockfile, assume we must use it for mail
11066 # locking (e.g. Debian). If we couldn't link against liblockfile
11067 # (no liblockfile.a installed), ensure that we don't need to.
11068 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11069 set dummy liblockfile.so; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 if test -n "$liblockfile"; then
11076 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11077 else
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11080 for as_dir in $as_dummy
11081 do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11086 ac_cv_prog_liblockfile="yes"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090 done
11091 done
11092 IFS=$as_save_IFS
11093
11094 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11095 fi
11096 fi
11097 liblockfile=$ac_cv_prog_liblockfile
11098 if test -n "$liblockfile"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11100 $as_echo "$liblockfile" >&6; }
11101 else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 fi
11105
11106
11107 if test $ac_cv_prog_liblockfile = yes; then
11108 as_fn_error $? "Shared liblockfile found but can't link against it.
11109 This probably means that movemail could lose mail.
11110 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11111 fi
11112 fi
11113 for ac_func in touchlock
11114 do :
11115 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11116 if test "x$ac_cv_func_touchlock" = x""yes; then :
11117 cat >>confdefs.h <<_ACEOF
11118 #define HAVE_TOUCHLOCK 1
11119 _ACEOF
11120
11121 fi
11122 done
11123
11124 for ac_header in maillock.h
11125 do :
11126 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11127 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11128 cat >>confdefs.h <<_ACEOF
11129 #define HAVE_MAILLOCK_H 1
11130 _ACEOF
11131
11132 fi
11133
11134 done
11135
11136
11137
11138 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11139 ## interlock access to the mail spool. The alternative is a lock file named
11140 ## /usr/spool/mail/$USER.lock.
11141 mail_lock=no
11142 case "$opsys" in
11143 aix4-2) mail_lock="lockf" ;;
11144
11145 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11146
11147 ## On GNU/Linux systems, both methods are used by various mail programs.
11148 ## I assume most people are using newer mailers that have heard of flock.
11149 ## Change this if you need to.
11150 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11151 ## configure gets the right answers, and that means *NOT* using flock.
11152 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11153 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11154 ## Debian maintainer hasn't provided a clean fix for Emacs.
11155 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11156 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11157 ## correct logic. -- fx
11158 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11159 ## liblockfile is a Free Software replacement for libmail, used on
11160 ## Debian systems and elsewhere. -rfr.
11161 gnu-*)
11162 mail_lock="flock"
11163 if test $have_mail = yes || test $have_lockfile = yes; then
11164 test $ac_cv_header_maillock_h = yes && mail_lock=no
11165 fi
11166 ;;
11167 esac
11168
11169 BLESSMAIL_TARGET=
11170 case "$mail_lock" in
11171 flock)
11172 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11173 ;;
11174
11175 lockf)
11176 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11177 ;;
11178
11179 *) BLESSMAIL_TARGET="need-blessmail" ;;
11180 esac
11181
11182
11183
11184 for ac_func in gethostname getdomainname dup2 \
11185 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11186 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11187 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11188 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11189 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11190 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11191 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11192 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11193 cfmakeraw cfsetspeed isnan copysign __executable_start
11194 do :
11195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11196 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11197 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11198 cat >>confdefs.h <<_ACEOF
11199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11200 _ACEOF
11201
11202 fi
11203 done
11204
11205
11206 for ac_header in sys/un.h
11207 do :
11208 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11209 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11210 cat >>confdefs.h <<_ACEOF
11211 #define HAVE_SYS_UN_H 1
11212 _ACEOF
11213
11214 fi
11215
11216 done
11217
11218
11219
11220
11221
11222
11223
11224 for ac_func in $ac_func_list
11225 do :
11226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11229 cat >>confdefs.h <<_ACEOF
11230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11231 _ACEOF
11232
11233 fi
11234 done
11235
11236
11237
11238
11239
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11241 $as_echo_n "checking for working mktime... " >&6; }
11242 if test "${ac_cv_func_working_mktime+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 if test "$cross_compiling" = yes; then :
11246 ac_cv_func_working_mktime=no
11247 else
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250 /* Test program from Paul Eggert and Tony Leneis. */
11251 #ifdef TIME_WITH_SYS_TIME
11252 # include <sys/time.h>
11253 # include <time.h>
11254 #else
11255 # ifdef HAVE_SYS_TIME_H
11256 # include <sys/time.h>
11257 # else
11258 # include <time.h>
11259 # endif
11260 #endif
11261
11262 #include <limits.h>
11263 #include <stdlib.h>
11264
11265 #ifdef HAVE_UNISTD_H
11266 # include <unistd.h>
11267 #endif
11268
11269 #ifndef HAVE_ALARM
11270 # define alarm(X) /* empty */
11271 #endif
11272
11273 /* Work around redefinition to rpl_putenv by other config tests. */
11274 #undef putenv
11275
11276 static time_t time_t_max;
11277 static time_t time_t_min;
11278
11279 /* Values we'll use to set the TZ environment variable. */
11280 static const char *tz_strings[] = {
11281 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11282 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11283 };
11284 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11285
11286 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11287 Based on a problem report from Andreas Jaeger. */
11288 static int
11289 spring_forward_gap ()
11290 {
11291 /* glibc (up to about 1998-10-07) failed this test. */
11292 struct tm tm;
11293
11294 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11295 instead of "TZ=America/Vancouver" in order to detect the bug even
11296 on systems that don't support the Olson extension, or don't have the
11297 full zoneinfo tables installed. */
11298 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11299
11300 tm.tm_year = 98;
11301 tm.tm_mon = 3;
11302 tm.tm_mday = 5;
11303 tm.tm_hour = 2;
11304 tm.tm_min = 0;
11305 tm.tm_sec = 0;
11306 tm.tm_isdst = -1;
11307 return mktime (&tm) != (time_t) -1;
11308 }
11309
11310 static int
11311 mktime_test1 (time_t now)
11312 {
11313 struct tm *lt;
11314 return ! (lt = localtime (&now)) || mktime (lt) == now;
11315 }
11316
11317 static int
11318 mktime_test (time_t now)
11319 {
11320 return (mktime_test1 (now)
11321 && mktime_test1 ((time_t) (time_t_max - now))
11322 && mktime_test1 ((time_t) (time_t_min + now)));
11323 }
11324
11325 static int
11326 irix_6_4_bug ()
11327 {
11328 /* Based on code from Ariel Faigon. */
11329 struct tm tm;
11330 tm.tm_year = 96;
11331 tm.tm_mon = 3;
11332 tm.tm_mday = 0;
11333 tm.tm_hour = 0;
11334 tm.tm_min = 0;
11335 tm.tm_sec = 0;
11336 tm.tm_isdst = -1;
11337 mktime (&tm);
11338 return tm.tm_mon == 2 && tm.tm_mday == 31;
11339 }
11340
11341 static int
11342 bigtime_test (int j)
11343 {
11344 struct tm tm;
11345 time_t now;
11346 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11347 now = mktime (&tm);
11348 if (now != (time_t) -1)
11349 {
11350 struct tm *lt = localtime (&now);
11351 if (! (lt
11352 && lt->tm_year == tm.tm_year
11353 && lt->tm_mon == tm.tm_mon
11354 && lt->tm_mday == tm.tm_mday
11355 && lt->tm_hour == tm.tm_hour
11356 && lt->tm_min == tm.tm_min
11357 && lt->tm_sec == tm.tm_sec
11358 && lt->tm_yday == tm.tm_yday
11359 && lt->tm_wday == tm.tm_wday
11360 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11361 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11362 return 0;
11363 }
11364 return 1;
11365 }
11366
11367 static int
11368 year_2050_test ()
11369 {
11370 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11371 ignoring leap seconds. */
11372 unsigned long int answer = 2527315200UL;
11373
11374 struct tm tm;
11375 time_t t;
11376 tm.tm_year = 2050 - 1900;
11377 tm.tm_mon = 2 - 1;
11378 tm.tm_mday = 1;
11379 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11380 tm.tm_isdst = -1;
11381
11382 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11383 instead of "TZ=America/Vancouver" in order to detect the bug even
11384 on systems that don't support the Olson extension, or don't have the
11385 full zoneinfo tables installed. */
11386 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11387
11388 t = mktime (&tm);
11389
11390 /* Check that the result is either a failure, or close enough
11391 to the correct answer that we can assume the discrepancy is
11392 due to leap seconds. */
11393 return (t == (time_t) -1
11394 || (0 < t && answer - 120 <= t && t <= answer + 120));
11395 }
11396
11397 int
11398 main ()
11399 {
11400 time_t t, delta;
11401 int i, j;
11402
11403 /* This test makes some buggy mktime implementations loop.
11404 Give up after 60 seconds; a mktime slower than that
11405 isn't worth using anyway. */
11406 alarm (60);
11407
11408 for (;;)
11409 {
11410 t = (time_t_max << 1) + 1;
11411 if (t <= time_t_max)
11412 break;
11413 time_t_max = t;
11414 }
11415 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11416
11417 delta = time_t_max / 997; /* a suitable prime number */
11418 for (i = 0; i < N_STRINGS; i++)
11419 {
11420 if (tz_strings[i])
11421 putenv ((char*) tz_strings[i]);
11422
11423 for (t = 0; t <= time_t_max - delta; t += delta)
11424 if (! mktime_test (t))
11425 return 1;
11426 if (! (mktime_test ((time_t) 1)
11427 && mktime_test ((time_t) (60 * 60))
11428 && mktime_test ((time_t) (60 * 60 * 24))))
11429 return 1;
11430
11431 for (j = 1; ; j <<= 1)
11432 if (! bigtime_test (j))
11433 return 1;
11434 else if (INT_MAX / 2 < j)
11435 break;
11436 if (! bigtime_test (INT_MAX))
11437 return 1;
11438 }
11439 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11440 }
11441 _ACEOF
11442 if ac_fn_c_try_run "$LINENO"; then :
11443 ac_cv_func_working_mktime=yes
11444 else
11445 ac_cv_func_working_mktime=no
11446 fi
11447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11448 conftest.$ac_objext conftest.beam conftest.$ac_ext
11449 fi
11450
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11453 $as_echo "$ac_cv_func_working_mktime" >&6; }
11454 if test $ac_cv_func_working_mktime = no; then
11455 case " $LIBOBJS " in
11456 *" mktime.$ac_objext "* ) ;;
11457 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11458 ;;
11459 esac
11460
11461 fi
11462
11463 if test "$ac_cv_func_working_mktime" = no; then
11464
11465 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11466
11467 fi
11468
11469 ac_have_func=no # yes means we've found a way to get the load average.
11470
11471 # Make sure getloadavg.c is where it belongs, at configure-time.
11472 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11473 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11474
11475 ac_save_LIBS=$LIBS
11476
11477 # Check for getloadavg, but be sure not to touch the cache variable.
11478 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11479 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11480 exit 0
11481 else
11482 exit 1
11483 fi
11484 ) && ac_have_func=yes
11485
11486 # On HPUX9, an unprivileged user can get load averages through this function.
11487 for ac_func in pstat_getdynamic
11488 do :
11489 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11490 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11491 cat >>confdefs.h <<_ACEOF
11492 #define HAVE_PSTAT_GETDYNAMIC 1
11493 _ACEOF
11494
11495 fi
11496 done
11497
11498
11499 # Solaris has libkstat which does not require root.
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11501 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11502 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 ac_check_lib_save_LIBS=$LIBS
11506 LIBS="-lkstat $LIBS"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11509
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char kstat_open ();
11517 int
11518 main ()
11519 {
11520 return kstat_open ();
11521 ;
11522 return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_link "$LINENO"; then :
11526 ac_cv_lib_kstat_kstat_open=yes
11527 else
11528 ac_cv_lib_kstat_kstat_open=no
11529 fi
11530 rm -f core conftest.err conftest.$ac_objext \
11531 conftest$ac_exeext conftest.$ac_ext
11532 LIBS=$ac_check_lib_save_LIBS
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11535 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11536 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11537 cat >>confdefs.h <<_ACEOF
11538 #define HAVE_LIBKSTAT 1
11539 _ACEOF
11540
11541 LIBS="-lkstat $LIBS"
11542
11543 fi
11544
11545 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11546
11547 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11548 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11549 # to get the right answer into the cache.
11550 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11551 if test $ac_have_func = no; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11553 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11554 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 ac_check_lib_save_LIBS=$LIBS
11558 LIBS="-lelf $LIBS"
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char elf_begin ();
11569 int
11570 main ()
11571 {
11572 return elf_begin ();
11573 ;
11574 return 0;
11575 }
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 ac_cv_lib_elf_elf_begin=yes
11579 else
11580 ac_cv_lib_elf_elf_begin=no
11581 fi
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11587 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11588 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11589 LIBS="-lelf $LIBS"
11590 fi
11591
11592 fi
11593 if test $ac_have_func = no; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11595 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11596 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-lkvm $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char kvm_open ();
11611 int
11612 main ()
11613 {
11614 return kvm_open ();
11615 ;
11616 return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_kvm_kvm_open=yes
11621 else
11622 ac_cv_lib_kvm_kvm_open=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11629 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11630 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11631 LIBS="-lkvm $LIBS"
11632 fi
11633
11634 # Check for the 4.4BSD definition of getloadavg.
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11636 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11637 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-lutil $LIBS"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11644
11645 /* Override any GCC internal prototype to avoid an error.
11646 Use char because int might match the return type of a GCC
11647 builtin and then its argument prototype would still apply. */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char getloadavg ();
11652 int
11653 main ()
11654 {
11655 return getloadavg ();
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_lib_util_getloadavg=yes
11662 else
11663 ac_cv_lib_util_getloadavg=no
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11670 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11671 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11672 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11673 fi
11674
11675 fi
11676
11677 if test $ac_have_func = no; then
11678 # There is a commonly available library for RS/6000 AIX.
11679 # Since it is not a standard part of AIX, it might be installed locally.
11680 ac_getloadavg_LIBS=$LIBS
11681 LIBS="-L/usr/local/lib $LIBS"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11683 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11684 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 ac_check_lib_save_LIBS=$LIBS
11688 LIBS="-lgetloadavg $LIBS"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char getloadavg ();
11699 int
11700 main ()
11701 {
11702 return getloadavg ();
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 if ac_fn_c_try_link "$LINENO"; then :
11708 ac_cv_lib_getloadavg_getloadavg=yes
11709 else
11710 ac_cv_lib_getloadavg_getloadavg=no
11711 fi
11712 rm -f core conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11717 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11718 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11719 LIBS="-lgetloadavg $LIBS"
11720 else
11721 LIBS=$ac_getloadavg_LIBS
11722 fi
11723
11724 fi
11725
11726 # Make sure it is really in the library, if we think we found it,
11727 # otherwise set up the replacement function.
11728 for ac_func in getloadavg
11729 do :
11730 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11731 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11732 cat >>confdefs.h <<_ACEOF
11733 #define HAVE_GETLOADAVG 1
11734 _ACEOF
11735
11736 else
11737 case " $LIBOBJS " in
11738 *" getloadavg.$ac_objext "* ) ;;
11739 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11740 ;;
11741 esac
11742
11743
11744 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11745
11746 # Figure out what our getloadavg.c needs.
11747 ac_have_func=no
11748 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11749 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11750 ac_have_func=yes
11751
11752 $as_echo "#define DGUX 1" >>confdefs.h
11753
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11755 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11756 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11757 $as_echo_n "(cached) " >&6
11758 else
11759 ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-ldgc $LIBS"
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11763
11764 /* Override any GCC internal prototype to avoid an error.
11765 Use char because int might match the return type of a GCC
11766 builtin and then its argument prototype would still apply. */
11767 #ifdef __cplusplus
11768 extern "C"
11769 #endif
11770 char dg_sys_info ();
11771 int
11772 main ()
11773 {
11774 return dg_sys_info ();
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 if ac_fn_c_try_link "$LINENO"; then :
11780 ac_cv_lib_dgc_dg_sys_info=yes
11781 else
11782 ac_cv_lib_dgc_dg_sys_info=no
11783 fi
11784 rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext conftest.$ac_ext
11786 LIBS=$ac_check_lib_save_LIBS
11787 fi
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11789 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11790 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11791 cat >>confdefs.h <<_ACEOF
11792 #define HAVE_LIBDGC 1
11793 _ACEOF
11794
11795 LIBS="-ldgc $LIBS"
11796
11797 fi
11798
11799 fi
11800
11801
11802
11803 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11804 if test "x$ac_cv_header_locale_h" = x""yes; then :
11805
11806 fi
11807
11808
11809 for ac_func in setlocale
11810 do :
11811 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11812 if test "x$ac_cv_func_setlocale" = x""yes; then :
11813 cat >>confdefs.h <<_ACEOF
11814 #define HAVE_SETLOCALE 1
11815 _ACEOF
11816
11817 fi
11818 done
11819
11820
11821 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11822 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11823 # Irix 4.0.5F has the header but not the library.
11824 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11825 ac_have_func=yes
11826
11827 $as_echo "#define SVR4 1" >>confdefs.h
11828
11829 fi
11830
11831 if test $ac_have_func = no; then
11832 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11833 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11834 ac_have_func=yes
11835
11836 $as_echo "#define UMAX 1" >>confdefs.h
11837
11838
11839 $as_echo "#define UMAX4_3 1" >>confdefs.h
11840
11841 fi
11842
11843
11844 fi
11845
11846 if test $ac_have_func = no; then
11847 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11848 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11849 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11850
11851 fi
11852
11853
11854 fi
11855
11856 if test $ac_have_func = no; then
11857 for ac_header in mach/mach.h
11858 do :
11859 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11860 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11861 cat >>confdefs.h <<_ACEOF
11862 #define HAVE_MACH_MACH_H 1
11863 _ACEOF
11864
11865 fi
11866
11867 done
11868
11869 fi
11870
11871 for ac_header in nlist.h
11872 do :
11873 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11874 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_NLIST_H 1
11877 _ACEOF
11878 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11879 "
11880 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11881
11882 cat >>confdefs.h <<_ACEOF
11883 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11884 _ACEOF
11885
11886
11887 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11888
11889 fi
11890
11891
11892 fi
11893
11894 done
11895
11896 fi
11897 done
11898
11899
11900 # Some definitions of getloadavg require that the program be installed setgid.
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11902 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11903 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11909 #ifdef LDAV_PRIVILEGED
11910 Yowza Am I SETGID yet
11911 #endif
11912 _ACEOF
11913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11914 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11915 ac_cv_func_getloadavg_setgid=yes
11916 else
11917 ac_cv_func_getloadavg_setgid=no
11918 fi
11919 rm -f conftest*
11920
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11923 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11924 if test $ac_cv_func_getloadavg_setgid = yes; then
11925 NEED_SETGID=true
11926
11927 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11928
11929 else
11930 NEED_SETGID=false
11931 fi
11932
11933 if test $ac_cv_func_getloadavg_setgid = yes; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11935 $as_echo_n "checking group of /dev/kmem... " >&6; }
11936 if test "${ac_cv_group_kmem+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11940 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11941 # If we got an error (system does not support symlinks), try without -L.
11942 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11943 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11944 | sed -ne 's/[ ][ ]*/ /g;
11945 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11946 / /s/.* //;p;'`
11947
11948 fi
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11950 $as_echo "$ac_cv_group_kmem" >&6; }
11951 KMEM_GROUP=$ac_cv_group_kmem
11952 fi
11953 if test "x$ac_save_LIBS" = x; then
11954 GETLOADAVG_LIBS=$LIBS
11955 else
11956 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11957 fi
11958 LIBS=$ac_save_LIBS
11959
11960
11961
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11963 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11964 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 while :; do
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11970 #include <sys/types.h> /* for off_t */
11971 #include <stdio.h>
11972 int
11973 main ()
11974 {
11975 int (*fp) (FILE *, off_t, int) = fseeko;
11976 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11977 ;
11978 return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_sys_largefile_source=no; break
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11988 #define _LARGEFILE_SOURCE 1
11989 #include <sys/types.h> /* for off_t */
11990 #include <stdio.h>
11991 int
11992 main ()
11993 {
11994 int (*fp) (FILE *, off_t, int) = fseeko;
11995 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_sys_largefile_source=1; break
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 ac_cv_sys_largefile_source=unknown
12006 break
12007 done
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12010 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12011 case $ac_cv_sys_largefile_source in #(
12012 no | unknown) ;;
12013 *)
12014 cat >>confdefs.h <<_ACEOF
12015 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12016 _ACEOF
12017 ;;
12018 esac
12019 rm -rf conftest*
12020
12021 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12022 # in glibc 2.1.3, but that breaks too many other things.
12023 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12024 if test $ac_cv_sys_largefile_source != unknown; then
12025
12026 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12027
12028 fi
12029
12030
12031 # Configure getopt.
12032 # getopt.m4 serial 10
12033
12034 # The getopt module assume you want GNU getopt, with getopt_long etc,
12035 # rather than vanilla POSIX getopt. This means your your code should
12036 # always include <getopt.h> for the getopt prototypes.
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048 # Prerequisites of lib/getopt*.
12049
12050
12051
12052
12053 GETOPT_H=
12054 for ac_header in getopt.h
12055 do :
12056 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12057 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12058 cat >>confdefs.h <<_ACEOF
12059 #define HAVE_GETOPT_H 1
12060 _ACEOF
12061
12062 else
12063 GETOPT_H=getopt.h
12064 fi
12065
12066 done
12067
12068 if test -z "$GETOPT_H"; then
12069 for ac_func in getopt_long_only
12070 do :
12071 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12072 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12073 cat >>confdefs.h <<_ACEOF
12074 #define HAVE_GETOPT_LONG_ONLY 1
12075 _ACEOF
12076
12077 else
12078 GETOPT_H=getopt.h
12079 fi
12080 done
12081
12082 fi
12083
12084 if test -z "$GETOPT_H"; then
12085 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12086 "
12087 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12088 GETOPT_H=getopt.h
12089 fi
12090
12091 fi
12092
12093 if test -z "$GETOPT_H"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12095 $as_echo_n "checking for working GNU getopt function... " >&6; }
12096 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 if test "$cross_compiling" = yes; then :
12100 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12101 "
12102 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12103 gl_cv_func_gnu_getopt=no
12104 else
12105 gl_cv_func_gnu_getopt=yes
12106 fi
12107
12108 else
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 #include <getopt.h>
12112 int
12113 main ()
12114 {
12115
12116 char *myargv[3];
12117 myargv[0] = "conftest";
12118 myargv[1] = "-+";
12119 myargv[2] = 0;
12120 return getopt (2, myargv, "+a") != '?';
12121
12122 ;
12123 return 0;
12124 }
12125 _ACEOF
12126 if ac_fn_c_try_run "$LINENO"; then :
12127 gl_cv_func_gnu_getopt=yes
12128 else
12129 gl_cv_func_gnu_getopt=no
12130 fi
12131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12132 conftest.$ac_objext conftest.beam conftest.$ac_ext
12133 fi
12134
12135 fi
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12137 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12138 if test "$gl_cv_func_gnu_getopt" = "no"; then
12139 GETOPT_H=getopt.h
12140 fi
12141 fi
12142
12143
12144
12145 if test -n "$GETOPT_H"; then :
12146
12147
12148 GETOPT_H=getopt.h
12149
12150 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12151
12152
12153
12154 :
12155 GETOPTOBJS='getopt.o getopt1.o'
12156
12157 fi
12158
12159
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12162 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12163 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 # Use it with a single arg.
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 $ac_includes_default
12170 int
12171 main ()
12172 {
12173 getpgrp (0);
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_compile "$LINENO"; then :
12179 ac_cv_func_getpgrp_void=no
12180 else
12181 ac_cv_func_getpgrp_void=yes
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184
12185 fi
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12187 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12188 if test $ac_cv_func_getpgrp_void = yes; then
12189
12190 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12191
12192 fi
12193
12194
12195 for ac_func in strftime
12196 do :
12197 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12198 if test "x$ac_cv_func_strftime" = x""yes; then :
12199 cat >>confdefs.h <<_ACEOF
12200 #define HAVE_STRFTIME 1
12201 _ACEOF
12202
12203 else
12204 # strftime is in -lintl on SCO UNIX.
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12206 $as_echo_n "checking for strftime in -lintl... " >&6; }
12207 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-lintl $LIBS"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 char strftime ();
12222 int
12223 main ()
12224 {
12225 return strftime ();
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_intl_strftime=yes
12232 else
12233 ac_cv_lib_intl_strftime=no
12234 fi
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12240 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12241 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12242 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12243
12244 LIBS="-lintl $LIBS"
12245 fi
12246
12247 fi
12248 done
12249
12250
12251 # UNIX98 PTYs.
12252 for ac_func in grantpt
12253 do :
12254 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12255 if test "x$ac_cv_func_grantpt" = x""yes; then :
12256 cat >>confdefs.h <<_ACEOF
12257 #define HAVE_GRANTPT 1
12258 _ACEOF
12259
12260 fi
12261 done
12262
12263
12264 # PTY-related GNU extensions.
12265 for ac_func in getpt
12266 do :
12267 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12268 if test "x$ac_cv_func_getpt" = x""yes; then :
12269 cat >>confdefs.h <<_ACEOF
12270 #define HAVE_GETPT 1
12271 _ACEOF
12272
12273 fi
12274 done
12275
12276
12277 # Check this now, so that we will NOT find the above functions in ncurses.
12278 # That is because we have not set up to link ncurses in lib-src.
12279 # It's better to believe a function is not available
12280 # than to expect to find it in ncurses.
12281 # Also we need tputs and friends to be able to build at all.
12282 have_tputs_et_al=true
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12284 $as_echo_n "checking for library containing tputs... " >&6; }
12285 if test "${ac_cv_search_tputs+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 ac_func_search_save_LIBS=$LIBS
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295 #ifdef __cplusplus
12296 extern "C"
12297 #endif
12298 char tputs ();
12299 int
12300 main ()
12301 {
12302 return tputs ();
12303 ;
12304 return 0;
12305 }
12306 _ACEOF
12307 for ac_lib in '' ncurses terminfo termcap; do
12308 if test -z "$ac_lib"; then
12309 ac_res="none required"
12310 else
12311 ac_res=-l$ac_lib
12312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12313 fi
12314 if ac_fn_c_try_link "$LINENO"; then :
12315 ac_cv_search_tputs=$ac_res
12316 fi
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext
12319 if test "${ac_cv_search_tputs+set}" = set; then :
12320 break
12321 fi
12322 done
12323 if test "${ac_cv_search_tputs+set}" = set; then :
12324
12325 else
12326 ac_cv_search_tputs=no
12327 fi
12328 rm conftest.$ac_ext
12329 LIBS=$ac_func_search_save_LIBS
12330 fi
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12332 $as_echo "$ac_cv_search_tputs" >&6; }
12333 ac_res=$ac_cv_search_tputs
12334 if test "$ac_res" != no; then :
12335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12336
12337 else
12338 have_tputs_et_al=false
12339 fi
12340
12341 if test "$have_tputs_et_al" != true; then
12342 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
12343 Maybe some development libraries/packages are missing? Try installing
12344 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12345 fi
12346 # Must define this when any termcap library is found.
12347
12348 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12349
12350 ## FIXME This was the cpp logic, but I am not sure it is right.
12351 ## The above test has not necessarily found libncurses.
12352 HAVE_LIBNCURSES=yes
12353
12354 ## Use terminfo instead of termcap?
12355 ## Note only system files NOT using terminfo are:
12356 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12357 ## darwin|gnu without ncurses.
12358 TERMINFO=no
12359 LIBS_TERMCAP=
12360 case "$opsys" in
12361 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12362 ## hpux10-20: Use the system provided termcap(3) library.
12363 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12364 ## is necessary. Otherwise Emacs dumps core when run -nw.
12365 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
12366
12367 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12368 ## The ncurses library has been moved out of the System framework in
12369 ## Mac OS X 10.2. So if configure detects it, set the command-line
12370 ## option to use it.
12371 darwin|gnu*)
12372 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12373 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12374 TERMINFO=yes
12375 LIBS_TERMCAP="-lncurses"
12376 fi
12377 ;;
12378
12379 freebsd)
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12381 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12382 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387 #include <osreldate.h>
12388 int
12389 main ()
12390 {
12391 #if __FreeBSD_version < 400000
12392 fail;
12393 #endif
12394
12395 ;
12396 return 0;
12397 }
12398 _ACEOF
12399 if ac_fn_c_try_link "$LINENO"; then :
12400 emacs_cv_freebsd_terminfo=yes
12401 else
12402 emacs_cv_freebsd_terminfo=no
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406 fi
12407
12408
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12410 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12411
12412 if test $emacs_cv_freebsd_terminfo = yes; then
12413 TERMINFO=yes
12414 LIBS_TERMCAP="-lncurses"
12415 else
12416 LIBS_TERMCAP="-ltermcap"
12417 fi
12418 ;;
12419
12420 netbsd)
12421 if test $ac_cv_search_tputs = -lterminfo; then
12422 TERMINFO=yes
12423 LIBS_TERMCAP="-lterminfo"
12424 else
12425 LIBS_TERMCAP="-ltermcap"
12426 fi
12427 ;;
12428
12429 esac
12430
12431 case "$opsys" in
12432 ## hpux: Make sure we get select from libc rather than from libcurses
12433 ## because libcurses on HPUX 10.10 has a broken version of select.
12434 ## We used to use -lc -lcurses, but this may be cleaner.
12435 hpux*) LIBS_TERMCAP="-ltermcap" ;;
12436
12437 openbsd) LIBS_TERMCAP="-lncurses" ;;
12438
12439 ## Must use system termcap, if we use any termcap. It does special things.
12440 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
12441 esac
12442
12443 TERMCAP_OBJ=tparam.o
12444 if test $TERMINFO = yes; then
12445
12446 $as_echo "#define TERMINFO 1" >>confdefs.h
12447
12448
12449 ## Default used to be -ltermcap. Add a case above if need something else.
12450 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
12451
12452 TERMCAP_OBJ=terminfo.o
12453 fi
12454
12455
12456
12457
12458 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12459 resolv=no
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462 #include <netinet/in.h>
12463 #include <arpa/nameser.h>
12464 #include <resolv.h>
12465 int
12466 main ()
12467 {
12468 return res_init();
12469 ;
12470 return 0;
12471 }
12472 _ACEOF
12473 if ac_fn_c_try_link "$LINENO"; then :
12474 have_res_init=yes
12475 else
12476 have_res_init=no
12477 fi
12478 rm -f core conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
12480 if test "$have_res_init" = no; then
12481 OLIBS="$LIBS"
12482 LIBS="$LIBS -lresolv"
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12484 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <netinet/in.h>
12488 #include <arpa/nameser.h>
12489 #include <resolv.h>
12490 int
12491 main ()
12492 {
12493 return res_init();
12494 ;
12495 return 0;
12496 }
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 have_res_init=yes
12500 else
12501 have_res_init=no
12502 fi
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12506 $as_echo "$have_res_init" >&6; }
12507 if test "$have_res_init" = yes ; then
12508 resolv=yes
12509 fi
12510 LIBS="$OLIBS"
12511 fi
12512
12513 if test "$have_res_init" = yes; then
12514
12515 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12516
12517 fi
12518
12519 # Do we need the Hesiod library to provide the support routines?
12520 LIBHESIOD=
12521 if test "$with_hesiod" != no ; then
12522 # Don't set $LIBS here -- see comments above. FIXME which comments?
12523 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12524 if test "x$ac_cv_func_res_send" = x""yes; then :
12525
12526 else
12527 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12528 if test "x$ac_cv_func___res_send" = x""yes; then :
12529
12530 else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12532 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12533 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 ac_check_lib_save_LIBS=$LIBS
12537 LIBS="-lresolv $LIBS"
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540
12541 /* Override any GCC internal prototype to avoid an error.
12542 Use char because int might match the return type of a GCC
12543 builtin and then its argument prototype would still apply. */
12544 #ifdef __cplusplus
12545 extern "C"
12546 #endif
12547 char res_send ();
12548 int
12549 main ()
12550 {
12551 return res_send ();
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"; then :
12557 ac_cv_lib_resolv_res_send=yes
12558 else
12559 ac_cv_lib_resolv_res_send=no
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563 LIBS=$ac_check_lib_save_LIBS
12564 fi
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12566 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12567 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12568 resolv=yes
12569 else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12571 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12572 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-lresolv $LIBS"
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 char __res_send ();
12587 int
12588 main ()
12589 {
12590 return __res_send ();
12591 ;
12592 return 0;
12593 }
12594 _ACEOF
12595 if ac_fn_c_try_link "$LINENO"; then :
12596 ac_cv_lib_resolv___res_send=yes
12597 else
12598 ac_cv_lib_resolv___res_send=no
12599 fi
12600 rm -f core conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12602 LIBS=$ac_check_lib_save_LIBS
12603 fi
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12605 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12606 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12607 resolv=yes
12608 fi
12609
12610 fi
12611
12612 fi
12613
12614 fi
12615
12616 if test "$resolv" = yes ; then
12617 RESOLVLIB=-lresolv
12618 else
12619 RESOLVLIB=
12620 fi
12621 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12622 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12623
12624 else
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12626 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12627 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-lhesiod $RESOLVLIB $LIBS"
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12638 #ifdef __cplusplus
12639 extern "C"
12640 #endif
12641 char hes_getmailhost ();
12642 int
12643 main ()
12644 {
12645 return hes_getmailhost ();
12646 ;
12647 return 0;
12648 }
12649 _ACEOF
12650 if ac_fn_c_try_link "$LINENO"; then :
12651 ac_cv_lib_hesiod_hes_getmailhost=yes
12652 else
12653 ac_cv_lib_hesiod_hes_getmailhost=no
12654 fi
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12657 LIBS=$ac_check_lib_save_LIBS
12658 fi
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12660 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12661 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12662 hesiod=yes
12663 else
12664 :
12665 fi
12666
12667 fi
12668
12669
12670 if test x"$hesiod" = xyes; then
12671
12672 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12673
12674 LIBHESIOD=-lhesiod
12675 fi
12676 fi
12677
12678
12679 # Do we need libresolv (due to res_init or Hesiod)?
12680 if test "$resolv" = yes ; then
12681
12682 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12683
12684 LIBRESOLV=-lresolv
12685 else
12686 LIBRESOLV=
12687 fi
12688
12689
12690 # These tell us which Kerberos-related libraries to use.
12691 COM_ERRLIB=
12692 CRYPTOLIB=
12693 KRB5LIB=
12694 DESLIB=
12695 KRB4LIB=
12696
12697 if test "${with_kerberos}" != no; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12699 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12700 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 ac_check_lib_save_LIBS=$LIBS
12704 LIBS="-lcom_err $LIBS"
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char com_err ();
12715 int
12716 main ()
12717 {
12718 return com_err ();
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"; then :
12724 ac_cv_lib_com_err_com_err=yes
12725 else
12726 ac_cv_lib_com_err_com_err=no
12727 fi
12728 rm -f core conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12733 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12734 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12735 have_com_err=yes
12736 else
12737 have_com_err=no
12738 fi
12739
12740 if test $have_com_err = yes; then
12741 COM_ERRLIB=-lcom_err
12742 LIBS="$COM_ERRLIB $LIBS"
12743
12744 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12745
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12748 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12749 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lcrypto $LIBS"
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12756
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char mit_des_cbc_encrypt ();
12764 int
12765 main ()
12766 {
12767 return mit_des_cbc_encrypt ();
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"; then :
12773 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12774 else
12775 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12776 fi
12777 rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12782 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12783 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12784 have_crypto=yes
12785 else
12786 have_crypto=no
12787 fi
12788
12789 if test $have_crypto = yes; then
12790 CRYPTOLIB=-lcrypto
12791 LIBS="$CRYPTOLIB $LIBS"
12792
12793 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12794
12795 fi
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12797 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12798 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 ac_check_lib_save_LIBS=$LIBS
12802 LIBS="-lk5crypto $LIBS"
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805
12806 /* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12809 #ifdef __cplusplus
12810 extern "C"
12811 #endif
12812 char mit_des_cbc_encrypt ();
12813 int
12814 main ()
12815 {
12816 return mit_des_cbc_encrypt ();
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 if ac_fn_c_try_link "$LINENO"; then :
12822 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12823 else
12824 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12825 fi
12826 rm -f core conftest.err conftest.$ac_objext \
12827 conftest$ac_exeext conftest.$ac_ext
12828 LIBS=$ac_check_lib_save_LIBS
12829 fi
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12831 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12832 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12833 have_k5crypto=yes
12834 else
12835 have_k5crypto=no
12836 fi
12837
12838 if test $have_k5crypto = yes; then
12839 CRYPTOLIB=-lk5crypto
12840 LIBS="$CRYPTOLIB $LIBS"
12841
12842 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12843
12844 fi
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12846 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12847 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 ac_check_lib_save_LIBS=$LIBS
12851 LIBS="-lkrb5 $LIBS"
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char krb5_init_context ();
12862 int
12863 main ()
12864 {
12865 return krb5_init_context ();
12866 ;
12867 return 0;
12868 }
12869 _ACEOF
12870 if ac_fn_c_try_link "$LINENO"; then :
12871 ac_cv_lib_krb5_krb5_init_context=yes
12872 else
12873 ac_cv_lib_krb5_krb5_init_context=no
12874 fi
12875 rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 LIBS=$ac_check_lib_save_LIBS
12878 fi
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12880 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12881 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12882 have_krb5=yes
12883 else
12884 have_krb5=no
12885 fi
12886
12887 if test $have_krb5=yes; then
12888 KRB5LIB=-lkrb5
12889 LIBS="$KRB5LIB $LIBS"
12890
12891 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12892
12893 fi
12894 if test "${with_kerberos5}" = no; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12896 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12897 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 ac_check_lib_save_LIBS=$LIBS
12901 LIBS="-ldes425 $LIBS"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12904
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char des_cbc_encrypt ();
12912 int
12913 main ()
12914 {
12915 return des_cbc_encrypt ();
12916 ;
12917 return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 ac_cv_lib_des425_des_cbc_encrypt=yes
12922 else
12923 ac_cv_lib_des425_des_cbc_encrypt=no
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12930 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12931 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12932 have_des425=yes
12933 else
12934 have_des425=no
12935 fi
12936
12937 if test $have_des425 = yes; then
12938 DESLIB=-ldes425
12939 LIBS="$DESLIB $LIBS"
12940
12941 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12942
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12945 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12946 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 ac_check_lib_save_LIBS=$LIBS
12950 LIBS="-ldes $LIBS"
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12953
12954 /* Override any GCC internal prototype to avoid an error.
12955 Use char because int might match the return type of a GCC
12956 builtin and then its argument prototype would still apply. */
12957 #ifdef __cplusplus
12958 extern "C"
12959 #endif
12960 char des_cbc_encrypt ();
12961 int
12962 main ()
12963 {
12964 return des_cbc_encrypt ();
12965 ;
12966 return 0;
12967 }
12968 _ACEOF
12969 if ac_fn_c_try_link "$LINENO"; then :
12970 ac_cv_lib_des_des_cbc_encrypt=yes
12971 else
12972 ac_cv_lib_des_des_cbc_encrypt=no
12973 fi
12974 rm -f core conftest.err conftest.$ac_objext \
12975 conftest$ac_exeext conftest.$ac_ext
12976 LIBS=$ac_check_lib_save_LIBS
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12979 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12980 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12981 have_des=yes
12982 else
12983 have_des=no
12984 fi
12985
12986 if test $have_des = yes; then
12987 DESLIB=-ldes
12988 LIBS="$DESLIB $LIBS"
12989
12990 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12991
12992 fi
12993 fi
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12995 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12996 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 ac_check_lib_save_LIBS=$LIBS
13000 LIBS="-lkrb4 $LIBS"
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003
13004 /* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 char krb_get_cred ();
13011 int
13012 main ()
13013 {
13014 return krb_get_cred ();
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"; then :
13020 ac_cv_lib_krb4_krb_get_cred=yes
13021 else
13022 ac_cv_lib_krb4_krb_get_cred=no
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 LIBS=$ac_check_lib_save_LIBS
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13029 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13030 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13031 have_krb4=yes
13032 else
13033 have_krb4=no
13034 fi
13035
13036 if test $have_krb4 = yes; then
13037 KRB4LIB=-lkrb4
13038 LIBS="$KRB4LIB $LIBS"
13039
13040 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13041
13042 else
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13044 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13045 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 ac_check_lib_save_LIBS=$LIBS
13049 LIBS="-lkrb $LIBS"
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052
13053 /* Override any GCC internal prototype to avoid an error.
13054 Use char because int might match the return type of a GCC
13055 builtin and then its argument prototype would still apply. */
13056 #ifdef __cplusplus
13057 extern "C"
13058 #endif
13059 char krb_get_cred ();
13060 int
13061 main ()
13062 {
13063 return krb_get_cred ();
13064 ;
13065 return 0;
13066 }
13067 _ACEOF
13068 if ac_fn_c_try_link "$LINENO"; then :
13069 ac_cv_lib_krb_krb_get_cred=yes
13070 else
13071 ac_cv_lib_krb_krb_get_cred=no
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext \
13074 conftest$ac_exeext conftest.$ac_ext
13075 LIBS=$ac_check_lib_save_LIBS
13076 fi
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13078 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13079 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13080 have_krb=yes
13081 else
13082 have_krb=no
13083 fi
13084
13085 if test $have_krb = yes; then
13086 KRB4LIB=-lkrb
13087 LIBS="$KRB4LIB $LIBS"
13088
13089 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13090
13091 fi
13092 fi
13093 fi
13094
13095 if test "${with_kerberos5}" != no; then
13096 for ac_header in krb5.h
13097 do :
13098 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13099 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13100 cat >>confdefs.h <<_ACEOF
13101 #define HAVE_KRB5_H 1
13102 _ACEOF
13103 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13104 "
13105 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13106
13107 cat >>confdefs.h <<_ACEOF
13108 #define HAVE_KRB5_ERROR_TEXT 1
13109 _ACEOF
13110
13111
13112 fi
13113 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13114 "
13115 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13116
13117 cat >>confdefs.h <<_ACEOF
13118 #define HAVE_KRB5_ERROR_E_TEXT 1
13119 _ACEOF
13120
13121
13122 fi
13123
13124 fi
13125
13126 done
13127
13128 else
13129 for ac_header in des.h
13130 do :
13131 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13132 if test "x$ac_cv_header_des_h" = x""yes; then :
13133 cat >>confdefs.h <<_ACEOF
13134 #define HAVE_DES_H 1
13135 _ACEOF
13136
13137 else
13138 for ac_header in kerberosIV/des.h
13139 do :
13140 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13141 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13142 cat >>confdefs.h <<_ACEOF
13143 #define HAVE_KERBEROSIV_DES_H 1
13144 _ACEOF
13145
13146 else
13147 for ac_header in kerberos/des.h
13148 do :
13149 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13150 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13151 cat >>confdefs.h <<_ACEOF
13152 #define HAVE_KERBEROS_DES_H 1
13153 _ACEOF
13154
13155 fi
13156
13157 done
13158
13159 fi
13160
13161 done
13162
13163 fi
13164
13165 done
13166
13167 for ac_header in krb.h
13168 do :
13169 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13170 if test "x$ac_cv_header_krb_h" = x""yes; then :
13171 cat >>confdefs.h <<_ACEOF
13172 #define HAVE_KRB_H 1
13173 _ACEOF
13174
13175 else
13176 for ac_header in kerberosIV/krb.h
13177 do :
13178 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13179 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13180 cat >>confdefs.h <<_ACEOF
13181 #define HAVE_KERBEROSIV_KRB_H 1
13182 _ACEOF
13183
13184 else
13185 for ac_header in kerberos/krb.h
13186 do :
13187 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13188 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13189 cat >>confdefs.h <<_ACEOF
13190 #define HAVE_KERBEROS_KRB_H 1
13191 _ACEOF
13192
13193 fi
13194
13195 done
13196
13197 fi
13198
13199 done
13200
13201 fi
13202
13203 done
13204
13205 fi
13206 for ac_header in com_err.h
13207 do :
13208 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13209 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13210 cat >>confdefs.h <<_ACEOF
13211 #define HAVE_COM_ERR_H 1
13212 _ACEOF
13213
13214 fi
13215
13216 done
13217
13218 fi
13219
13220
13221
13222
13223
13224
13225
13226 # Solaris requires -lintl if you want strerror (which calls dgettext)
13227 # to return localized messages.
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13229 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13230 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13231 $as_echo_n "(cached) " >&6
13232 else
13233 ac_check_lib_save_LIBS=$LIBS
13234 LIBS="-lintl $LIBS"
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237
13238 /* Override any GCC internal prototype to avoid an error.
13239 Use char because int might match the return type of a GCC
13240 builtin and then its argument prototype would still apply. */
13241 #ifdef __cplusplus
13242 extern "C"
13243 #endif
13244 char dgettext ();
13245 int
13246 main ()
13247 {
13248 return dgettext ();
13249 ;
13250 return 0;
13251 }
13252 _ACEOF
13253 if ac_fn_c_try_link "$LINENO"; then :
13254 ac_cv_lib_intl_dgettext=yes
13255 else
13256 ac_cv_lib_intl_dgettext=no
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13260 LIBS=$ac_check_lib_save_LIBS
13261 fi
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13263 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13264 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13265 cat >>confdefs.h <<_ACEOF
13266 #define HAVE_LIBINTL 1
13267 _ACEOF
13268
13269 LIBS="-lintl $LIBS"
13270
13271 fi
13272
13273
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13275 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13276 if test "${emacs_cv_localtime_cache+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 if test x$ac_cv_func_tzset = xyes; then
13280 if test "$cross_compiling" = yes; then :
13281 # If we have tzset, assume the worst when cross-compiling.
13282 emacs_cv_localtime_cache=yes
13283 else
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286 #include <time.h>
13287 extern char **environ;
13288 unset_TZ ()
13289 {
13290 char **from, **to;
13291 for (to = from = environ; (*to = *from); from++)
13292 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13293 to++;
13294 }
13295 char TZ_GMT0[] = "TZ=GMT0";
13296 char TZ_PST8[] = "TZ=PST8";
13297 main()
13298 {
13299 time_t now = time ((time_t *) 0);
13300 int hour_GMT0, hour_unset;
13301 if (putenv (TZ_GMT0) != 0)
13302 exit (1);
13303 hour_GMT0 = localtime (&now)->tm_hour;
13304 unset_TZ ();
13305 hour_unset = localtime (&now)->tm_hour;
13306 if (putenv (TZ_PST8) != 0)
13307 exit (1);
13308 if (localtime (&now)->tm_hour == hour_GMT0)
13309 exit (1);
13310 unset_TZ ();
13311 if (localtime (&now)->tm_hour != hour_unset)
13312 exit (1);
13313 exit (0);
13314 }
13315 _ACEOF
13316 if ac_fn_c_try_run "$LINENO"; then :
13317 emacs_cv_localtime_cache=no
13318 else
13319 emacs_cv_localtime_cache=yes
13320 fi
13321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13322 conftest.$ac_objext conftest.beam conftest.$ac_ext
13323 fi
13324
13325 else
13326 # If we lack tzset, report that localtime does not cache TZ,
13327 # since we can't invalidate the cache if we don't have tzset.
13328 emacs_cv_localtime_cache=no
13329 fi
13330 fi
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13332 $as_echo "$emacs_cv_localtime_cache" >&6; }
13333 if test $emacs_cv_localtime_cache = yes; then
13334
13335 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13336
13337 fi
13338
13339 if test "x$HAVE_TIMEVAL" = xyes; then
13340 for ac_func in gettimeofday
13341 do :
13342 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13343 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13344 cat >>confdefs.h <<_ACEOF
13345 #define HAVE_GETTIMEOFDAY 1
13346 _ACEOF
13347
13348 fi
13349 done
13350
13351 if test $ac_cv_func_gettimeofday = yes; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13353 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13354 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13359
13360 #ifdef TIME_WITH_SYS_TIME
13361 #include <sys/time.h>
13362 #include <time.h>
13363 #else
13364 #ifdef HAVE_SYS_TIME_H
13365 #include <sys/time.h>
13366 #else
13367 #include <time.h>
13368 #endif
13369 #endif
13370 int
13371 main ()
13372 {
13373 struct timeval time;
13374 gettimeofday (&time, 0);
13375 ;
13376 return 0;
13377 }
13378 _ACEOF
13379 if ac_fn_c_try_compile "$LINENO"; then :
13380 emacs_cv_gettimeofday_two_arguments=yes
13381 else
13382 emacs_cv_gettimeofday_two_arguments=no
13383 fi
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13387 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13388 if test $emacs_cv_gettimeofday_two_arguments = no; then
13389
13390 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13391
13392 fi
13393 fi
13394 fi
13395
13396 ok_so_far=yes
13397 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13398 if test "x$ac_cv_func_socket" = x""yes; then :
13399
13400 else
13401 ok_so_far=no
13402 fi
13403
13404 if test $ok_so_far = yes; then
13405 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13406 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13407
13408 else
13409 ok_so_far=no
13410 fi
13411
13412
13413 fi
13414 if test $ok_so_far = yes; then
13415 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13416 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13417
13418 else
13419 ok_so_far=no
13420 fi
13421
13422
13423 fi
13424 if test $ok_so_far = yes; then
13425
13426 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13427
13428 fi
13429
13430 for ac_header in sys/ioctl.h
13431 do :
13432 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13433 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13434 cat >>confdefs.h <<_ACEOF
13435 #define HAVE_SYS_IOCTL_H 1
13436 _ACEOF
13437
13438 fi
13439
13440 done
13441
13442
13443 if test -f /usr/lpp/X11/bin/smt.exp; then
13444
13445 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13446
13447 fi
13448
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13450 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13451 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453 $as_echo "yes" >&6; }
13454
13455 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13456
13457 else
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13460 fi
13461
13462 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13463 if test "x$ac_cv_type_pid_t" = x""yes; then :
13464
13465 else
13466
13467 cat >>confdefs.h <<_ACEOF
13468 #define pid_t int
13469 _ACEOF
13470
13471 fi
13472
13473 for ac_header in vfork.h
13474 do :
13475 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13476 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13477 cat >>confdefs.h <<_ACEOF
13478 #define HAVE_VFORK_H 1
13479 _ACEOF
13480
13481 fi
13482
13483 done
13484
13485 for ac_func in fork vfork
13486 do :
13487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13488 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13489 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13490 cat >>confdefs.h <<_ACEOF
13491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13492 _ACEOF
13493
13494 fi
13495 done
13496
13497 if test "x$ac_cv_func_fork" = xyes; then
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13499 $as_echo_n "checking for working fork... " >&6; }
13500 if test "${ac_cv_func_fork_works+set}" = set; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 if test "$cross_compiling" = yes; then :
13504 ac_cv_func_fork_works=cross
13505 else
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 $ac_includes_default
13509 int
13510 main ()
13511 {
13512
13513 /* By Ruediger Kuhlmann. */
13514 return fork () < 0;
13515
13516 ;
13517 return 0;
13518 }
13519 _ACEOF
13520 if ac_fn_c_try_run "$LINENO"; then :
13521 ac_cv_func_fork_works=yes
13522 else
13523 ac_cv_func_fork_works=no
13524 fi
13525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13526 conftest.$ac_objext conftest.beam conftest.$ac_ext
13527 fi
13528
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13531 $as_echo "$ac_cv_func_fork_works" >&6; }
13532
13533 else
13534 ac_cv_func_fork_works=$ac_cv_func_fork
13535 fi
13536 if test "x$ac_cv_func_fork_works" = xcross; then
13537 case $host in
13538 *-*-amigaos* | *-*-msdosdjgpp*)
13539 # Override, as these systems have only a dummy fork() stub
13540 ac_cv_func_fork_works=no
13541 ;;
13542 *)
13543 ac_cv_func_fork_works=yes
13544 ;;
13545 esac
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13547 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13548 fi
13549 ac_cv_func_vfork_works=$ac_cv_func_vfork
13550 if test "x$ac_cv_func_vfork" = xyes; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13552 $as_echo_n "checking for working vfork... " >&6; }
13553 if test "${ac_cv_func_vfork_works+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 if test "$cross_compiling" = yes; then :
13557 ac_cv_func_vfork_works=cross
13558 else
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 /* Thanks to Paul Eggert for this test. */
13562 $ac_includes_default
13563 #include <sys/wait.h>
13564 #ifdef HAVE_VFORK_H
13565 # include <vfork.h>
13566 #endif
13567 /* On some sparc systems, changes by the child to local and incoming
13568 argument registers are propagated back to the parent. The compiler
13569 is told about this with #include <vfork.h>, but some compilers
13570 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13571 static variable whose address is put into a register that is
13572 clobbered by the vfork. */
13573 static void
13574 #ifdef __cplusplus
13575 sparc_address_test (int arg)
13576 # else
13577 sparc_address_test (arg) int arg;
13578 #endif
13579 {
13580 static pid_t child;
13581 if (!child) {
13582 child = vfork ();
13583 if (child < 0) {
13584 perror ("vfork");
13585 _exit(2);
13586 }
13587 if (!child) {
13588 arg = getpid();
13589 write(-1, "", 0);
13590 _exit (arg);
13591 }
13592 }
13593 }
13594
13595 int
13596 main ()
13597 {
13598 pid_t parent = getpid ();
13599 pid_t child;
13600
13601 sparc_address_test (0);
13602
13603 child = vfork ();
13604
13605 if (child == 0) {
13606 /* Here is another test for sparc vfork register problems. This
13607 test uses lots of local variables, at least as many local
13608 variables as main has allocated so far including compiler
13609 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13610 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13611 reuse the register of parent for one of the local variables,
13612 since it will think that parent can't possibly be used any more
13613 in this routine. Assigning to the local variable will thus
13614 munge parent in the parent process. */
13615 pid_t
13616 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13617 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13618 /* Convince the compiler that p..p7 are live; otherwise, it might
13619 use the same hardware register for all 8 local variables. */
13620 if (p != p1 || p != p2 || p != p3 || p != p4
13621 || p != p5 || p != p6 || p != p7)
13622 _exit(1);
13623
13624 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13625 from child file descriptors. If the child closes a descriptor
13626 before it execs or exits, this munges the parent's descriptor
13627 as well. Test for this by closing stdout in the child. */
13628 _exit(close(fileno(stdout)) != 0);
13629 } else {
13630 int status;
13631 struct stat st;
13632
13633 while (wait(&status) != child)
13634 ;
13635 return (
13636 /* Was there some problem with vforking? */
13637 child < 0
13638
13639 /* Did the child fail? (This shouldn't happen.) */
13640 || status
13641
13642 /* Did the vfork/compiler bug occur? */
13643 || parent != getpid()
13644
13645 /* Did the file descriptor bug occur? */
13646 || fstat(fileno(stdout), &st) != 0
13647 );
13648 }
13649 }
13650 _ACEOF
13651 if ac_fn_c_try_run "$LINENO"; then :
13652 ac_cv_func_vfork_works=yes
13653 else
13654 ac_cv_func_vfork_works=no
13655 fi
13656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13657 conftest.$ac_objext conftest.beam conftest.$ac_ext
13658 fi
13659
13660 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13662 $as_echo "$ac_cv_func_vfork_works" >&6; }
13663
13664 fi;
13665 if test "x$ac_cv_func_fork_works" = xcross; then
13666 ac_cv_func_vfork_works=$ac_cv_func_vfork
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13668 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13669 fi
13670
13671 if test "x$ac_cv_func_vfork_works" = xyes; then
13672
13673 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13674
13675 else
13676
13677 $as_echo "#define vfork fork" >>confdefs.h
13678
13679 fi
13680 if test "x$ac_cv_func_fork_works" = xyes; then
13681
13682 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13683
13684 fi
13685
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13688 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13689 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 #include <langinfo.h>
13695 int
13696 main ()
13697 {
13698 char* cs = nl_langinfo(CODESET);
13699 ;
13700 return 0;
13701 }
13702 _ACEOF
13703 if ac_fn_c_try_link "$LINENO"; then :
13704 emacs_cv_langinfo_codeset=yes
13705 else
13706 emacs_cv_langinfo_codeset=no
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13710
13711 fi
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13713 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13714 if test $emacs_cv_langinfo_codeset = yes; then
13715
13716 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13717
13718 fi
13719
13720 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13721 if test "x$ac_cv_type_size_t" = x""yes; then :
13722
13723 cat >>confdefs.h <<_ACEOF
13724 #define HAVE_SIZE_T 1
13725 _ACEOF
13726
13727
13728 fi
13729
13730
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13732 $as_echo_n "checking for mbstate_t... " >&6; }
13733 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13734 $as_echo_n "(cached) " >&6
13735 else
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 $ac_includes_default
13739 # include <wchar.h>
13740 int
13741 main ()
13742 {
13743 mbstate_t x; return sizeof x;
13744 ;
13745 return 0;
13746 }
13747 _ACEOF
13748 if ac_fn_c_try_compile "$LINENO"; then :
13749 ac_cv_type_mbstate_t=yes
13750 else
13751 ac_cv_type_mbstate_t=no
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13756 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13757 if test $ac_cv_type_mbstate_t = yes; then
13758
13759 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13760
13761 else
13762
13763 $as_echo "#define mbstate_t int" >>confdefs.h
13764
13765 fi
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13768 $as_echo_n "checking for C restrict keyword... " >&6; }
13769 if test "${emacs_cv_c_restrict+set}" = set; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774 void fred (int *restrict x);
13775 int
13776 main ()
13777 {
13778
13779 ;
13780 return 0;
13781 }
13782 _ACEOF
13783 if ac_fn_c_try_compile "$LINENO"; then :
13784 emacs_cv_c_restrict=yes
13785 else
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 void fred (int *__restrict x);
13789 int
13790 main ()
13791 {
13792
13793 ;
13794 return 0;
13795 }
13796 _ACEOF
13797 if ac_fn_c_try_compile "$LINENO"; then :
13798 emacs_cv_c_restrict=__restrict
13799 else
13800 emacs_cv_c_restrict=no
13801 fi
13802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13805 fi
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13807 $as_echo "$emacs_cv_c_restrict" >&6; }
13808 case "$emacs_cv_c_restrict" in
13809 yes) emacs_restrict=restrict;;
13810 no) emacs_restrict="";;
13811 *) emacs_restrict="$emacs_cv_c_restrict";;
13812 esac
13813 if test "$emacs_restrict" != __restrict; then
13814
13815 cat >>confdefs.h <<_ACEOF
13816 #define __restrict $emacs_restrict
13817 _ACEOF
13818
13819 fi
13820
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13822 $as_echo_n "checking for C restricted array declarations... " >&6; }
13823 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 void fred (int x[__restrict]);
13829 int
13830 main ()
13831 {
13832
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838 emacs_cv_c_restrict_arr=yes
13839 else
13840 emacs_cv_c_restrict_arr=no
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 fi
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13845 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13846 if test "$emacs_cv_c_restrict_arr" = yes; then
13847
13848 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13849
13850 fi
13851
13852
13853
13854 # Set up the CFLAGS for real compilation, so we can substitute it.
13855 CFLAGS="$REAL_CFLAGS"
13856 CPPFLAGS="$REAL_CPPFLAGS"
13857
13858 ## Hack to detect a buggy GCC version.
13859 if test "x$GCC" = xyes \
13860 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13861 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13862 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13863 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13864 fi
13865
13866 #### Find out which version of Emacs this is.
13867 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13868 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13869 if test x"${version}" = x; then
13870 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13871 fi
13872 if test x"${version}" != x"$PACKAGE_VERSION"; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13874 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13875 fi
13876
13877 ### Specify what sort of things we'll be editing into Makefile and config.h.
13878 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13879
13880
13881 ## Unused?
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13903 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13904 ## end of LIBX_BASE, but nothing ever set it.
13905
13906
13907
13908
13909 ## Used in lwlib/Makefile.in.
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922 cat >>confdefs.h <<_ACEOF
13923 #define EMACS_CONFIGURATION "${canonical}"
13924 _ACEOF
13925
13926
13927 cat >>confdefs.h <<_ACEOF
13928 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13929 _ACEOF
13930
13931
13932 cat >>confdefs.h <<_ACEOF
13933 #define config_machfile "${machfile}"
13934 _ACEOF
13935
13936
13937 cat >>confdefs.h <<_ACEOF
13938 #define config_opsysfile "${opsysfile}"
13939 _ACEOF
13940
13941
13942 XMENU_OBJ=
13943 XOBJ=
13944 FONT_OBJ=
13945 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13946
13947 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13948
13949 XMENU_OBJ=xmenu.o
13950 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13951 FONT_OBJ=xfont.o
13952 if test "$HAVE_XFT" = "yes"; then
13953 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
13954 elif test "$HAVE_FREETYPE" = "yes"; then
13955 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
13956 fi
13957
13958 fi
13959
13960
13961
13962
13963 WIDGET_OBJ=
13964 MOTIF_LIBW=
13965 if test "${USE_X_TOOLKIT}" != "none" ; then
13966 WIDGET_OBJ=widget.o
13967
13968 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13969
13970 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13971
13972 $as_echo "#define USE_LUCID 1" >>confdefs.h
13973
13974 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13975
13976 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13977
13978 MOTIF_LIBW=-lXm
13979 case "$opsys" in
13980 gnu-linux)
13981 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13982 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
13983 ;;
13984
13985 unixware)
13986 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
13987 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
13988 MOTIF_LIBW="MOTIF_LIBW -lXimp"
13989 ;;
13990
13991 aix4-2)
13992 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
13993 MOTIF_LIBW="$MOTIF_LIBW -li18n"
13994 ;;
13995 esac
13996 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
13997 fi
13998 fi
13999
14000
14001 TOOLKIT_LIBW=
14002 case "$USE_X_TOOLKIT" in
14003 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14004 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14005 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14006 esac
14007
14008
14009 if test "$USE_X_TOOLKIT" = "none"; then
14010 LIBXT_OTHER="\$(LIBXSM)"
14011 OLDXMENU_TARGET="really-oldXMenu"
14012 else
14013 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14014 OLDXMENU_TARGET="really-lwlib"
14015 fi
14016
14017
14018 ## The X Menu stuff is present in the X10 distribution, but missing
14019 ## from X11. If we have X10, just use the installed library;
14020 ## otherwise, use our own copy.
14021 if test "${HAVE_X11}" = "yes" ; then
14022
14023 $as_echo "#define HAVE_X11 1" >>confdefs.h
14024
14025
14026 if test "$USE_X_TOOLKIT" = "none"; then
14027 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14028 else
14029 OLDXMENU="\${lwlibdir}liblw.a"
14030 fi
14031 LIBXMENU="\$(OLDXMENU)"
14032 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14033 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14034 else
14035 ## For a syntactically valid Makefile; not actually used for anything.
14036 ## See comments in src/Makefile.in.
14037 OLDXMENU=nothing
14038 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14039 if test "${HAVE_X_WINDOWS}" = "yes"; then
14040 LIBXMENU="-lXMenu"
14041 else
14042 LIBXMENU=
14043 fi
14044 LIBX_OTHER=
14045 OLDXMENU_DEPS=
14046 fi
14047
14048 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14049 OLDXMENU_TARGET=
14050 OLDXMENU=nothing
14051 LIBXMENU=
14052 OLDXMENU_DEPS=
14053 fi
14054
14055
14056
14057
14058
14059
14060
14061 if test "${HAVE_MENUS}" = "yes" ; then
14062
14063 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14064
14065 fi
14066
14067 if test "${GNU_MALLOC}" = "yes" ; then
14068
14069 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14070
14071 fi
14072
14073 RALLOC_OBJ=
14074 if test "${REL_ALLOC}" = "yes" ; then
14075
14076 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14077
14078
14079 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14080 fi
14081
14082
14083 if test "$opsys" = "cygwin"; then
14084 CYGWIN_OBJ="sheap.o"
14085 ## Cygwin differs because of its unexec().
14086 PRE_ALLOC_OBJ=
14087 POST_ALLOC_OBJ=lastfile.o
14088 else
14089 CYGWIN_OBJ=
14090 PRE_ALLOC_OBJ=lastfile.o
14091 POST_ALLOC_OBJ=
14092 fi
14093
14094
14095
14096
14097
14098 case "$opsys" in
14099 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14100
14101 darwin)
14102 ## The -headerpad option tells ld (see man page) to leave room at the
14103 ## end of the header for adding load commands. Needed for dumping.
14104 ## 0x690 is the total size of 30 segment load commands (at 56
14105 ## each); under Cocoa 31 commands are required.
14106 if test "$HAVE_NS" = "yes"; then
14107 libs_nsgui="-framework AppKit"
14108 headerpad_extra=6C8
14109 else
14110 libs_nsgui=
14111 headerpad_extra=690
14112 fi
14113 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14114
14115 ## This is here because src/Makefile.in did some extra fiddling around
14116 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14117 ## #ifndef LD_SWITCH_SYSTEM
14118 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14119 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14120 ## not using gcc, darwin system not on an alpha (ie darwin, since
14121 ## darwin + alpha does not occur).
14122 ## Because this was done in src/Makefile.in, the resulting part of
14123 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14124 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14125 ## rather than LD_SWITCH_SYSTEM.
14126 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14127 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14128 ;;
14129
14130 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14131 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14132 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14133 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14134 ## had different values in configure (in ac_link) and src/Makefile.in.
14135 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14136 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14137
14138 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14139 esac
14140
14141 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14142 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14143 fi
14144
14145
14146
14147
14148 LINKER=
14149 ORDINARY_LINK=
14150 case "$opsys" in
14151 ## gnu: GNU needs its own crt0.
14152 aix4-2|cygwin|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14153
14154 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14155 ## library search parth, i.e. it won't search /usr/lib for libc and
14156 ## friends. Using -nostartfiles instead avoids this problem, and
14157 ## will also work on earlier NetBSD releases.
14158 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
14159
14160 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14161 ## MkLinux/LinuxPPC needs this.
14162 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14163 gnu-*)
14164 case "$machine" in
14165 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
14166 esac
14167 ;;
14168 esac
14169
14170
14171 if test "x$ORDINARY_LINK" = "xyes"; then
14172
14173 LINKER="\$(CC)"
14174
14175 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14176
14177
14178 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14179 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
14180 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14181
14182 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14183 ## places that are difficult to figure out at make time. Fortunately,
14184 ## these same versions allow you to pass arbitrary flags on to the
14185 ## linker, so there is no reason not to use it as a linker.
14186 ##
14187 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14188 ## searching for libraries in its internal directories, so we have to
14189 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14190 LINKER="\$(CC) -nostdlib"
14191 fi
14192
14193 test "x$LINKER" = "x" && LINKER=ld
14194 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14195 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
14196
14197
14198
14199
14200 ## FIXME? The logic here is not precisely the same as that above.
14201 ## There is no check here for a pre-defined LINKER.
14202 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14203 LIB_GCC=
14204 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14205
14206 case "$opsys" in
14207 freebsd|netbsd|openbsd) LIB_GCC= ;;
14208
14209 gnu-*)
14210 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14211 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14212 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14213 if test "$machine" = "arm"; then
14214 LIB_GCC="-lgcc_s"
14215 else
14216 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14217 ## immediately undefine it again and redefine it to empty.
14218 ## Was the C_SWITCH_X_SITE part really necessary?
14219 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14220 LIB_GCC=
14221 fi
14222 ;;
14223
14224 ## Ask GCC where to find libgcc.a.
14225 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14226 esac
14227 fi
14228
14229
14230 TOOLTIP_SUPPORT=
14231 WINDOW_SUPPORT=
14232 ## If we're using X11/GNUstep, define some consequences.
14233 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14234
14235 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14236
14237
14238 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14239
14240 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14241 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14242
14243 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14244 test "$HAVE_X_WINDOWS" = "yes" && \
14245 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14246
14247 fi
14248
14249
14250
14251
14252
14253
14254
14255 #### Report on what we decided to do.
14256 #### Report GTK as a toolkit, even if it doesn't use Xt.
14257 #### It makes printing result more understandable as using GTK sets
14258 #### toolkit_scroll_bars to yes by default.
14259 if test "${HAVE_GTK}" = "yes"; then
14260 USE_X_TOOLKIT=GTK
14261 fi
14262
14263 echo "
14264 Configured for \`${canonical}'.
14265
14266 Where should the build process find the source code? ${srcdir}
14267 What operating system and machine description files should Emacs use?
14268 \`${opsysfile}' and \`${machfile}'
14269 What compiler should emacs be built with? ${CC} ${CFLAGS}
14270 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14271 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14272 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14273 What window system should Emacs use? ${window_system}
14274 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14275
14276 if test -n "${x_includes}"; then
14277 echo " Where do we find X Windows header files? ${x_includes}"
14278 else
14279 echo " Where do we find X Windows header files? Standard dirs"
14280 fi
14281 if test -n "${x_libraries}"; then
14282 echo " Where do we find X Windows libraries? ${x_libraries}"
14283 else
14284 echo " Where do we find X Windows libraries? Standard dirs"
14285 fi
14286
14287 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14288 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14289 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14290 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14291 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14292 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14293 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14294 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14295 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14296 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14297 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14298
14299 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14300 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14301 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14302 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14303
14304 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14305 echo
14306
14307 if test $USE_XASSERTS = yes; then
14308 echo " Compiling with asserts turned on."
14309 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14310 fi
14311
14312 echo
14313
14314 if test "$HAVE_NS" = "yes"; then
14315 echo
14316 echo "You must run \"make install\" in order to test the built application.
14317 The installed application will go to nextstep/Emacs.app and can be
14318 run or moved from there."
14319 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14320 echo "The application will be fully self-contained."
14321 else
14322 echo "The lisp resources for the application will be installed under ${prefix}.
14323 You may need to run \"make install\" with sudo. The application will fail
14324 to run if these resources are not installed."
14325 fi
14326 echo
14327 fi
14328
14329 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14330 echo "D-Bus integration has been tested for GNU/Linux only."
14331 echo
14332 fi
14333
14334
14335 # Remove any trailing slashes in these variables.
14336 test "${prefix}" != NONE &&
14337 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14338 test "${exec_prefix}" != NONE &&
14339 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14340
14341 ac_config_files="$ac_config_files 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"
14342
14343 ac_config_commands="$ac_config_commands default"
14344
14345 cat >confcache <<\_ACEOF
14346 # This file is a shell script that caches the results of configure
14347 # tests run on this system so they can be shared between configure
14348 # scripts and configure runs, see configure's option --config-cache.
14349 # It is not useful on other systems. If it contains results you don't
14350 # want to keep, you may remove or edit it.
14351 #
14352 # config.status only pays attention to the cache file if you give it
14353 # the --recheck option to rerun configure.
14354 #
14355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14357 # following values.
14358
14359 _ACEOF
14360
14361 # The following way of writing the cache mishandles newlines in values,
14362 # but we know of no workaround that is simple, portable, and efficient.
14363 # So, we kill variables containing newlines.
14364 # Ultrix sh set writes to stderr and can't be redirected directly,
14365 # and sets the high bit in the cache file unless we assign to the vars.
14366 (
14367 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14368 eval ac_val=\$$ac_var
14369 case $ac_val in #(
14370 *${as_nl}*)
14371 case $ac_var in #(
14372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14374 esac
14375 case $ac_var in #(
14376 _ | IFS | as_nl) ;; #(
14377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14378 *) { eval $ac_var=; unset $ac_var;} ;;
14379 esac ;;
14380 esac
14381 done
14382
14383 (set) 2>&1 |
14384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14385 *${as_nl}ac_space=\ *)
14386 # `set' does not quote correctly, so add quotes: double-quote
14387 # substitution turns \\\\ into \\, and sed turns \\ into \.
14388 sed -n \
14389 "s/'/'\\\\''/g;
14390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14391 ;; #(
14392 *)
14393 # `set' quotes correctly as required by POSIX, so do not add quotes.
14394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14395 ;;
14396 esac |
14397 sort
14398 ) |
14399 sed '
14400 /^ac_cv_env_/b end
14401 t clear
14402 :clear
14403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14404 t end
14405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14406 :end' >>confcache
14407 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14408 if test -w "$cache_file"; then
14409 test "x$cache_file" != "x/dev/null" &&
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14411 $as_echo "$as_me: updating cache $cache_file" >&6;}
14412 cat confcache >$cache_file
14413 else
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14415 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14416 fi
14417 fi
14418 rm -f confcache
14419
14420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14421 # Let make expand exec_prefix.
14422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14423
14424 DEFS=-DHAVE_CONFIG_H
14425
14426 ac_libobjs=
14427 ac_ltlibobjs=
14428 U=
14429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14430 # 1. Remove the extension, and $U if already installed.
14431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14434 # will be set to the directory where LIBOBJS objects are built.
14435 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14436 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14437 done
14438 LIBOBJS=$ac_libobjs
14439
14440 LTLIBOBJS=$ac_ltlibobjs
14441
14442
14443
14444 : ${CONFIG_STATUS=./config.status}
14445 ac_write_fail=0
14446 ac_clean_files_save=$ac_clean_files
14447 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14449 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14450 as_write_fail=0
14451 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14452 #! $SHELL
14453 # Generated by $as_me.
14454 # Run this file to recreate the current configuration.
14455 # Compiler output produced by configure, useful for debugging
14456 # configure, is in config.log if it exists.
14457
14458 debug=false
14459 ac_cs_recheck=false
14460 ac_cs_silent=false
14461
14462 SHELL=\${CONFIG_SHELL-$SHELL}
14463 export SHELL
14464 _ASEOF
14465 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14466 ## -------------------- ##
14467 ## M4sh Initialization. ##
14468 ## -------------------- ##
14469
14470 # Be more Bourne compatible
14471 DUALCASE=1; export DUALCASE # for MKS sh
14472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14473 emulate sh
14474 NULLCMD=:
14475 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14476 # is contrary to our usage. Disable this feature.
14477 alias -g '${1+"$@"}'='"$@"'
14478 setopt NO_GLOB_SUBST
14479 else
14480 case `(set -o) 2>/dev/null` in #(
14481 *posix*) :
14482 set -o posix ;; #(
14483 *) :
14484 ;;
14485 esac
14486 fi
14487
14488
14489 as_nl='
14490 '
14491 export as_nl
14492 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14493 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14495 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14496 # Prefer a ksh shell builtin over an external printf program on Solaris,
14497 # but without wasting forks for bash or zsh.
14498 if test -z "$BASH_VERSION$ZSH_VERSION" \
14499 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14500 as_echo='print -r --'
14501 as_echo_n='print -rn --'
14502 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14503 as_echo='printf %s\n'
14504 as_echo_n='printf %s'
14505 else
14506 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14507 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14508 as_echo_n='/usr/ucb/echo -n'
14509 else
14510 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14511 as_echo_n_body='eval
14512 arg=$1;
14513 case $arg in #(
14514 *"$as_nl"*)
14515 expr "X$arg" : "X\\(.*\\)$as_nl";
14516 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14517 esac;
14518 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14519 '
14520 export as_echo_n_body
14521 as_echo_n='sh -c $as_echo_n_body as_echo'
14522 fi
14523 export as_echo_body
14524 as_echo='sh -c $as_echo_body as_echo'
14525 fi
14526
14527 # The user is always right.
14528 if test "${PATH_SEPARATOR+set}" != set; then
14529 PATH_SEPARATOR=:
14530 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14531 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14532 PATH_SEPARATOR=';'
14533 }
14534 fi
14535
14536
14537 # IFS
14538 # We need space, tab and new line, in precisely that order. Quoting is
14539 # there to prevent editors from complaining about space-tab.
14540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14541 # splitting by setting IFS to empty value.)
14542 IFS=" "" $as_nl"
14543
14544 # Find who we are. Look in the path if we contain no directory separator.
14545 case $0 in #((
14546 *[\\/]* ) as_myself=$0 ;;
14547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $PATH
14549 do
14550 IFS=$as_save_IFS
14551 test -z "$as_dir" && as_dir=.
14552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14553 done
14554 IFS=$as_save_IFS
14555
14556 ;;
14557 esac
14558 # We did not find ourselves, most probably we were run as `sh COMMAND'
14559 # in which case we are not to be found in the path.
14560 if test "x$as_myself" = x; then
14561 as_myself=$0
14562 fi
14563 if test ! -f "$as_myself"; then
14564 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14565 exit 1
14566 fi
14567
14568 # Unset variables that we do not need and which cause bugs (e.g. in
14569 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14570 # suppresses any "Segmentation fault" message there. '((' could
14571 # trigger a bug in pdksh 5.2.14.
14572 for as_var in BASH_ENV ENV MAIL MAILPATH
14573 do eval test x\${$as_var+set} = xset \
14574 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14575 done
14576 PS1='$ '
14577 PS2='> '
14578 PS4='+ '
14579
14580 # NLS nuisances.
14581 LC_ALL=C
14582 export LC_ALL
14583 LANGUAGE=C
14584 export LANGUAGE
14585
14586 # CDPATH.
14587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14588
14589
14590 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14591 # ----------------------------------------
14592 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14593 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14594 # script with STATUS, using 1 if that was 0.
14595 as_fn_error ()
14596 {
14597 as_status=$1; test $as_status -eq 0 && as_status=1
14598 if test "$4"; then
14599 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14600 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14601 fi
14602 $as_echo "$as_me: error: $2" >&2
14603 as_fn_exit $as_status
14604 } # as_fn_error
14605
14606
14607 # as_fn_set_status STATUS
14608 # -----------------------
14609 # Set $? to STATUS, without forking.
14610 as_fn_set_status ()
14611 {
14612 return $1
14613 } # as_fn_set_status
14614
14615 # as_fn_exit STATUS
14616 # -----------------
14617 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14618 as_fn_exit ()
14619 {
14620 set +e
14621 as_fn_set_status $1
14622 exit $1
14623 } # as_fn_exit
14624
14625 # as_fn_unset VAR
14626 # ---------------
14627 # Portably unset VAR.
14628 as_fn_unset ()
14629 {
14630 { eval $1=; unset $1;}
14631 }
14632 as_unset=as_fn_unset
14633 # as_fn_append VAR VALUE
14634 # ----------------------
14635 # Append the text in VALUE to the end of the definition contained in VAR. Take
14636 # advantage of any shell optimizations that allow amortized linear growth over
14637 # repeated appends, instead of the typical quadratic growth present in naive
14638 # implementations.
14639 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14640 eval 'as_fn_append ()
14641 {
14642 eval $1+=\$2
14643 }'
14644 else
14645 as_fn_append ()
14646 {
14647 eval $1=\$$1\$2
14648 }
14649 fi # as_fn_append
14650
14651 # as_fn_arith ARG...
14652 # ------------------
14653 # Perform arithmetic evaluation on the ARGs, and store the result in the
14654 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14655 # must be portable across $(()) and expr.
14656 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14657 eval 'as_fn_arith ()
14658 {
14659 as_val=$(( $* ))
14660 }'
14661 else
14662 as_fn_arith ()
14663 {
14664 as_val=`expr "$@" || test $? -eq 1`
14665 }
14666 fi # as_fn_arith
14667
14668
14669 if expr a : '\(a\)' >/dev/null 2>&1 &&
14670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14671 as_expr=expr
14672 else
14673 as_expr=false
14674 fi
14675
14676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14677 as_basename=basename
14678 else
14679 as_basename=false
14680 fi
14681
14682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14683 as_dirname=dirname
14684 else
14685 as_dirname=false
14686 fi
14687
14688 as_me=`$as_basename -- "$0" ||
14689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14690 X"$0" : 'X\(//\)$' \| \
14691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14692 $as_echo X/"$0" |
14693 sed '/^.*\/\([^/][^/]*\)\/*$/{
14694 s//\1/
14695 q
14696 }
14697 /^X\/\(\/\/\)$/{
14698 s//\1/
14699 q
14700 }
14701 /^X\/\(\/\).*/{
14702 s//\1/
14703 q
14704 }
14705 s/.*/./; q'`
14706
14707 # Avoid depending upon Character Ranges.
14708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14711 as_cr_digits='0123456789'
14712 as_cr_alnum=$as_cr_Letters$as_cr_digits
14713
14714 ECHO_C= ECHO_N= ECHO_T=
14715 case `echo -n x` in #(((((
14716 -n*)
14717 case `echo 'xy\c'` in
14718 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14719 xy) ECHO_C='\c';;
14720 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14721 ECHO_T=' ';;
14722 esac;;
14723 *)
14724 ECHO_N='-n';;
14725 esac
14726
14727 rm -f conf$$ conf$$.exe conf$$.file
14728 if test -d conf$$.dir; then
14729 rm -f conf$$.dir/conf$$.file
14730 else
14731 rm -f conf$$.dir
14732 mkdir conf$$.dir 2>/dev/null
14733 fi
14734 if (echo >conf$$.file) 2>/dev/null; then
14735 if ln -s conf$$.file conf$$ 2>/dev/null; then
14736 as_ln_s='ln -s'
14737 # ... but there are two gotchas:
14738 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14739 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14740 # In both cases, we have to default to `cp -p'.
14741 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14742 as_ln_s='cp -p'
14743 elif ln conf$$.file conf$$ 2>/dev/null; then
14744 as_ln_s=ln
14745 else
14746 as_ln_s='cp -p'
14747 fi
14748 else
14749 as_ln_s='cp -p'
14750 fi
14751 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14752 rmdir conf$$.dir 2>/dev/null
14753
14754
14755 # as_fn_mkdir_p
14756 # -------------
14757 # Create "$as_dir" as a directory, including parents if necessary.
14758 as_fn_mkdir_p ()
14759 {
14760
14761 case $as_dir in #(
14762 -*) as_dir=./$as_dir;;
14763 esac
14764 test -d "$as_dir" || eval $as_mkdir_p || {
14765 as_dirs=
14766 while :; do
14767 case $as_dir in #(
14768 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14769 *) as_qdir=$as_dir;;
14770 esac
14771 as_dirs="'$as_qdir' $as_dirs"
14772 as_dir=`$as_dirname -- "$as_dir" ||
14773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14774 X"$as_dir" : 'X\(//\)[^/]' \| \
14775 X"$as_dir" : 'X\(//\)$' \| \
14776 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14777 $as_echo X"$as_dir" |
14778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14779 s//\1/
14780 q
14781 }
14782 /^X\(\/\/\)[^/].*/{
14783 s//\1/
14784 q
14785 }
14786 /^X\(\/\/\)$/{
14787 s//\1/
14788 q
14789 }
14790 /^X\(\/\).*/{
14791 s//\1/
14792 q
14793 }
14794 s/.*/./; q'`
14795 test -d "$as_dir" && break
14796 done
14797 test -z "$as_dirs" || eval "mkdir $as_dirs"
14798 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14799
14800
14801 } # as_fn_mkdir_p
14802 if mkdir -p . 2>/dev/null; then
14803 as_mkdir_p='mkdir -p "$as_dir"'
14804 else
14805 test -d ./-p && rmdir ./-p
14806 as_mkdir_p=false
14807 fi
14808
14809 if test -x / >/dev/null 2>&1; then
14810 as_test_x='test -x'
14811 else
14812 if ls -dL / >/dev/null 2>&1; then
14813 as_ls_L_option=L
14814 else
14815 as_ls_L_option=
14816 fi
14817 as_test_x='
14818 eval sh -c '\''
14819 if test -d "$1"; then
14820 test -d "$1/.";
14821 else
14822 case $1 in #(
14823 -*)set "./$1";;
14824 esac;
14825 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14826 ???[sx]*):;;*)false;;esac;fi
14827 '\'' sh
14828 '
14829 fi
14830 as_executable_p=$as_test_x
14831
14832 # Sed expression to map a string onto a valid CPP name.
14833 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14834
14835 # Sed expression to map a string onto a valid variable name.
14836 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14837
14838
14839 exec 6>&1
14840 ## ----------------------------------- ##
14841 ## Main body of $CONFIG_STATUS script. ##
14842 ## ----------------------------------- ##
14843 _ASEOF
14844 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14845
14846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14847 # Save the log message, to keep $0 and so on meaningful, and to
14848 # report actual input values of CONFIG_FILES etc. instead of their
14849 # values after options handling.
14850 ac_log="
14851 This file was extended by emacs $as_me 24.0.50, which was
14852 generated by GNU Autoconf 2.66. Invocation command line was
14853
14854 CONFIG_FILES = $CONFIG_FILES
14855 CONFIG_HEADERS = $CONFIG_HEADERS
14856 CONFIG_LINKS = $CONFIG_LINKS
14857 CONFIG_COMMANDS = $CONFIG_COMMANDS
14858 $ $0 $@
14859
14860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14861 "
14862
14863 _ACEOF
14864
14865 case $ac_config_files in *"
14866 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14867 esac
14868
14869 case $ac_config_headers in *"
14870 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14871 esac
14872
14873
14874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875 # Files that config.status was made for.
14876 config_files="$ac_config_files"
14877 config_headers="$ac_config_headers"
14878 config_commands="$ac_config_commands"
14879
14880 _ACEOF
14881
14882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14883 ac_cs_usage="\
14884 \`$as_me' instantiates files and other configuration actions
14885 from templates according to the current configuration. Unless the files
14886 and actions are specified as TAGs, all are instantiated by default.
14887
14888 Usage: $0 [OPTION]... [TAG]...
14889
14890 -h, --help print this help, then exit
14891 -V, --version print version number and configuration settings, then exit
14892 --config print configuration, then exit
14893 -q, --quiet, --silent
14894 do not print progress messages
14895 -d, --debug don't remove temporary files
14896 --recheck update $as_me by reconfiguring in the same conditions
14897 --file=FILE[:TEMPLATE]
14898 instantiate the configuration file FILE
14899 --header=FILE[:TEMPLATE]
14900 instantiate the configuration header FILE
14901
14902 Configuration files:
14903 $config_files
14904
14905 Configuration headers:
14906 $config_headers
14907
14908 Configuration commands:
14909 $config_commands
14910
14911 Report bugs to the package provider."
14912
14913 _ACEOF
14914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14915 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14916 ac_cs_version="\\
14917 emacs config.status 24.0.50
14918 configured by $0, generated by GNU Autoconf 2.66,
14919 with options \\"\$ac_cs_config\\"
14920
14921 Copyright (C) 2010 Free Software Foundation, Inc.
14922 This config.status script is free software; the Free Software Foundation
14923 gives unlimited permission to copy, distribute and modify it."
14924
14925 ac_pwd='$ac_pwd'
14926 srcdir='$srcdir'
14927 INSTALL='$INSTALL'
14928 test -n "\$AWK" || AWK=awk
14929 _ACEOF
14930
14931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14932 # The default lists apply if the user does not specify any file.
14933 ac_need_defaults=:
14934 while test $# != 0
14935 do
14936 case $1 in
14937 --*=*)
14938 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14939 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14940 ac_shift=:
14941 ;;
14942 *)
14943 ac_option=$1
14944 ac_optarg=$2
14945 ac_shift=shift
14946 ;;
14947 esac
14948
14949 case $ac_option in
14950 # Handling of the options.
14951 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14952 ac_cs_recheck=: ;;
14953 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14954 $as_echo "$ac_cs_version"; exit ;;
14955 --config | --confi | --conf | --con | --co | --c )
14956 $as_echo "$ac_cs_config"; exit ;;
14957 --debug | --debu | --deb | --de | --d | -d )
14958 debug=: ;;
14959 --file | --fil | --fi | --f )
14960 $ac_shift
14961 case $ac_optarg in
14962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14963 esac
14964 as_fn_append CONFIG_FILES " '$ac_optarg'"
14965 ac_need_defaults=false;;
14966 --header | --heade | --head | --hea )
14967 $ac_shift
14968 case $ac_optarg in
14969 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14970 esac
14971 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14972 ac_need_defaults=false;;
14973 --he | --h)
14974 # Conflict between --help and --header
14975 as_fn_error $? "ambiguous option: \`$1'
14976 Try \`$0 --help' for more information.";;
14977 --help | --hel | -h )
14978 $as_echo "$ac_cs_usage"; exit ;;
14979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14980 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14981 ac_cs_silent=: ;;
14982
14983 # This is an error.
14984 -*) as_fn_error $? "unrecognized option: \`$1'
14985 Try \`$0 --help' for more information." ;;
14986
14987 *) as_fn_append ac_config_targets " $1"
14988 ac_need_defaults=false ;;
14989
14990 esac
14991 shift
14992 done
14993
14994 ac_configure_extra_args=
14995
14996 if $ac_cs_silent; then
14997 exec 6>/dev/null
14998 ac_configure_extra_args="$ac_configure_extra_args --silent"
14999 fi
15000
15001 _ACEOF
15002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15003 if \$ac_cs_recheck; then
15004 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15005 shift
15006 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15007 CONFIG_SHELL='$SHELL'
15008 export CONFIG_SHELL
15009 exec "\$@"
15010 fi
15011
15012 _ACEOF
15013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15014 exec 5>>config.log
15015 {
15016 echo
15017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15018 ## Running $as_me. ##
15019 _ASBOX
15020 $as_echo "$ac_log"
15021 } >&5
15022
15023 _ACEOF
15024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15025 #
15026 # INIT-COMMANDS
15027 #
15028 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15029
15030 _ACEOF
15031
15032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15033
15034 # Handling of arguments.
15035 for ac_config_target in $ac_config_targets
15036 do
15037 case $ac_config_target in
15038 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15040 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15041 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15042 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15043 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15044 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15045 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15046 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15047 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15048 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15049 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15050 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15051
15052 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15053 esac
15054 done
15055
15056
15057 # If the user did not use the arguments to specify the items to instantiate,
15058 # then the envvar interface is used. Set only those that are not.
15059 # We use the long form for the default assignment because of an extremely
15060 # bizarre bug on SunOS 4.1.3.
15061 if $ac_need_defaults; then
15062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15065 fi
15066
15067 # Have a temporary directory for convenience. Make it in the build tree
15068 # simply because there is no reason against having it here, and in addition,
15069 # creating and moving files from /tmp can sometimes cause problems.
15070 # Hook for its removal unless debugging.
15071 # Note that there is a small window in which the directory will not be cleaned:
15072 # after its creation but before its name has been assigned to `$tmp'.
15073 $debug ||
15074 {
15075 tmp=
15076 trap 'exit_status=$?
15077 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15078 ' 0
15079 trap 'as_fn_exit 1' 1 2 13 15
15080 }
15081 # Create a (secure) tmp directory for tmp files.
15082
15083 {
15084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15085 test -n "$tmp" && test -d "$tmp"
15086 } ||
15087 {
15088 tmp=./conf$$-$RANDOM
15089 (umask 077 && mkdir "$tmp")
15090 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15091
15092 # Set up the scripts for CONFIG_FILES section.
15093 # No need to generate them if there are no CONFIG_FILES.
15094 # This happens for instance with `./config.status config.h'.
15095 if test -n "$CONFIG_FILES"; then
15096
15097 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15098 ac_cs_awk_getline=:
15099 ac_cs_awk_pipe_init=
15100 ac_cs_awk_read_file='
15101 while ((getline aline < (F[key])) > 0)
15102 print(aline)
15103 close(F[key])'
15104 ac_cs_awk_pipe_fini=
15105 else
15106 ac_cs_awk_getline=false
15107 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15108 ac_cs_awk_read_file='
15109 print "|#_!!_#|"
15110 print "cat " F[key] " &&"
15111 '$ac_cs_awk_pipe_init
15112 # The final `:' finishes the AND list.
15113 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15114 fi
15115 ac_cr=`echo X | tr X '\015'`
15116 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15117 # But we know of no other shell where ac_cr would be empty at this
15118 # point, so we can use a bashism as a fallback.
15119 if test "x$ac_cr" = x; then
15120 eval ac_cr=\$\'\\r\'
15121 fi
15122 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15123 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15124 ac_cs_awk_cr='\\r'
15125 else
15126 ac_cs_awk_cr=$ac_cr
15127 fi
15128
15129 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15130 _ACEOF
15131
15132 # Create commands to substitute file output variables.
15133 {
15134 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15135 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15136 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15137 echo "_ACAWK" &&
15138 echo "_ACEOF"
15139 } >conf$$files.sh &&
15140 . ./conf$$files.sh ||
15141 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15142 rm -f conf$$files.sh
15143
15144 {
15145 echo "cat >conf$$subs.awk <<_ACEOF" &&
15146 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15147 echo "_ACEOF"
15148 } >conf$$subs.sh ||
15149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15150 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15151 ac_delim='%!_!# '
15152 for ac_last_try in false false false false false :; do
15153 . ./conf$$subs.sh ||
15154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15155
15156 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15157 if test $ac_delim_n = $ac_delim_num; then
15158 break
15159 elif $ac_last_try; then
15160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15161 else
15162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15163 fi
15164 done
15165 rm -f conf$$subs.sh
15166
15167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15169 _ACEOF
15170 sed -n '
15171 h
15172 s/^/S["/; s/!.*/"]=/
15173 p
15174 g
15175 s/^[^!]*!//
15176 :repl
15177 t repl
15178 s/'"$ac_delim"'$//
15179 t delim
15180 :nl
15181 h
15182 s/\(.\{148\}\)..*/\1/
15183 t more1
15184 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15185 p
15186 n
15187 b repl
15188 :more1
15189 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15190 p
15191 g
15192 s/.\{148\}//
15193 t nl
15194 :delim
15195 h
15196 s/\(.\{148\}\)..*/\1/
15197 t more2
15198 s/["\\]/\\&/g; s/^/"/; s/$/"/
15199 p
15200 b
15201 :more2
15202 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15203 p
15204 g
15205 s/.\{148\}//
15206 t delim
15207 ' <conf$$subs.awk | sed '
15208 /^[^""]/{
15209 N
15210 s/\n//
15211 }
15212 ' >>$CONFIG_STATUS || ac_write_fail=1
15213 rm -f conf$$subs.awk
15214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15215 _ACAWK
15216 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15217 for (key in S) S_is_set[key] = 1
15218 FS = "\a"
15219 \$ac_cs_awk_pipe_init
15220 }
15221 {
15222 line = $ 0
15223 nfields = split(line, field, "@")
15224 substed = 0
15225 len = length(field[1])
15226 for (i = 2; i < nfields; i++) {
15227 key = field[i]
15228 keylen = length(key)
15229 if (S_is_set[key]) {
15230 value = S[key]
15231 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15232 len += length(value) + length(field[++i])
15233 substed = 1
15234 } else
15235 len += 1 + keylen
15236 }
15237 if (nfields == 3 && !substed) {
15238 key = field[2]
15239 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15240 \$ac_cs_awk_read_file
15241 next
15242 }
15243 }
15244 print line
15245 }
15246 \$ac_cs_awk_pipe_fini
15247 _ACAWK
15248 _ACEOF
15249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15251 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15252 else
15253 cat
15254 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15255 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15256 _ACEOF
15257
15258 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15259 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15260 # trailing colons and then remove the whole line if VPATH becomes empty
15261 # (actually we leave an empty line to preserve line numbers).
15262 if test "x$srcdir" = x.; then
15263 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15264 h
15265 s///
15266 s/^/:/
15267 s/[ ]*$/:/
15268 s/:\$(srcdir):/:/g
15269 s/:\${srcdir}:/:/g
15270 s/:@srcdir@:/:/g
15271 s/^:*//
15272 s/:*$//
15273 x
15274 s/\(=[ ]*\).*/\1/
15275 G
15276 s/\n//
15277 s/^[^=]*=[ ]*$//
15278 }'
15279 fi
15280
15281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15282 fi # test -n "$CONFIG_FILES"
15283
15284 # Set up the scripts for CONFIG_HEADERS section.
15285 # No need to generate them if there are no CONFIG_HEADERS.
15286 # This happens for instance with `./config.status Makefile'.
15287 if test -n "$CONFIG_HEADERS"; then
15288 cat >"$tmp/defines.awk" <<\_ACAWK ||
15289 BEGIN {
15290 _ACEOF
15291
15292 # Transform confdefs.h into an awk script `defines.awk', embedded as
15293 # here-document in config.status, that substitutes the proper values into
15294 # config.h.in to produce config.h.
15295
15296 # Create a delimiter string that does not exist in confdefs.h, to ease
15297 # handling of long lines.
15298 ac_delim='%!_!# '
15299 for ac_last_try in false false :; do
15300 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15301 if test -z "$ac_t"; then
15302 break
15303 elif $ac_last_try; then
15304 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15305 else
15306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15307 fi
15308 done
15309
15310 # For the awk script, D is an array of macro values keyed by name,
15311 # likewise P contains macro parameters if any. Preserve backslash
15312 # newline sequences.
15313
15314 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15315 sed -n '
15316 s/.\{148\}/&'"$ac_delim"'/g
15317 t rset
15318 :rset
15319 s/^[ ]*#[ ]*define[ ][ ]*/ /
15320 t def
15321 d
15322 :def
15323 s/\\$//
15324 t bsnl
15325 s/["\\]/\\&/g
15326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15327 D["\1"]=" \3"/p
15328 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15329 d
15330 :bsnl
15331 s/["\\]/\\&/g
15332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15333 D["\1"]=" \3\\\\\\n"\\/p
15334 t cont
15335 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15336 t cont
15337 d
15338 :cont
15339 n
15340 s/.\{148\}/&'"$ac_delim"'/g
15341 t clear
15342 :clear
15343 s/\\$//
15344 t bsnlc
15345 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15346 d
15347 :bsnlc
15348 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15349 b cont
15350 ' <confdefs.h | sed '
15351 s/'"$ac_delim"'/"\\\
15352 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15353
15354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15355 for (key in D) D_is_set[key] = 1
15356 FS = "\a"
15357 }
15358 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15359 line = \$ 0
15360 split(line, arg, " ")
15361 if (arg[1] == "#") {
15362 defundef = arg[2]
15363 mac1 = arg[3]
15364 } else {
15365 defundef = substr(arg[1], 2)
15366 mac1 = arg[2]
15367 }
15368 split(mac1, mac2, "(") #)
15369 macro = mac2[1]
15370 prefix = substr(line, 1, index(line, defundef) - 1)
15371 if (D_is_set[macro]) {
15372 # Preserve the white space surrounding the "#".
15373 print prefix "define", macro P[macro] D[macro]
15374 next
15375 } else {
15376 # Replace #undef with comments. This is necessary, for example,
15377 # in the case of _POSIX_SOURCE, which is predefined and required
15378 # on some systems where configure will not decide to define it.
15379 if (defundef == "undef") {
15380 print "/*", prefix defundef, macro, "*/"
15381 next
15382 }
15383 }
15384 }
15385 { print }
15386 _ACAWK
15387 _ACEOF
15388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15389 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15390 fi # test -n "$CONFIG_HEADERS"
15391
15392
15393 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15394 shift
15395 for ac_tag
15396 do
15397 case $ac_tag in
15398 :[FHLC]) ac_mode=$ac_tag; continue;;
15399 esac
15400 case $ac_mode$ac_tag in
15401 :[FHL]*:*);;
15402 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15403 :[FH]-) ac_tag=-:-;;
15404 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15405 esac
15406 ac_save_IFS=$IFS
15407 IFS=:
15408 set x $ac_tag
15409 IFS=$ac_save_IFS
15410 shift
15411 ac_file=$1
15412 shift
15413
15414 case $ac_mode in
15415 :L) ac_source=$1;;
15416 :[FH])
15417 ac_file_inputs=
15418 for ac_f
15419 do
15420 case $ac_f in
15421 -) ac_f="$tmp/stdin";;
15422 *) # Look for the file first in the build tree, then in the source tree
15423 # (if the path is not absolute). The absolute path cannot be DOS-style,
15424 # because $ac_f cannot contain `:'.
15425 test -f "$ac_f" ||
15426 case $ac_f in
15427 [\\/$]*) false;;
15428 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15429 esac ||
15430 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15431 esac
15432 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15433 as_fn_append ac_file_inputs " '$ac_f'"
15434 done
15435
15436 # Let's still pretend it is `configure' which instantiates (i.e., don't
15437 # use $as_me), people would be surprised to read:
15438 # /* config.h. Generated by config.status. */
15439 configure_input='Generated from '`
15440 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15441 `' by configure.'
15442 if test x"$ac_file" != x-; then
15443 configure_input="$ac_file. $configure_input"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15445 $as_echo "$as_me: creating $ac_file" >&6;}
15446 fi
15447 # Neutralize special characters interpreted by sed in replacement strings.
15448 case $configure_input in #(
15449 *\&* | *\|* | *\\* )
15450 ac_sed_conf_input=`$as_echo "$configure_input" |
15451 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15452 *) ac_sed_conf_input=$configure_input;;
15453 esac
15454
15455 case $ac_tag in
15456 *:-:* | *:-) cat >"$tmp/stdin" \
15457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15458 esac
15459 ;;
15460 esac
15461
15462 ac_dir=`$as_dirname -- "$ac_file" ||
15463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15464 X"$ac_file" : 'X\(//\)[^/]' \| \
15465 X"$ac_file" : 'X\(//\)$' \| \
15466 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15467 $as_echo X"$ac_file" |
15468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15469 s//\1/
15470 q
15471 }
15472 /^X\(\/\/\)[^/].*/{
15473 s//\1/
15474 q
15475 }
15476 /^X\(\/\/\)$/{
15477 s//\1/
15478 q
15479 }
15480 /^X\(\/\).*/{
15481 s//\1/
15482 q
15483 }
15484 s/.*/./; q'`
15485 as_dir="$ac_dir"; as_fn_mkdir_p
15486 ac_builddir=.
15487
15488 case "$ac_dir" in
15489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15490 *)
15491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15492 # A ".." for each directory in $ac_dir_suffix.
15493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15494 case $ac_top_builddir_sub in
15495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15497 esac ;;
15498 esac
15499 ac_abs_top_builddir=$ac_pwd
15500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15501 # for backward compatibility:
15502 ac_top_builddir=$ac_top_build_prefix
15503
15504 case $srcdir in
15505 .) # We are building in place.
15506 ac_srcdir=.
15507 ac_top_srcdir=$ac_top_builddir_sub
15508 ac_abs_top_srcdir=$ac_pwd ;;
15509 [\\/]* | ?:[\\/]* ) # Absolute name.
15510 ac_srcdir=$srcdir$ac_dir_suffix;
15511 ac_top_srcdir=$srcdir
15512 ac_abs_top_srcdir=$srcdir ;;
15513 *) # Relative name.
15514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15515 ac_top_srcdir=$ac_top_build_prefix$srcdir
15516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15517 esac
15518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15519
15520
15521 case $ac_mode in
15522 :F)
15523 #
15524 # CONFIG_FILE
15525 #
15526
15527 case $INSTALL in
15528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15530 esac
15531 _ACEOF
15532
15533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15534 # If the template does not know about datarootdir, expand it.
15535 # FIXME: This hack should be removed a few years after 2.60.
15536 ac_datarootdir_hack=; ac_datarootdir_seen=
15537 ac_sed_dataroot='
15538 /datarootdir/ {
15539 p
15540 q
15541 }
15542 /@datadir@/p
15543 /@docdir@/p
15544 /@infodir@/p
15545 /@localedir@/p
15546 /@mandir@/p'
15547 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15548 *datarootdir*) ac_datarootdir_seen=yes;;
15549 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15551 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15552 _ACEOF
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554 ac_datarootdir_hack='
15555 s&@datadir@&$datadir&g
15556 s&@docdir@&$docdir&g
15557 s&@infodir@&$infodir&g
15558 s&@localedir@&$localedir&g
15559 s&@mandir@&$mandir&g
15560 s&\\\${datarootdir}&$datarootdir&g' ;;
15561 esac
15562 _ACEOF
15563
15564 # Neutralize VPATH when `$srcdir' = `.'.
15565 # Shell code in configure.ac might set extrasub.
15566 # FIXME: do we really want to maintain this feature?
15567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15568 ac_sed_extra="$ac_vpsub
15569 $extrasub
15570 _ACEOF
15571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15572 :t
15573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15574 s|@configure_input@|$ac_sed_conf_input|;t t
15575 s&@top_builddir@&$ac_top_builddir_sub&;t t
15576 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15577 s&@srcdir@&$ac_srcdir&;t t
15578 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15579 s&@top_srcdir@&$ac_top_srcdir&;t t
15580 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15581 s&@builddir@&$ac_builddir&;t t
15582 s&@abs_builddir@&$ac_abs_builddir&;t t
15583 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15584 s&@INSTALL@&$ac_INSTALL&;t t
15585 $ac_datarootdir_hack
15586 "
15587 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15588 if $ac_cs_awk_getline; then
15589 $AWK -f "$tmp/subs.awk"
15590 else
15591 $AWK -f "$tmp/subs.awk" | $SHELL
15592 fi >$tmp/out \
15593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15594
15595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15596 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15599 which seems to be undefined. Please make sure it is defined" >&5
15600 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15601 which seems to be undefined. Please make sure it is defined" >&2;}
15602
15603 rm -f "$tmp/stdin"
15604 case $ac_file in
15605 -) cat "$tmp/out" && rm -f "$tmp/out";;
15606 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15607 esac \
15608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15609 ;;
15610 :H)
15611 #
15612 # CONFIG_HEADER
15613 #
15614 if test x"$ac_file" != x-; then
15615 {
15616 $as_echo "/* $configure_input */" \
15617 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15618 } >"$tmp/config.h" \
15619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15620 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15622 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15623 else
15624 rm -f "$ac_file"
15625 mv "$tmp/config.h" "$ac_file" \
15626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15627 fi
15628 else
15629 $as_echo "/* $configure_input */" \
15630 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15631 || as_fn_error $? "could not create -" "$LINENO" 5
15632 fi
15633 ;;
15634
15635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15636 $as_echo "$as_me: executing $ac_file commands" >&6;}
15637 ;;
15638 esac
15639
15640
15641 case $ac_file$ac_mode in
15642 "default":C)
15643
15644 ### Make the necessary directories, if they don't exist.
15645 for dir in etc lisp ; do
15646 test -d ${dir} || mkdir ${dir}
15647 done
15648
15649 echo creating src/epaths.h
15650 ${MAKE-make} epaths-force
15651
15652 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
15653 echo creating src/.gdbinit
15654 echo source $srcdir/src/.gdbinit > src/.gdbinit
15655 fi
15656
15657 ;;
15658
15659 esac
15660 done # for ac_tag
15661
15662
15663 as_fn_exit 0
15664 _ACEOF
15665 ac_clean_files=$ac_clean_files_save
15666
15667 test $ac_write_fail = 0 ||
15668 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15669
15670
15671 # configure is writing to config.log, and then calls config.status.
15672 # config.status does its own redirection, appending to config.log.
15673 # Unfortunately, on DOS this fails, as config.log is still kept open
15674 # by configure, so config.status won't be able to write to it; its
15675 # output is simply discarded. So we exec the FD to /dev/null,
15676 # effectively closing config.log, so it can be properly (re)opened and
15677 # appended to by config.status. When coming back to configure, we
15678 # need to make the FD available again.
15679 if test "$no_create" != yes; then
15680 ac_cs_success=:
15681 ac_config_status_args=
15682 test "$silent" = yes &&
15683 ac_config_status_args="$ac_config_status_args --quiet"
15684 exec 5>/dev/null
15685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15686 exec 5>>config.log
15687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15688 # would make configure fail if this is the last instruction.
15689 $ac_cs_success || as_fn_exit 1
15690 fi
15691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15694 fi
15695
15696