Sanitize buffer display handling in dired.el and proced.el.
[emacs.git] / configure
blobc9fe163096d23d805bb039e363250c123a7751f9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
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.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_config_libobj_dir=src
603 ac_header_list=
604 ac_func_list=
605 ac_subst_vars='LTLIBOBJS
606 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 GETOPTOBJS
662 GETOPT_H
663 GETLOADAVG_LIBS
664 KMEM_GROUP
665 NEED_SETGID
666 LIBOBJS
667 BLESSMAIL_TARGET
668 LIBS_MAIL
669 liblockfile
670 ALLOCA
671 LIBXML2_LIBS
672 LIBXML2_CFLAGS
673 LIBXSM
674 LIBGPM
675 LIBGIF
676 LIBTIFF
677 LIBPNG
678 LIBJPEG
679 LIBXPM
680 FREETYPE_LIBS
681 FREETYPE_CFLAGS
682 M17N_FLT_LIBS
683 M17N_FLT_CFLAGS
684 LIBOTF_LIBS
685 LIBOTF_CFLAGS
686 XFT_LIBS
687 XFT_CFLAGS
688 FONTCONFIG_LIBS
689 FONTCONFIG_CFLAGS
690 LIBXMU
691 LIBXTR6
692 LIBGNUTLS_LIBS
693 LIBGNUTLS_CFLAGS
694 LIBSELINUX_LIBS
695 GCONF_LIBS
696 GCONF_CFLAGS
697 DBUS_OBJ
698 DBUS_LIBS
699 DBUS_CFLAGS
700 GTK_OBJ
701 GTK_LIBS
702 GTK_CFLAGS
703 IMAGEMAGICK_LIBS
704 IMAGEMAGICK_CFLAGS
705 RSVG_LIBS
706 RSVG_CFLAGS
707 VMLIMIT_OBJ
708 GMALLOC_OBJ
709 HAVE_XSERVER
710 LIB_STANDARD
711 NS_SUPPORT
712 NS_OBJ
713 TEMACS_LDFLAGS2
714 LD_SWITCH_X_SITE_AUX_RPATH
715 LD_SWITCH_X_SITE_AUX
716 XMKMF
717 DEPFLAGS
718 MKDEPDIR
719 SET_MAKE
720 CFLAGS_SOUND
721 ALSA_LIBS
722 ALSA_CFLAGS
723 PKG_CONFIG
724 LIBSOUND
725 START_FILES
726 LIB_MATH
727 CRT_DIR
728 LIBS_SYSTEM
729 C_SWITCH_SYSTEM
730 UNEXEC_OBJ
731 C_SWITCH_MACHINE
732 LD_SWITCH_SYSTEM
733 CANNOT_DUMP
734 HAVE_MAKEINFO
735 MAKEINFO
736 GZIP_PROG
737 INSTALL_INFO
738 RANLIB
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 C_WARNINGS_SWITCH
743 EGREP
744 GREP
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 PROFILING_CFLAGS
762 MAINT
763 GZIP_INFO
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files='deps_frag
803 ns_frag'
804 ac_user_opts='
805 enable_option_checking
806 with_pop
807 with_kerberos
808 with_kerberos5
809 with_hesiod
810 with_mmdf
811 with_mail_unlink
812 with_mailhost
813 with_sound
814 with_sync_input
815 with_x_toolkit
816 with_xpm
817 with_jpeg
818 with_tiff
819 with_gif
820 with_png
821 with_rsvg
822 with_xml2
823 with_imagemagick
824 with_xft
825 with_libotf
826 with_m17n_flt
827 with_toolkit_scroll_bars
828 with_xaw3d
829 with_xim
830 with_ns
831 with_gpm
832 with_dbus
833 with_gconf
834 with_selinux
835 with_gnutls
836 with_makeinfo
837 with_compress_info
838 with_pkg_config_prog
839 with_crt_dir
840 with_gameuser
841 with_gnustep_conf
842 enable_ns_self_contained
843 enable_asserts
844 enable_maintainer_mode
845 enable_locallisppath
846 enable_checking
847 enable_use_lisp_union_type
848 enable_profiling
849 enable_autodepend
850 enable_largefile
851 with_x
853 ac_precious_vars='build_alias
854 host_alias
855 target_alias
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
862 XMKMF'
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
913 ac_prev=
914 ac_dashdash=
915 for ac_option
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
920 ac_prev=
921 continue
924 case $ac_option in
925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 *=) ac_optarg= ;;
927 *) ac_optarg=yes ;;
928 esac
930 # Accept the important Cygnus configure options, so we can diagnose typos.
932 case $ac_dashdash$ac_option in
934 ac_dashdash=yes ;;
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 ac_prev=bindir ;;
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 bindir=$ac_optarg ;;
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
953 --config-cache | -C)
954 cache_file=config.cache ;;
956 -datadir | --datadir | --datadi | --datad)
957 ac_prev=datadir ;;
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=no ;;
984 -docdir | --docdir | --docdi | --doc | --do)
985 ac_prev=docdir ;;
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 docdir=$ac_optarg ;;
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 ac_prev=dvidir ;;
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 dvidir=$ac_optarg ;;
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1088 no_create=yes ;;
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1198 -with-* | --with-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 esac
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 esac
1271 done
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 esac
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1294 case $ac_val in
1295 */ )
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1298 esac
1299 # Be sure to have absolute directory names.
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1319 If a cross compiler is detected then cross compile mode will be used" >&2
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328 test "$silent" = yes && exec 6>/dev/null
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1357 /^X\(\/\/\)$/{
1358 s//\1/
1361 /^X\(\/\).*/{
1362 s//\1/
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1370 else
1371 ac_srcdir_defaulted=no
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1399 # Report the --help message.
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1412 Defaults for the options are specified in brackets.
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1436 For better control, use the options below.
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458 _ACEOF
1460 cat <<\_ACEOF
1462 Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467 X features:
1468 --x-includes=DIR X include files are in DIR
1469 --x-libraries=DIR X library files are in DIR
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1480 esac
1481 cat <<\_ACEOF
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --disable-ns-self-contained
1488 disable self contained build under NeXTstep
1489 --enable-asserts compile code with asserts enabled
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-locallisppath=PATH
1494 directories Emacs should search for lisp files
1495 specific to this site
1496 --enable-checking[=LIST]
1497 enable expensive run-time checks. With LIST, enable
1498 only specific categories of checks. Categories are:
1499 all,yes,no. Flags are: stringbytes, stringoverrun,
1500 stringfreelist, xmallocoverrun, conslist
1501 --enable-use-lisp-union-type
1502 use a union for the Lisp_Object data type. This is
1503 only useful for development for catching certain
1504 types of bugs.
1505 --enable-profiling build emacs with profiling support. This might not
1506 work on all platforms
1507 --enable-autodepend automatically generate dependencies to .h-files.
1508 Requires GNU Make and Gcc. Enabled if GNU Make and
1509 Gcc is found
1510 --disable-largefile omit support for large files
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --without-pop don't support POP mail retrieval with movemail
1516 --with-kerberos support Kerberos-authenticated POP
1517 --with-kerberos5 support Kerberos version 5 authenticated POP
1518 --with-hesiod support Hesiod to get the POP server host
1519 --with-mmdf support MMDF mailboxes
1520 --with-mail-unlink unlink, rather than empty, mail spool after reading
1521 --with-mailhost=HOSTNAME
1522 string giving default POP mail host
1523 --without-sound don't compile with sound support
1524 --without-sync-input process async input synchronously
1525 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1526 lucid or athena, motif, no)
1527 --without-xpm don't compile with XPM image support
1528 --without-jpeg don't compile with JPEG image support
1529 --without-tiff don't compile with TIFF image support
1530 --without-gif don't compile with GIF image support
1531 --without-png don't compile with PNG image support
1532 --without-rsvg don't compile with SVG image support
1533 --without-xml2 don't compile with XML parsing support
1534 --without-imagemagick don't compile with ImageMagick image support
1535 --without-xft don't use XFT for anti aliased fonts
1536 --without-libotf don't use libotf for OpenType font support
1537 --without-m17n-flt don't use m17n-flt for text shaping
1538 --without-toolkit-scroll-bars
1539 don't use Motif or Xaw3d scroll bars
1540 --without-xaw3d don't use Xaw3d
1541 --without-xim don't use X11 XIM
1542 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1543 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1544 console
1545 --without-dbus don't compile with D-Bus support
1546 --without-gconf don't compile with GConf support
1547 --without-selinux don't compile with SELinux support
1548 --without-gnutls don't use -lgnutls for SSL/TLS support
1549 --without-makeinfo don't require makeinfo for building manuals
1550 --without-compress-info don't compress the installed Info pages
1551 --with-pkg-config-prog=PATH
1552 path to pkg-config for finding GTK and librsvg
1553 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1554 /usr/lib, or /usr/lib64 on some platforms.
1555 --with-gameuser=USER user for shared game score files
1556 --with-gnustep-conf=PATH
1557 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1558 or /etc/GNUstep/GNUstep.conf
1559 --with-x use the X Window System
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CPP C preprocessor
1570 XMKMF Path to xmkmf, Makefile generator for X Window System
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1575 Report bugs to the package provider.
1576 _ACEOF
1577 ac_status=$?
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585 continue
1586 ac_builddir=.
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1604 case $srcdir in
1605 .) # We are building in place.
1606 ac_srcdir=.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1613 *) # Relative name.
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1628 else
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 fi || ac_status=$?
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1632 done
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637 cat <<\_ACEOF
1638 emacs configure 24.0.50
1639 generated by GNU Autoconf 2.68
1641 Copyright (C) 2010 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644 _ACEOF
1645 exit
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1683 ac_retval=1
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1688 } # ac_fn_c_try_compile
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_link ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 $as_test_x conftest$ac_exeext
1718 }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=1
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1734 } # ac_fn_c_try_link
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_cpp ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=1
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_c_try_cpp
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1777 # accordingly.
1778 ac_fn_c_check_header_mongrel ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 else
1791 # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1801 else
1802 ac_header_compiler=no
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1817 else
1818 ac_header_preproc=no
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1824 # So? What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826 yes:no: )
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 no:yes:* )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844 esac
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 eval "$3=\$ac_header_compiler"
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_header_mongrel
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1864 ac_fn_c_try_run ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=$ac_status
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1900 } # ac_fn_c_try_run
1902 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists and can be compiled using the include files in
1905 # INCLUDES, setting the cache variable VAR accordingly.
1906 ac_fn_c_check_header_compile ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 eval "$3=yes"
1921 else
1922 eval "$3=no"
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_header_compile
1933 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1934 # ---------------------------------------------
1935 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1936 # accordingly.
1937 ac_fn_c_check_decl ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 as_decl_name=`echo $2|sed 's/ *(.*//'`
1941 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1943 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946 else
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1951 main ()
1953 #ifndef $as_decl_name
1954 #ifdef __cplusplus
1955 (void) $as_decl_use;
1956 #else
1957 (void) $as_decl_name;
1958 #endif
1959 #endif
1962 return 0;
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 eval "$3=yes"
1967 else
1968 eval "$3=no"
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 } # ac_fn_c_check_decl
1979 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1980 # ----------------------------------------------
1981 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1982 ac_fn_c_check_header_preproc ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_c_try_cpp "$LINENO"; then :
1995 eval "$3=yes"
1996 else
1997 eval "$3=no"
1999 rm -f conftest.err conftest.i conftest.$ac_ext
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_header_preproc
2008 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2009 # ----------------------------------------------------
2010 # Tries to find if the field MEMBER exists in type AGGR, after including
2011 # INCLUDES, setting cache variable VAR accordingly.
2012 ac_fn_c_check_member ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2016 $as_echo_n "checking for $2.$3... " >&6; }
2017 if eval \${$4+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2024 main ()
2026 static $2 ac_aggr;
2027 if (ac_aggr.$3)
2028 return 0;
2030 return 0;
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$4=yes"
2035 else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2040 main ()
2042 static $2 ac_aggr;
2043 if (sizeof ac_aggr.$3)
2044 return 0;
2046 return 0;
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 eval "$4=yes"
2051 else
2052 eval "$4=no"
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 eval ac_res=\$$4
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } # ac_fn_c_check_member
2065 # ac_fn_c_check_func LINENO FUNC VAR
2066 # ----------------------------------
2067 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2068 ac_fn_c_check_func ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2080 #define $2 innocuous_$2
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char $2 (); below.
2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085 <limits.h> exists even on freestanding compilers. */
2087 #ifdef __STDC__
2088 # include <limits.h>
2089 #else
2090 # include <assert.h>
2091 #endif
2093 #undef $2
2095 /* Override any GCC internal prototype to avoid an error.
2096 Use char because int might match the return type of a GCC
2097 builtin and then its argument prototype would still apply. */
2098 #ifdef __cplusplus
2099 extern "C"
2100 #endif
2101 char $2 ();
2102 /* The GNU C library defines this for functions which it implements
2103 to always fail with ENOSYS. Some functions are actually named
2104 something starting with __ and the normal name is an alias. */
2105 #if defined __stub_$2 || defined __stub___$2
2106 choke me
2107 #endif
2110 main ()
2112 return $2 ();
2114 return 0;
2116 _ACEOF
2117 if ac_fn_c_try_link "$LINENO"; then :
2118 eval "$3=yes"
2119 else
2120 eval "$3=no"
2122 rm -f core conftest.err conftest.$ac_objext \
2123 conftest$ac_exeext conftest.$ac_ext
2125 eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_c_check_func
2132 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2133 # -------------------------------------------
2134 # Tests whether TYPE exists after having included INCLUDES, setting cache
2135 # variable VAR accordingly.
2136 ac_fn_c_check_type ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 eval "$3=no"
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2149 main ()
2151 if (sizeof ($2))
2152 return 0;
2154 return 0;
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main ()
2164 if (sizeof (($2)))
2165 return 0;
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2172 else
2173 eval "$3=yes"
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 } # ac_fn_c_check_type
2185 cat >config.log <<_ACEOF
2186 This file contains any messages produced by compilers while
2187 running configure, to aid debugging if configure makes a mistake.
2189 It was created by emacs $as_me 24.0.50, which was
2190 generated by GNU Autoconf 2.68. Invocation command line was
2192 $ $0 $@
2194 _ACEOF
2195 exec 5>>config.log
2197 cat <<_ASUNAME
2198 ## --------- ##
2199 ## Platform. ##
2200 ## --------- ##
2202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2219 _ASUNAME
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 $as_echo "PATH: $as_dir"
2227 done
2228 IFS=$as_save_IFS
2230 } >&5
2232 cat >&5 <<_ACEOF
2235 ## ----------- ##
2236 ## Core tests. ##
2237 ## ----------- ##
2239 _ACEOF
2242 # Keep a trace of the command line.
2243 # Strip out --no-create and --no-recursion so they do not pile up.
2244 # Strip out --silent because we don't want to record it for future runs.
2245 # Also quote any args containing shell meta-characters.
2246 # Make two passes to allow for proper duplicate-argument suppression.
2247 ac_configure_args=
2248 ac_configure_args0=
2249 ac_configure_args1=
2250 ac_must_keep_next=false
2251 for ac_pass in 1 2
2253 for ac_arg
2255 case $ac_arg in
2256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258 | -silent | --silent | --silen | --sile | --sil)
2259 continue ;;
2260 *\'*)
2261 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 esac
2263 case $ac_pass in
2264 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2266 as_fn_append ac_configure_args1 " '$ac_arg'"
2267 if test $ac_must_keep_next = true; then
2268 ac_must_keep_next=false # Got value, back to normal.
2269 else
2270 case $ac_arg in
2271 *=* | --config-cache | -C | -disable-* | --disable-* \
2272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274 | -with-* | --with-* | -without-* | --without-* | --x)
2275 case "$ac_configure_args0 " in
2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277 esac
2279 -* ) ac_must_keep_next=true ;;
2280 esac
2282 as_fn_append ac_configure_args " '$ac_arg'"
2284 esac
2285 done
2286 done
2287 { ac_configure_args0=; unset ac_configure_args0;}
2288 { ac_configure_args1=; unset ac_configure_args1;}
2290 # When interrupted or exit'd, cleanup temporary files, and complete
2291 # config.log. We remove comments because anyway the quotes in there
2292 # would cause problems or look ugly.
2293 # WARNING: Use '\'' to represent an apostrophe within the trap.
2294 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295 trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2298 echo
2300 $as_echo "## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##"
2303 echo
2304 # The following way of writing the cache mishandles newlines in values,
2306 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307 eval ac_val=\$$ac_var
2308 case $ac_val in #(
2309 *${as_nl}*)
2310 case $ac_var in #(
2311 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2313 esac
2314 case $ac_var in #(
2315 _ | IFS | as_nl) ;; #(
2316 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2318 esac ;;
2319 esac
2320 done
2321 (set) 2>&1 |
2322 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space=\ *)
2324 sed -n \
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2327 ;; #(
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331 esac |
2332 sort
2334 echo
2336 $as_echo "## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##"
2339 echo
2340 for ac_var in $ac_subst_vars
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 $as_echo "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2350 if test -n "$ac_subst_files"; then
2351 $as_echo "## ------------------- ##
2352 ## File substitutions. ##
2353 ## ------------------- ##"
2354 echo
2355 for ac_var in $ac_subst_files
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2366 if test -s confdefs.h; then
2367 $as_echo "## ----------- ##
2368 ## confdefs.h. ##
2369 ## ----------- ##"
2370 echo
2371 cat confdefs.h
2372 echo
2374 test "$ac_signal" != 0 &&
2375 $as_echo "$as_me: caught signal $ac_signal"
2376 $as_echo "$as_me: exit $exit_status"
2377 } >&5
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2380 exit $exit_status
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384 done
2385 ac_signal=0
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2390 $as_echo "/* confdefs.h */" > confdefs.h
2392 # Predefined preprocessor variables.
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_NAME "$PACKAGE_NAME"
2396 _ACEOF
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2400 _ACEOF
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2404 _ACEOF
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_STRING "$PACKAGE_STRING"
2408 _ACEOF
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2412 _ACEOF
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_URL "$PACKAGE_URL"
2416 _ACEOF
2419 # Let the site file select an alternate cache file if it wants to.
2420 # Prefer an explicitly selected file to automatically selected ones.
2421 ac_site_file1=NONE
2422 ac_site_file2=NONE
2423 if test -n "$CONFIG_SITE"; then
2424 # We do not want a PATH search for config.site.
2425 case $CONFIG_SITE in #((
2426 -*) ac_site_file1=./$CONFIG_SITE;;
2427 */*) ac_site_file1=$CONFIG_SITE;;
2428 *) ac_site_file1=./$CONFIG_SITE;;
2429 esac
2430 elif test "x$prefix" != xNONE; then
2431 ac_site_file1=$prefix/share/config.site
2432 ac_site_file2=$prefix/etc/config.site
2433 else
2434 ac_site_file1=$ac_default_prefix/share/config.site
2435 ac_site_file2=$ac_default_prefix/etc/config.site
2437 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2439 test "x$ac_site_file" = xNONE && continue
2440 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2442 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2443 sed 's/^/| /' "$ac_site_file" >&5
2444 . "$ac_site_file" \
2445 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 as_fn_error $? "failed to load site script $ac_site_file
2448 See \`config.log' for more details" "$LINENO" 5; }
2450 done
2452 if test -r "$cache_file"; then
2453 # Some versions of bash will fail to source /dev/null (special files
2454 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2455 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2457 $as_echo "$as_me: loading cache $cache_file" >&6;}
2458 case $cache_file in
2459 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2460 *) . "./$cache_file";;
2461 esac
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2465 $as_echo "$as_me: creating cache $cache_file" >&6;}
2466 >$cache_file
2469 as_fn_append ac_header_list " stdlib.h"
2470 as_fn_append ac_header_list " unistd.h"
2471 as_fn_append ac_header_list " sys/param.h"
2472 as_fn_append ac_header_list " sys/time.h"
2473 as_fn_append ac_func_list " alarm"
2474 # Check that the precious variables saved in the cache have kept the same
2475 # value.
2476 ac_cache_corrupted=false
2477 for ac_var in $ac_precious_vars; do
2478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2479 eval ac_new_set=\$ac_env_${ac_var}_set
2480 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2481 eval ac_new_val=\$ac_env_${ac_var}_value
2482 case $ac_old_set,$ac_new_set in
2483 set,)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2485 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2486 ac_cache_corrupted=: ;;
2487 ,set)
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2489 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2490 ac_cache_corrupted=: ;;
2491 ,);;
2493 if test "x$ac_old_val" != "x$ac_new_val"; then
2494 # differences in whitespace do not lead to failure.
2495 ac_old_val_w=`echo x $ac_old_val`
2496 ac_new_val_w=`echo x $ac_new_val`
2497 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2499 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2500 ac_cache_corrupted=:
2501 else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2503 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2504 eval $ac_var=\$ac_old_val
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2507 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2509 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2510 fi;;
2511 esac
2512 # Pass precious variables to config.status.
2513 if test "$ac_new_set" = set; then
2514 case $ac_new_val in
2515 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2516 *) ac_arg=$ac_var=$ac_new_val ;;
2517 esac
2518 case " $ac_configure_args " in
2519 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2520 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2521 esac
2523 done
2524 if $ac_cache_corrupted; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2528 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2529 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2531 ## -------------------- ##
2532 ## Main body of script. ##
2533 ## -------------------- ##
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2546 test "$program_prefix" != NONE &&
2547 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2548 # Use a double $ so make ignores it.
2549 test "$program_suffix" != NONE &&
2550 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2551 # Double any \ or $.
2552 # By default was `s,x,x', remove it if useless.
2553 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2557 lispdir='${datadir}/emacs/${version}/lisp'
2558 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2559 '${datadir}/emacs/site-lisp'
2560 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2561 etcdir='${datadir}/emacs/${version}/etc'
2562 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2563 docdir='${datadir}/emacs/${version}/etc'
2564 gamedir='${localstatedir}/games/emacs'
2569 # Check whether --with-pop was given.
2570 if test "${with_pop+set}" = set; then :
2571 withval=$with_pop;
2572 else
2573 with_pop=yes
2576 if test "$with_pop" = yes; then
2577 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2582 # Check whether --with-kerberos was given.
2583 if test "${with_kerberos+set}" = set; then :
2584 withval=$with_kerberos;
2585 else
2586 with_kerberos=no
2589 if test "$with_kerberos" != no; then
2590 $as_echo "#define KERBEROS 1" >>confdefs.h
2595 # Check whether --with-kerberos5 was given.
2596 if test "${with_kerberos5+set}" = set; then :
2597 withval=$with_kerberos5;
2598 else
2599 with_kerberos5=no
2602 if test "${with_kerberos5}" != no; then
2603 if test "${with_kerberos}" = no; then
2604 with_kerberos=yes
2605 $as_echo "#define KERBEROS 1" >>confdefs.h
2609 $as_echo "#define KERBEROS5 1" >>confdefs.h
2614 # Check whether --with-hesiod was given.
2615 if test "${with_hesiod+set}" = set; then :
2616 withval=$with_hesiod;
2617 else
2618 with_hesiod=no
2621 if test "$with_hesiod" != no; then
2623 $as_echo "#define HESIOD 1" >>confdefs.h
2628 # Check whether --with-mmdf was given.
2629 if test "${with_mmdf+set}" = set; then :
2630 withval=$with_mmdf;
2631 else
2632 with_mmdf=no
2635 if test "$with_mmdf" != no; then
2637 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2642 # Check whether --with-mail-unlink was given.
2643 if test "${with_mail_unlink+set}" = set; then :
2644 withval=$with_mail_unlink;
2645 else
2646 with_mail_unlink=no
2649 if test "$with_mail_unlink" != no; then
2651 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2656 # Check whether --with-mailhost was given.
2657 if test "${with_mailhost+set}" = set; then :
2658 withval=$with_mailhost;
2659 cat >>confdefs.h <<_ACEOF
2660 #define MAILHOST "$withval"
2661 _ACEOF
2667 # Check whether --with-sound was given.
2668 if test "${with_sound+set}" = set; then :
2669 withval=$with_sound;
2670 else
2671 with_sound=yes
2676 # Check whether --with-sync-input was given.
2677 if test "${with_sync_input+set}" = set; then :
2678 withval=$with_sync_input;
2679 else
2680 with_sync_input=yes
2683 if test "$with_sync_input" = yes; then
2685 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2690 # Check whether --with-x-toolkit was given.
2691 if test "${with_x_toolkit+set}" = set; then :
2692 withval=$with_x_toolkit; case "${withval}" in
2693 y | ye | yes ) val=gtk ;;
2694 n | no ) val=no ;;
2695 l | lu | luc | luci | lucid ) val=lucid ;;
2696 a | at | ath | athe | athen | athena ) val=athena ;;
2697 m | mo | mot | moti | motif ) val=motif ;;
2698 g | gt | gtk ) val=gtk ;;
2699 gtk3 ) val=gtk3 ;;
2701 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2702 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2703 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2705 esac
2706 with_x_toolkit=$val
2712 # Check whether --with-xpm was given.
2713 if test "${with_xpm+set}" = set; then :
2714 withval=$with_xpm;
2715 else
2716 with_xpm=yes
2720 # Check whether --with-jpeg was given.
2721 if test "${with_jpeg+set}" = set; then :
2722 withval=$with_jpeg;
2723 else
2724 with_jpeg=yes
2728 # Check whether --with-tiff was given.
2729 if test "${with_tiff+set}" = set; then :
2730 withval=$with_tiff;
2731 else
2732 with_tiff=yes
2736 # Check whether --with-gif was given.
2737 if test "${with_gif+set}" = set; then :
2738 withval=$with_gif;
2739 else
2740 with_gif=yes
2744 # Check whether --with-png was given.
2745 if test "${with_png+set}" = set; then :
2746 withval=$with_png;
2747 else
2748 with_png=yes
2752 # Check whether --with-rsvg was given.
2753 if test "${with_rsvg+set}" = set; then :
2754 withval=$with_rsvg;
2755 else
2756 with_rsvg=yes
2760 # Check whether --with-xml2 was given.
2761 if test "${with_xml2+set}" = set; then :
2762 withval=$with_xml2;
2763 else
2764 with_xml2=yes
2768 # Check whether --with-imagemagick was given.
2769 if test "${with_imagemagick+set}" = set; then :
2770 withval=$with_imagemagick;
2771 else
2772 with_imagemagick=yes
2777 # Check whether --with-xft was given.
2778 if test "${with_xft+set}" = set; then :
2779 withval=$with_xft;
2780 else
2781 with_xft=yes
2785 # Check whether --with-libotf was given.
2786 if test "${with_libotf+set}" = set; then :
2787 withval=$with_libotf;
2788 else
2789 with_libotf=yes
2793 # Check whether --with-m17n-flt was given.
2794 if test "${with_m17n_flt+set}" = set; then :
2795 withval=$with_m17n_flt;
2796 else
2797 with_m17n_flt=yes
2802 # Check whether --with-toolkit-scroll-bars was given.
2803 if test "${with_toolkit_scroll_bars+set}" = set; then :
2804 withval=$with_toolkit_scroll_bars;
2805 else
2806 with_toolkit_scroll_bars=yes
2810 # Check whether --with-xaw3d was given.
2811 if test "${with_xaw3d+set}" = set; then :
2812 withval=$with_xaw3d;
2813 else
2814 with_xaw3d=yes
2818 # Check whether --with-xim was given.
2819 if test "${with_xim+set}" = set; then :
2820 withval=$with_xim;
2821 else
2822 with_xim=yes
2826 # Check whether --with-ns was given.
2827 if test "${with_ns+set}" = set; then :
2828 withval=$with_ns;
2829 else
2830 with_ns=no
2835 # Check whether --with-gpm was given.
2836 if test "${with_gpm+set}" = set; then :
2837 withval=$with_gpm;
2838 else
2839 with_gpm=yes
2843 # Check whether --with-dbus was given.
2844 if test "${with_dbus+set}" = set; then :
2845 withval=$with_dbus;
2846 else
2847 with_dbus=yes
2851 # Check whether --with-gconf was given.
2852 if test "${with_gconf+set}" = set; then :
2853 withval=$with_gconf;
2854 else
2855 with_gconf=yes
2859 # Check whether --with-selinux was given.
2860 if test "${with_selinux+set}" = set; then :
2861 withval=$with_selinux;
2862 else
2863 with_selinux=yes
2867 # Check whether --with-gnutls was given.
2868 if test "${with_gnutls+set}" = set; then :
2869 withval=$with_gnutls;
2870 else
2871 with_gnutls=yes
2875 ## For the times when you want to build Emacs but don't have
2876 ## a suitable makeinfo, and can live without the manuals.
2878 # Check whether --with-makeinfo was given.
2879 if test "${with_makeinfo+set}" = set; then :
2880 withval=$with_makeinfo;
2881 else
2882 with_makeinfo=yes
2886 ## This is an option because I do not know if all info/man support
2887 ## compressed files, nor how to test if they do so.
2889 # Check whether --with-compress-info was given.
2890 if test "${with_compress_info+set}" = set; then :
2891 withval=$with_compress_info;
2892 else
2893 with_compress_info=yes
2896 if test $with_compress_info = yes; then
2897 GZIP_INFO=yes
2898 else
2899 GZIP_INFO=
2904 # Check whether --with-pkg-config-prog was given.
2905 if test "${with_pkg_config_prog+set}" = set; then :
2906 withval=$with_pkg_config_prog;
2909 if test "X${with_pkg_config_prog}" != X; then
2910 if test "${with_pkg_config_prog}" != yes; then
2911 PKG_CONFIG="${with_pkg_config_prog}"
2915 CRT_DIR=
2917 # Check whether --with-crt-dir was given.
2918 if test "${with_crt_dir+set}" = set; then :
2919 withval=$with_crt_dir;
2922 CRT_DIR="${with_crt_dir}"
2925 # Check whether --with-gameuser was given.
2926 if test "${with_gameuser+set}" = set; then :
2927 withval=$with_gameuser;
2930 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
2931 && gameuser="${with_gameuser}"
2932 test "X$gameuser" = X && gameuser=games
2935 # Check whether --with-gnustep-conf was given.
2936 if test "${with_gnustep_conf+set}" = set; then :
2937 withval=$with_gnustep_conf;
2940 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2941 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2942 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2943 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2945 # Check whether --enable-ns-self-contained was given.
2946 if test "${enable_ns_self_contained+set}" = set; then :
2947 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2948 else
2949 EN_NS_SELF_CONTAINED=yes
2953 # Check whether --enable-asserts was given.
2954 if test "${enable_asserts+set}" = set; then :
2955 enableval=$enable_asserts; USE_XASSERTS=$enableval
2956 else
2957 USE_XASSERTS=no
2961 # Check whether --enable-maintainer-mode was given.
2962 if test "${enable_maintainer_mode+set}" = set; then :
2963 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2964 else
2965 USE_MAINTAINER_MODE=no
2968 if test $USE_MAINTAINER_MODE = yes; then
2969 MAINT=
2970 else
2971 MAINT=#
2975 # Check whether --enable-locallisppath was given.
2976 if test "${enable_locallisppath+set}" = set; then :
2977 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2978 locallisppath=
2979 elif test "${enableval}" != "yes"; then
2980 locallisppath=${enableval}
2985 # Check whether --enable-checking was given.
2986 if test "${enable_checking+set}" = set; then :
2987 enableval=$enable_checking; ac_checking_flags="${enableval}"
2990 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2991 for check in $ac_checking_flags
2993 case $check in
2994 # these set all the flags to specific states
2995 yes) ac_enable_checking=1 ;;
2996 no) ac_enable_checking= ;
2997 ac_gc_check_stringbytes= ;
2998 ac_gc_check_string_overrun= ;
2999 ac_gc_check_string_free_list= ;
3000 ac_xmalloc_overrun= ;
3001 ac_gc_check_cons_list= ;;
3002 all) ac_enable_checking=1 ;
3003 ac_gc_check_stringbytes=1 ;
3004 ac_gc_check_string_overrun=1 ;
3005 ac_gc_check_string_free_list=1 ;
3006 ac_xmalloc_overrun=1 ;
3007 ac_gc_check_cons_list=1 ;;
3008 # these enable particular checks
3009 stringbytes) ac_gc_check_stringbytes=1 ;;
3010 stringoverrun) ac_gc_check_string_overrun=1 ;;
3011 stringfreelist) ac_gc_check_string_free_list=1 ;;
3012 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3013 conslist) ac_gc_check_cons_list=1 ;;
3014 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3015 esac
3016 done
3017 IFS="$ac_save_IFS"
3019 if test x$ac_enable_checking != x ; then
3021 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3024 if test x$ac_gc_check_stringbytes != x ; then
3026 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3029 if test x$ac_gc_check_stringoverrun != x ; then
3031 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3034 if test x$ac_gc_check_string_free_list != x ; then
3036 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3039 if test x$ac_xmalloc_overrun != x ; then
3041 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3044 if test x$ac_gc_check_cons_list != x ; then
3046 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3050 # Check whether --enable-use-lisp-union-type was given.
3051 if test "${enable_use_lisp_union_type+set}" = set; then :
3052 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3054 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3061 # Check whether --enable-profiling was given.
3062 if test "${enable_profiling+set}" = set; then :
3063 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3066 if test x$ac_enable_profiling != x ; then
3067 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3068 else
3069 PROFILING_CFLAGS=
3073 # Check whether --enable-autodepend was given.
3074 if test "${enable_autodepend+set}" = set; then :
3075 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3076 else
3077 ac_enable_autodepend=yes
3081 #### Make srcdir absolute, if it isn't already. It's important to
3082 #### avoid running the path through pwd unnecessarily, since pwd can
3083 #### give you automounter prefixes, which can go away. We do all this
3084 #### so Emacs can find its files when run uninstalled.
3085 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3086 unset CDPATH
3087 case "${srcdir}" in
3088 /* ) ;;
3090 ## We may be able to use the $PWD environment variable to make this
3091 ## absolute. But sometimes PWD is inaccurate.
3092 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3093 ## but that tested only for a well-formed and valid PWD,
3094 ## it did not object when PWD was well-formed and valid but just wrong.
3095 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3096 then
3097 srcdir="$PWD"
3098 else
3099 srcdir="`(cd ${srcdir}; pwd)`"
3102 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3103 esac
3105 #### Check if the source directory already has a configured system in it.
3106 if test `pwd` != `(cd ${srcdir} && pwd)` \
3107 && test -f "${srcdir}/src/config.h" ; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3109 as a build directory right now; it has been configured in its own
3110 right. To configure in another directory as well, you MUST
3111 use GNU make. If you do not have GNU make, then you must
3112 now do \`make distclean' in ${srcdir},
3113 and then run $0 again." >&5
3114 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3115 as a build directory right now; it has been configured in its own
3116 right. To configure in another directory as well, you MUST
3117 use GNU make. If you do not have GNU make, then you must
3118 now do \`make distclean' in ${srcdir},
3119 and then run $0 again." >&2;}
3122 #### Given the configuration name, set machfile and opsysfile to the
3123 #### names of the m/*.h and s/*.h files we should use.
3125 ### Canonicalize the configuration name.
3127 ac_aux_dir=
3128 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3129 if test -f "$ac_dir/install-sh"; then
3130 ac_aux_dir=$ac_dir
3131 ac_install_sh="$ac_aux_dir/install-sh -c"
3132 break
3133 elif test -f "$ac_dir/install.sh"; then
3134 ac_aux_dir=$ac_dir
3135 ac_install_sh="$ac_aux_dir/install.sh -c"
3136 break
3137 elif test -f "$ac_dir/shtool"; then
3138 ac_aux_dir=$ac_dir
3139 ac_install_sh="$ac_aux_dir/shtool install -c"
3140 break
3142 done
3143 if test -z "$ac_aux_dir"; then
3144 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3147 # These three variables are undocumented and unsupported,
3148 # and are intended to be withdrawn in a future Autoconf release.
3149 # They can cause serious problems if a builder's source tree is in a directory
3150 # whose full name contains unusual characters.
3151 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3152 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3153 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3156 # Make sure we can run config.sub.
3157 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3158 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3161 $as_echo_n "checking build system type... " >&6; }
3162 if ${ac_cv_build+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 ac_build_alias=$build_alias
3166 test "x$ac_build_alias" = x &&
3167 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3168 test "x$ac_build_alias" = x &&
3169 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3170 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3171 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3175 $as_echo "$ac_cv_build" >&6; }
3176 case $ac_cv_build in
3177 *-*-*) ;;
3178 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3179 esac
3180 build=$ac_cv_build
3181 ac_save_IFS=$IFS; IFS='-'
3182 set x $ac_cv_build
3183 shift
3184 build_cpu=$1
3185 build_vendor=$2
3186 shift; shift
3187 # Remember, the first character of IFS is used to create $*,
3188 # except with old shells:
3189 build_os=$*
3190 IFS=$ac_save_IFS
3191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3195 $as_echo_n "checking host system type... " >&6; }
3196 if ${ac_cv_host+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test "x$host_alias" = x; then
3200 ac_cv_host=$ac_cv_build
3201 else
3202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3208 $as_echo "$ac_cv_host" >&6; }
3209 case $ac_cv_host in
3210 *-*-*) ;;
3211 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3212 esac
3213 host=$ac_cv_host
3214 ac_save_IFS=$IFS; IFS='-'
3215 set x $ac_cv_host
3216 shift
3217 host_cpu=$1
3218 host_vendor=$2
3219 shift; shift
3220 # Remember, the first character of IFS is used to create $*,
3221 # except with old shells:
3222 host_os=$*
3223 IFS=$ac_save_IFS
3224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3227 canonical=$host
3228 configuration=${host_alias-${build_alias-$host}}
3232 ### If you add support for a new configuration, add code to this
3233 ### switch statement to recognize your configuration name and select
3234 ### the appropriate operating system and machine description files.
3236 ### You would hope that you could choose an m/*.h file pretty much
3237 ### based on the machine portion of the configuration name, and an s/*.h
3238 ### file based on the operating system portion. However, it turns out
3239 ### that each m/*.h file is pretty manufacturer-specific - for
3240 ### example mips.h is MIPS
3241 ### So we basically have to have a special case for each
3242 ### configuration name.
3244 ### As far as handling version numbers on operating systems is
3245 ### concerned, make sure things will fail in a fixable way. If
3246 ### /etc/MACHINES doesn't say anything about version numbers, be
3247 ### prepared to handle anything reasonably. If version numbers
3248 ### matter, be sure /etc/MACHINES says something about it.
3250 machine='' opsys='' unported=no
3251 case "${canonical}" in
3253 ## GNU/Linux ports
3254 *-*-linux-gnu*)
3255 opsys=gnu-linux
3256 case ${canonical} in
3257 alpha*) machine=alpha ;;
3258 s390-*) machine=ibms390 ;;
3259 s390x-*) machine=ibms390x ;;
3260 powerpc*) machine=macppc ;;
3261 sparc*) machine=sparc ;;
3262 ia64*) machine=ia64 ;;
3263 m68k*) machine=m68k ;;
3264 x86_64*) machine=amdx86-64 ;;
3265 esac
3268 ## FreeBSD ports
3269 *-*-freebsd* )
3270 opsys=freebsd
3271 case "${canonical}" in
3272 alpha*) machine=alpha ;;
3273 amd64-*|x86_64-*) machine=amdx86-64 ;;
3274 ia64-*) machine=ia64 ;;
3275 i[3456]86-*) machine=intel386 ;;
3276 powerpc-*) machine=macppc ;;
3277 sparc-*) machine=sparc ;;
3278 sparc64-*) machine=sparc ;;
3279 esac
3282 ## FreeBSD kernel + glibc based userland
3283 *-*-kfreebsd*gnu* )
3284 opsys=gnu-kfreebsd
3285 case "${canonical}" in
3286 alpha*) machine=alpha ;;
3287 amd64-*|x86_64-*) machine=amdx86-64 ;;
3288 ia64-*) machine=ia64 ;;
3289 i[3456]86-*) machine=intel386 ;;
3290 powerpc-*) machine=macppc ;;
3291 sparc-*) machine=sparc ;;
3292 sparc64-*) machine=sparc ;;
3293 esac
3296 ## NetBSD ports
3297 *-*-netbsd* )
3298 opsys=netbsd
3299 case "${canonical}" in
3300 alpha*) machine=alpha ;;
3301 x86_64-*) machine=amdx86-64 ;;
3302 i[3456]86-*) machine=intel386 ;;
3303 m68k-*) machine=m68k ;;
3304 powerpc-*) machine=macppc ;;
3305 sparc*-) machine=sparc ;;
3306 vax-*) machine=vax ;;
3307 esac
3310 ## OpenBSD ports
3311 *-*-openbsd* )
3312 opsys=openbsd
3313 case "${canonical}" in
3314 alpha*) machine=alpha ;;
3315 x86_64-*) machine=amdx86-64 ;;
3316 i386-*) machine=intel386 ;;
3317 powerpc-*) machine=macppc ;;
3318 sparc*) machine=sparc ;;
3319 vax-*) machine=vax ;;
3320 esac
3323 ## Apple Darwin / Mac OS X
3324 *-apple-darwin* )
3325 case "${canonical}" in
3326 i[3456]86-* ) machine=intel386 ;;
3327 powerpc-* ) machine=macppc ;;
3328 x86_64-* ) machine=amdx86-64 ;;
3329 * ) unported=yes ;;
3330 esac
3331 opsys=darwin
3332 # Define CPP as follows to make autoconf work correctly.
3333 CPP="${CC-cc} -E -no-cpp-precomp"
3334 # Use fink packages if available.
3335 if test -d /sw/include && test -d /sw/lib; then
3336 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3337 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3338 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3342 ## HP 9000 series 700 and 800, running HP/UX
3343 hppa*-hp-hpux10.2* )
3344 opsys=hpux10-20
3346 hppa*-hp-hpux1[1-9]* )
3347 opsys=hpux11
3348 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3351 ## IBM machines
3352 rs6000-ibm-aix4.[23]* )
3353 machine=ibmrs6000 opsys=aix4-2
3355 powerpc-ibm-aix4.[23]* )
3356 machine=ibmrs6000 opsys=aix4-2
3358 rs6000-ibm-aix[56]* )
3359 machine=ibmrs6000 opsys=aix4-2
3361 powerpc-ibm-aix[56]* )
3362 machine=ibmrs6000 opsys=aix4-2
3365 ## Silicon Graphics machines
3366 ## Iris 4D
3367 mips-sgi-irix6.5 )
3368 machine=iris4d opsys=irix6-5
3369 # Without defining _LANGUAGE_C, things get masked out in the headers
3370 # so that, for instance, grepping for `free' in stdlib.h fails and
3371 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3372 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3373 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3376 ## Suns
3377 *-sun-solaris* \
3378 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3379 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3380 case "${canonical}" in
3381 i[3456]86-*-* ) machine=intel386 ;;
3382 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3383 sparc* ) machine=sparc ;;
3384 * ) unported=yes ;;
3385 esac
3386 case "${canonical}" in
3387 *-sunos5.6* | *-solaris2.6* )
3388 opsys=sol2-6
3389 NON_GNU_CPP=/usr/ccs/lib/cpp
3390 RANLIB="ar -ts"
3392 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3393 opsys=sol2-6
3394 emacs_check_sunpro_c=yes
3395 NON_GNU_CPP=/usr/ccs/lib/cpp
3397 *-sunos5* | *-solaris* )
3398 opsys=sol2-10
3399 emacs_check_sunpro_c=yes
3400 NON_GNU_CPP=/usr/ccs/lib/cpp
3402 esac
3403 ## Watch out for a compiler that we know will not work.
3404 case "${canonical}" in
3405 *-solaris* | *-sunos5* )
3406 if [ "x$CC" = x/usr/ucb/cc ]; then
3407 ## /usr/ucb/cc doesn't work;
3408 ## we should find some other compiler that does work.
3409 unset CC
3412 *) ;;
3413 esac
3416 ## Intel 386 machines where we don't care about the manufacturer.
3417 i[3456]86-*-* )
3418 machine=intel386
3419 case "${canonical}" in
3420 *-cygwin ) opsys=cygwin ;;
3421 *-darwin* ) opsys=darwin
3422 CPP="${CC-cc} -E -no-cpp-precomp"
3424 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3425 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3426 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3427 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3428 esac
3432 unported=yes
3434 esac
3436 ### If the code above didn't choose an operating system, just choose
3437 ### an operating system based on the configuration name. You really
3438 ### only want to use this when you have no idea what the right
3439 ### operating system is; if you know what operating systems a machine
3440 ### runs, it's cleaner to make it explicit in the case statement
3441 ### above.
3442 if test x"${opsys}" = x; then
3443 case "${canonical}" in
3444 *-gnu* ) opsys=gnu ;;
3446 unported=yes
3448 esac
3453 if test $unported = yes; then
3454 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3455 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3458 if test -n "$machine"; then
3459 machfile="m/${machine}.h"
3460 else
3461 machfile=
3463 opsysfile="s/${opsys}.h"
3466 #### Choose a compiler.
3467 test -n "$CC" && cc_specified=yes
3469 # Save the value of CFLAGS that the user specified.
3470 SPECIFIED_CFLAGS="$CFLAGS"
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 if test -n "$ac_tool_prefix"; then
3478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3516 if test -z "$ac_cv_prog_CC"; then
3517 ac_ct_CC=$CC
3518 # Extract the first word of "gcc", so it can be a program name with args.
3519 set dummy gcc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$ac_ct_CC"; then
3526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_ac_ct_CC="gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3539 done
3540 done
3541 IFS=$as_save_IFS
3545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3546 if test -n "$ac_ct_CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3548 $as_echo "$ac_ct_CC" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3554 if test "x$ac_ct_CC" = x; then
3555 CC=""
3556 else
3557 case $cross_compiling:$ac_tool_warned in
3558 yes:)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned=yes ;;
3562 esac
3563 CC=$ac_ct_CC
3565 else
3566 CC="$ac_cv_prog_CC"
3569 if test -z "$CC"; then
3570 if test -n "$ac_tool_prefix"; then
3571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3572 set dummy ${ac_tool_prefix}cc; ac_word=$2
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if ${ac_cv_prog_CC+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 if test -n "$CC"; then
3579 ac_cv_prog_CC="$CC" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3588 ac_cv_prog_CC="${ac_tool_prefix}cc"
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 break 2
3592 done
3593 done
3594 IFS=$as_save_IFS
3598 CC=$ac_cv_prog_CC
3599 if test -n "$CC"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601 $as_echo "$CC" >&6; }
3602 else
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3610 if test -z "$CC"; then
3611 # Extract the first word of "cc", so it can be a program name with args.
3612 set dummy cc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CC+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 ac_prog_rejected=no
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3630 ac_prog_rejected=yes
3631 continue
3633 ac_cv_prog_CC="cc"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3637 done
3638 done
3639 IFS=$as_save_IFS
3641 if test $ac_prog_rejected = yes; then
3642 # We found a bogon in the path, so make sure we never use it.
3643 set dummy $ac_cv_prog_CC
3644 shift
3645 if test $# != 0; then
3646 # We chose a different compiler from the bogus one.
3647 # However, it has the same basename, so the bogon will be chosen
3648 # first if we set CC to just the basename; use the full file name.
3649 shift
3650 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 for ac_prog in cl.exe
3670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if ${ac_cv_prog_CC+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 if test -n "$CC"; then
3678 ac_cv_prog_CC="$CC" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3691 done
3692 done
3693 IFS=$as_save_IFS
3697 CC=$ac_cv_prog_CC
3698 if test -n "$CC"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3700 $as_echo "$CC" >&6; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3707 test -n "$CC" && break
3708 done
3710 if test -z "$CC"; then
3711 ac_ct_CC=$CC
3712 for ac_prog in cl.exe
3714 # Extract the first word of "$ac_prog", so it can be a program name with args.
3715 set dummy $ac_prog; ac_word=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 if test -n "$ac_ct_CC"; then
3722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3731 ac_cv_prog_ac_ct_CC="$ac_prog"
3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3735 done
3736 done
3737 IFS=$as_save_IFS
3741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3742 if test -n "$ac_ct_CC"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3744 $as_echo "$ac_ct_CC" >&6; }
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3751 test -n "$ac_ct_CC" && break
3752 done
3754 if test "x$ac_ct_CC" = x; then
3755 CC=""
3756 else
3757 case $cross_compiling:$ac_tool_warned in
3758 yes:)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3761 ac_tool_warned=yes ;;
3762 esac
3763 CC=$ac_ct_CC
3770 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "no acceptable C compiler found in \$PATH
3773 See \`config.log' for more details" "$LINENO" 5; }
3775 # Provide some information about the compiler.
3776 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3777 set X $ac_compile
3778 ac_compiler=$2
3779 for ac_option in --version -v -V -qversion; do
3780 { { ac_try="$ac_compiler $ac_option >&5"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3788 ac_status=$?
3789 if test -s conftest.err; then
3790 sed '10a\
3791 ... rest of stderr output deleted ...
3792 10q' conftest.err >conftest.er1
3793 cat conftest.er1 >&5
3795 rm -f conftest.er1 conftest.err
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }
3798 done
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3804 main ()
3808 return 0;
3810 _ACEOF
3811 ac_clean_files_save=$ac_clean_files
3812 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3813 # Try to create an executable without -o first, disregard a.out.
3814 # It will help us diagnose broken compilers, and finding out an intuition
3815 # of exeext.
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3817 $as_echo_n "checking whether the C compiler works... " >&6; }
3818 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3820 # The possible output files:
3821 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3823 ac_rmfiles=
3824 for ac_file in $ac_files
3826 case $ac_file in
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3828 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3829 esac
3830 done
3831 rm -f $ac_rmfiles
3833 if { { ac_try="$ac_link_default"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_link_default") 2>&5
3841 ac_status=$?
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; then :
3844 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3845 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3846 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3847 # so that the user can short-circuit this test for compilers unknown to
3848 # Autoconf.
3849 for ac_file in $ac_files ''
3851 test -f "$ac_file" || continue
3852 case $ac_file in
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3855 [ab].out )
3856 # We found the default executable, but exeext='' is most
3857 # certainly right.
3858 break;;
3859 *.* )
3860 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3861 then :; else
3862 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3864 # We set ac_cv_exeext here because the later test for it is not
3865 # safe: cross compilers may not add the suffix if given an `-o'
3866 # argument, so we may need to know it at that point already.
3867 # Even if this section looks crufty: it has the advantage of
3868 # actually working.
3869 break;;
3871 break;;
3872 esac
3873 done
3874 test "$ac_cv_exeext" = no && ac_cv_exeext=
3876 else
3877 ac_file=''
3879 if test -z "$ac_file"; then :
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3887 as_fn_error 77 "C compiler cannot create executables
3888 See \`config.log' for more details" "$LINENO" 5; }
3889 else
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 $as_echo "yes" >&6; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3894 $as_echo_n "checking for C compiler default output file name... " >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 ac_exeext=$ac_cv_exeext
3899 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3900 ac_clean_files=$ac_clean_files_save
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3902 $as_echo_n "checking for suffix of executables... " >&6; }
3903 if { { ac_try="$ac_link"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_link") 2>&5
3911 ac_status=$?
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3915 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3916 # work properly (i.e., refer to `conftest.exe'), while it won't with
3917 # `rm'.
3918 for ac_file in conftest.exe conftest conftest.*; do
3919 test -f "$ac_file" || continue
3920 case $ac_file in
3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923 break;;
3924 * ) break;;
3925 esac
3926 done
3927 else
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3931 See \`config.log' for more details" "$LINENO" 5; }
3933 rm -f conftest conftest$ac_cv_exeext
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3935 $as_echo "$ac_cv_exeext" >&6; }
3937 rm -f conftest.$ac_ext
3938 EXEEXT=$ac_cv_exeext
3939 ac_exeext=$EXEEXT
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942 #include <stdio.h>
3944 main ()
3946 FILE *f = fopen ("conftest.out", "w");
3947 return ferror (f) || fclose (f) != 0;
3950 return 0;
3952 _ACEOF
3953 ac_clean_files="$ac_clean_files conftest.out"
3954 # Check that the compiler produces executables we can run. If not, either
3955 # the compiler is broken, or we cross compile.
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3957 $as_echo_n "checking whether we are cross compiling... " >&6; }
3958 if test "$cross_compiling" != yes; then
3959 { { ac_try="$ac_link"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_link") 2>&5
3967 ac_status=$?
3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }
3970 if { ac_try='./conftest$ac_cv_exeext'
3971 { { case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_try") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; }; then
3981 cross_compiling=no
3982 else
3983 if test "$cross_compiling" = maybe; then
3984 cross_compiling=yes
3985 else
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $? "cannot run C compiled programs.
3989 If you meant to cross compile, use \`--host'.
3990 See \`config.log' for more details" "$LINENO" 5; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3995 $as_echo "$cross_compiling" >&6; }
3997 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3998 ac_clean_files=$ac_clean_files_save
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if ${ac_cv_objext+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4008 main ()
4012 return 0;
4014 _ACEOF
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4029 case $ac_file in
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4032 break;;
4033 esac
4034 done
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error $? "cannot compute suffix of object files: cannot compile
4042 See \`config.log' for more details" "$LINENO" 5; }
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4049 ac_objext=$OBJEXT
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if ${ac_cv_c_compiler_gnu+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4059 main ()
4061 #ifndef __GNUC__
4062 choke me
4063 #endif
4066 return 0;
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_compiler_gnu=yes
4071 else
4072 ac_compiler_gnu=no
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4081 GCC=yes
4082 else
4083 GCC=
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if ${ac_cv_prog_cc_g+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4094 ac_cv_prog_cc_g=no
4095 CFLAGS="-g"
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4100 main ()
4104 return 0;
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_g=yes
4109 else
4110 CFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4124 else
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4126 CFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 main ()
4135 return 0;
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_g=yes
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4154 CFLAGS="-g -O2"
4155 else
4156 CFLAGS="-g"
4158 else
4159 if test "$GCC" = yes; then
4160 CFLAGS="-O2"
4161 else
4162 CFLAGS=
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if ${ac_cv_prog_cc_c89+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_cv_prog_cc_c89=no
4171 ac_save_CC=$CC
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <stdarg.h>
4175 #include <stdio.h>
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4182 char **p;
4183 int i;
4185 return p[i];
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4189 char *s;
4190 va_list v;
4191 va_start (v,p);
4192 s = g (p, va_arg (v,int));
4193 va_end (v);
4194 return s;
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4208 #define FOO(x) 'x'
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 int argc;
4216 char **argv;
4218 main ()
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4222 return 0;
4224 _ACEOF
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 done
4235 rm -f conftest.$ac_ext
4236 CC=$ac_save_CC
4239 # AC_CACHE_VAL
4240 case "x$ac_cv_prog_cc_c89" in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4244 xno)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 esac
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 # On Suns, sometimes $CPP names a directory.
4264 if test -n "$CPP" && test -d "$CPP"; then
4265 CPP=
4268 ## If not using gcc, and on Solaris, and no CPP specified, see if
4269 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4270 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4271 test x"$CPP" = x; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4273 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4275 if ${emacs_cv_sunpro_c+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4282 main ()
4284 #ifndef __SUNPRO_C
4285 fail;
4286 #endif
4289 return 0;
4291 _ACEOF
4292 if ac_fn_c_try_link "$LINENO"; then :
4293 emacs_cv_sunpro_c=yes
4294 else
4295 emacs_cv_sunpro_c=no
4297 rm -f core conftest.err conftest.$ac_objext \
4298 conftest$ac_exeext conftest.$ac_ext
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4302 $as_echo "$emacs_cv_sunpro_c" >&6; }
4304 if test x"$emacs_cv_sunpro_c" = xyes; then
4305 NON_GNU_CPP="$CC -E -Xs"
4309 #### Some systems specify a CPP to use unless we are using GCC.
4310 #### Now that we know whether we are using GCC, we can decide whether
4311 #### to use that one.
4312 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4313 then
4314 CPP="$NON_GNU_CPP"
4317 #### Some systems specify a CC to use unless we are using GCC.
4318 #### Now that we know whether we are using GCC, we can decide whether
4319 #### to use that one.
4320 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4321 test x$cc_specified != xyes
4322 then
4323 CC="$NON_GNU_CC"
4326 if test x$GCC = xyes; then
4327 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4328 else
4329 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4338 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4339 # On Suns, sometimes $CPP names a directory.
4340 if test -n "$CPP" && test -d "$CPP"; then
4341 CPP=
4343 if test -z "$CPP"; then
4344 if ${ac_cv_prog_CPP+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 # Double quotes because CPP needs to be expanded
4348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4350 ac_preproc_ok=false
4351 for ac_c_preproc_warn_flag in '' yes
4353 # Use a header file that comes with gcc, so configuring glibc
4354 # with a fresh cross-compiler works.
4355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356 # <limits.h> exists even on freestanding compilers.
4357 # On the NeXT, cc -E runs the code through the compiler's parser,
4358 # not just through cpp. "Syntax error" is here to catch this case.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #ifdef __STDC__
4362 # include <limits.h>
4363 #else
4364 # include <assert.h>
4365 #endif
4366 Syntax error
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4370 else
4371 # Broken: fails on valid input.
4372 continue
4374 rm -f conftest.err conftest.i conftest.$ac_ext
4376 # OK, works on sane cases. Now check whether nonexistent headers
4377 # can be detected and how.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4381 _ACEOF
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4383 # Broken: success on invalid input.
4384 continue
4385 else
4386 # Passes both tests.
4387 ac_preproc_ok=:
4388 break
4390 rm -f conftest.err conftest.i conftest.$ac_ext
4392 done
4393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394 rm -f conftest.i conftest.err conftest.$ac_ext
4395 if $ac_preproc_ok; then :
4396 break
4399 done
4400 ac_cv_prog_CPP=$CPP
4403 CPP=$ac_cv_prog_CPP
4404 else
4405 ac_cv_prog_CPP=$CPP
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4408 $as_echo "$CPP" >&6; }
4409 ac_preproc_ok=false
4410 for ac_c_preproc_warn_flag in '' yes
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #ifdef __STDC__
4421 # include <limits.h>
4422 #else
4423 # include <assert.h>
4424 #endif
4425 Syntax error
4426 _ACEOF
4427 if ac_fn_c_try_cpp "$LINENO"; then :
4429 else
4430 # Broken: fails on valid input.
4431 continue
4433 rm -f conftest.err conftest.i conftest.$ac_ext
4435 # OK, works on sane cases. Now check whether nonexistent headers
4436 # can be detected and how.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <ac_nonexistent.h>
4440 _ACEOF
4441 if ac_fn_c_try_cpp "$LINENO"; then :
4442 # Broken: success on invalid input.
4443 continue
4444 else
4445 # Passes both tests.
4446 ac_preproc_ok=:
4447 break
4449 rm -f conftest.err conftest.i conftest.$ac_ext
4451 done
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.i conftest.err conftest.$ac_ext
4454 if $ac_preproc_ok; then :
4456 else
4457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4460 See \`config.log' for more details" "$LINENO" 5; }
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4471 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4472 if ${ac_cv_path_GREP+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -z "$GREP"; then
4476 ac_path_GREP_found=false
4477 # Loop through the user's path and test for each of PROGNAME-LIST
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_prog in grep ggrep; do
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4486 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4487 # Check for GNU ac_path_GREP and select it if it is found.
4488 # Check for GNU $ac_path_GREP
4489 case `"$ac_path_GREP" --version 2>&1` in
4490 *GNU*)
4491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4493 ac_count=0
4494 $as_echo_n 0123456789 >"conftest.in"
4495 while :
4497 cat "conftest.in" "conftest.in" >"conftest.tmp"
4498 mv "conftest.tmp" "conftest.in"
4499 cp "conftest.in" "conftest.nl"
4500 $as_echo 'GREP' >> "conftest.nl"
4501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4503 as_fn_arith $ac_count + 1 && ac_count=$as_val
4504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4505 # Best one so far, save it but keep looking for a better one
4506 ac_cv_path_GREP="$ac_path_GREP"
4507 ac_path_GREP_max=$ac_count
4509 # 10*(2^10) chars as input seems more than enough
4510 test $ac_count -gt 10 && break
4511 done
4512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4513 esac
4515 $ac_path_GREP_found && break 3
4516 done
4517 done
4518 done
4519 IFS=$as_save_IFS
4520 if test -z "$ac_cv_path_GREP"; then
4521 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4523 else
4524 ac_cv_path_GREP=$GREP
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4529 $as_echo "$ac_cv_path_GREP" >&6; }
4530 GREP="$ac_cv_path_GREP"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4534 $as_echo_n "checking for egrep... " >&6; }
4535 if ${ac_cv_path_EGREP+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4539 then ac_cv_path_EGREP="$GREP -E"
4540 else
4541 if test -z "$EGREP"; then
4542 ac_path_EGREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in egrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4553 # Check for GNU ac_path_EGREP and select it if it is found.
4554 # Check for GNU $ac_path_EGREP
4555 case `"$ac_path_EGREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'EGREP' >> "conftest.nl"
4567 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_EGREP="$ac_path_EGREP"
4573 ac_path_EGREP_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4581 $ac_path_EGREP_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_EGREP"; then
4587 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589 else
4590 ac_cv_path_EGREP=$EGREP
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4596 $as_echo "$ac_cv_path_EGREP" >&6; }
4597 EGREP="$ac_cv_path_EGREP"
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4601 $as_echo_n "checking for ANSI C header files... " >&6; }
4602 if ${ac_cv_header_stdc+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #include <stdlib.h>
4608 #include <stdarg.h>
4609 #include <string.h>
4610 #include <float.h>
4613 main ()
4617 return 0;
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_header_stdc=yes
4622 else
4623 ac_cv_header_stdc=no
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 if test $ac_cv_header_stdc = yes; then
4628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <string.h>
4633 _ACEOF
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "memchr" >/dev/null 2>&1; then :
4637 else
4638 ac_cv_header_stdc=no
4640 rm -f conftest*
4644 if test $ac_cv_header_stdc = yes; then
4645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <stdlib.h>
4650 _ACEOF
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 $EGREP "free" >/dev/null 2>&1; then :
4654 else
4655 ac_cv_header_stdc=no
4657 rm -f conftest*
4661 if test $ac_cv_header_stdc = yes; then
4662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4663 if test "$cross_compiling" = yes; then :
4665 else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <ctype.h>
4669 #include <stdlib.h>
4670 #if ((' ' & 0x0FF) == 0x020)
4671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4673 #else
4674 # define ISLOWER(c) \
4675 (('a' <= (c) && (c) <= 'i') \
4676 || ('j' <= (c) && (c) <= 'r') \
4677 || ('s' <= (c) && (c) <= 'z'))
4678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4679 #endif
4681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4683 main ()
4685 int i;
4686 for (i = 0; i < 256; i++)
4687 if (XOR (islower (i), ISLOWER (i))
4688 || toupper (i) != TOUPPER (i))
4689 return 2;
4690 return 0;
4692 _ACEOF
4693 if ac_fn_c_try_run "$LINENO"; then :
4695 else
4696 ac_cv_header_stdc=no
4698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4699 conftest.$ac_objext conftest.beam conftest.$ac_ext
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4705 $as_echo "$ac_cv_header_stdc" >&6; }
4706 if test $ac_cv_header_stdc = yes; then
4708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4714 inttypes.h stdint.h unistd.h
4715 do :
4716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4720 cat >>confdefs.h <<_ACEOF
4721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4722 _ACEOF
4726 done
4730 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4731 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4732 MINIX=yes
4733 else
4734 MINIX=
4738 if test "$MINIX" = yes; then
4740 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4743 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4746 $as_echo "#define _MINIX 1" >>confdefs.h
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4752 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4753 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4759 # define __EXTENSIONS__ 1
4760 $ac_includes_default
4762 main ()
4766 return 0;
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770 ac_cv_safe_to_define___extensions__=yes
4771 else
4772 ac_cv_safe_to_define___extensions__=no
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4777 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4778 test $ac_cv_safe_to_define___extensions__ = yes &&
4779 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4781 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4783 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4785 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4787 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4791 ### Use -Wno-pointer-sign if the compiler supports it
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4793 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4794 SAVE_CFLAGS="$CFLAGS"
4795 CFLAGS="$CFLAGS -Wno-pointer-sign"
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4800 main ()
4804 return 0;
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 has_option=yes
4809 else
4810 has_option=no
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 if test $has_option = yes; then
4814 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4817 $as_echo "$has_option" >&6; }
4818 CFLAGS="$SAVE_CFLAGS"
4819 unset has_option
4820 unset SAVE_CFLAGS
4822 ### Use -Wdeclaration-after-statement if the compiler supports it
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4824 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4825 SAVE_CFLAGS="$CFLAGS"
4826 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4831 main ()
4835 return 0;
4837 _ACEOF
4838 if ac_fn_c_try_compile "$LINENO"; then :
4839 has_option=yes
4840 else
4841 has_option=no
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 if test $has_option = yes; then
4845 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4848 $as_echo "$has_option" >&6; }
4849 CFLAGS="$SAVE_CFLAGS"
4850 unset has_option
4851 unset SAVE_CFLAGS
4853 ### Use -Wold-style-definition if the compiler supports it
4854 # This can be removed when conversion to standard C is finished.
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4856 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4857 SAVE_CFLAGS="$CFLAGS"
4858 CFLAGS="$CFLAGS -Wold-style-definition"
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4863 main ()
4867 return 0;
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"; then :
4871 has_option=yes
4872 else
4873 has_option=no
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 if test $has_option = yes; then
4877 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4880 $as_echo "$has_option" >&6; }
4881 CFLAGS="$SAVE_CFLAGS"
4882 unset has_option
4883 unset SAVE_CFLAGS
4885 ### Use -Wimplicit-function-declaration if the compiler supports it
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4887 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4888 SAVE_CFLAGS="$CFLAGS"
4889 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4894 main ()
4898 return 0;
4900 _ACEOF
4901 if ac_fn_c_try_compile "$LINENO"; then :
4902 has_option=yes
4903 else
4904 has_option=no
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907 if test $has_option = yes; then
4908 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4911 $as_echo "$has_option" >&6; }
4912 CFLAGS="$SAVE_CFLAGS"
4913 unset has_option
4914 unset SAVE_CFLAGS
4919 #### Some other nice autoconf tests.
4921 ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4927 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4928 # On Suns, sometimes $CPP names a directory.
4929 if test -n "$CPP" && test -d "$CPP"; then
4930 CPP=
4932 if test -z "$CPP"; then
4933 if ${ac_cv_prog_CPP+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 # Double quotes because CPP needs to be expanded
4937 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4939 ac_preproc_ok=false
4940 for ac_c_preproc_warn_flag in '' yes
4942 # Use a header file that comes with gcc, so configuring glibc
4943 # with a fresh cross-compiler works.
4944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 # <limits.h> exists even on freestanding compilers.
4946 # On the NeXT, cc -E runs the code through the compiler's parser,
4947 # not just through cpp. "Syntax error" is here to catch this case.
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #ifdef __STDC__
4951 # include <limits.h>
4952 #else
4953 # include <assert.h>
4954 #endif
4955 Syntax error
4956 _ACEOF
4957 if ac_fn_c_try_cpp "$LINENO"; then :
4959 else
4960 # Broken: fails on valid input.
4961 continue
4963 rm -f conftest.err conftest.i conftest.$ac_ext
4965 # OK, works on sane cases. Now check whether nonexistent headers
4966 # can be detected and how.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #include <ac_nonexistent.h>
4970 _ACEOF
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4972 # Broken: success on invalid input.
4973 continue
4974 else
4975 # Passes both tests.
4976 ac_preproc_ok=:
4977 break
4979 rm -f conftest.err conftest.i conftest.$ac_ext
4981 done
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.i conftest.err conftest.$ac_ext
4984 if $ac_preproc_ok; then :
4985 break
4988 done
4989 ac_cv_prog_CPP=$CPP
4992 CPP=$ac_cv_prog_CPP
4993 else
4994 ac_cv_prog_CPP=$CPP
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4997 $as_echo "$CPP" >&6; }
4998 ac_preproc_ok=false
4999 for ac_c_preproc_warn_flag in '' yes
5001 # Use a header file that comes with gcc, so configuring glibc
5002 # with a fresh cross-compiler works.
5003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5004 # <limits.h> exists even on freestanding compilers.
5005 # On the NeXT, cc -E runs the code through the compiler's parser,
5006 # not just through cpp. "Syntax error" is here to catch this case.
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #ifdef __STDC__
5010 # include <limits.h>
5011 #else
5012 # include <assert.h>
5013 #endif
5014 Syntax error
5015 _ACEOF
5016 if ac_fn_c_try_cpp "$LINENO"; then :
5018 else
5019 # Broken: fails on valid input.
5020 continue
5022 rm -f conftest.err conftest.i conftest.$ac_ext
5024 # OK, works on sane cases. Now check whether nonexistent headers
5025 # can be detected and how.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #include <ac_nonexistent.h>
5029 _ACEOF
5030 if ac_fn_c_try_cpp "$LINENO"; then :
5031 # Broken: success on invalid input.
5032 continue
5033 else
5034 # Passes both tests.
5035 ac_preproc_ok=:
5036 break
5038 rm -f conftest.err conftest.i conftest.$ac_ext
5040 done
5041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042 rm -f conftest.i conftest.err conftest.$ac_ext
5043 if $ac_preproc_ok; then :
5045 else
5046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5048 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5049 See \`config.log' for more details" "$LINENO" 5; }
5052 ac_ext=c
5053 ac_cpp='$CPP $CPPFLAGS'
5054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5058 # Find a good install program. We prefer a C program (faster),
5059 # so one script is as good as another. But avoid the broken or
5060 # incompatible versions:
5061 # SysV /etc/install, /usr/sbin/install
5062 # SunOS /usr/etc/install
5063 # IRIX /sbin/install
5064 # AIX /bin/install
5065 # AmigaOS /C/install, which installs bootblocks on floppy discs
5066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5069 # OS/2's system install, which has a completely different semantic
5070 # ./install, which can be erroneously created by make from ./install.sh.
5071 # Reject install programs that cannot install multiple files.
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5073 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5074 if test -z "$INSTALL"; then
5075 if ${ac_cv_path_install+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 # Account for people who put trailing slashes in PATH elements.
5084 case $as_dir/ in #((
5085 ./ | .// | /[cC]/* | \
5086 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5087 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5088 /usr/ucb/* ) ;;
5090 # OSF1 and SCO ODT 3.0 have their own names for install.
5091 # Don't use installbsd from OSF since it installs stuff as root
5092 # by default.
5093 for ac_prog in ginstall scoinst install; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5096 if test $ac_prog = install &&
5097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5098 # AIX install. It has an incompatible calling convention.
5100 elif test $ac_prog = install &&
5101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5102 # program-specific install script used by HP pwplus--don't use.
5104 else
5105 rm -rf conftest.one conftest.two conftest.dir
5106 echo one > conftest.one
5107 echo two > conftest.two
5108 mkdir conftest.dir
5109 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5110 test -s conftest.one && test -s conftest.two &&
5111 test -s conftest.dir/conftest.one &&
5112 test -s conftest.dir/conftest.two
5113 then
5114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5115 break 3
5119 done
5120 done
5122 esac
5124 done
5125 IFS=$as_save_IFS
5127 rm -rf conftest.one conftest.two conftest.dir
5130 if test "${ac_cv_path_install+set}" = set; then
5131 INSTALL=$ac_cv_path_install
5132 else
5133 # As a last resort, use the slow shell script. Don't cache a
5134 # value for INSTALL within a source directory, because that will
5135 # break other packages using the cache if that directory is
5136 # removed, or if the value is a relative name.
5137 INSTALL=$ac_install_sh
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5141 $as_echo "$INSTALL" >&6; }
5143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5144 # It thinks the first close brace ends the variable substitution.
5145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5151 if test "x$RANLIB" = x; then
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_RANLIB+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -n "$RANLIB"; then
5161 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5174 done
5175 done
5176 IFS=$as_save_IFS
5180 RANLIB=$ac_cv_prog_RANLIB
5181 if test -n "$RANLIB"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5183 $as_echo "$RANLIB" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5191 if test -z "$ac_cv_prog_RANLIB"; then
5192 ac_ct_RANLIB=$RANLIB
5193 # Extract the first word of "ranlib", so it can be a program name with args.
5194 set dummy ranlib; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 if test -n "$ac_ct_RANLIB"; then
5201 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_prog_ac_ct_RANLIB="ranlib"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5214 done
5215 done
5216 IFS=$as_save_IFS
5220 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5221 if test -n "$ac_ct_RANLIB"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5223 $as_echo "$ac_ct_RANLIB" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5229 if test "x$ac_ct_RANLIB" = x; then
5230 RANLIB=":"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5237 esac
5238 RANLIB=$ac_ct_RANLIB
5240 else
5241 RANLIB="$ac_cv_prog_RANLIB"
5246 ## Although we're running on an amd64 kernel, we're actually compiling for
5247 ## the x86 architecture. The user should probably have provided an
5248 ## explicit --build to `configure', but if everything else than the kernel
5249 ## is running in i386 mode, we can help them out.
5250 if test "$machine" = "amdx86-64"; then
5251 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5252 if test "x$ac_cv_have_decl_i386" = xyes; then :
5256 if test "$ac_cv_have_decl_i386" = "yes"; then
5257 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5258 machine=intel386
5259 machfile="m/${machine}.h"
5263 # Extract the first word of "install-info", so it can be a program name with args.
5264 set dummy install-info; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 case $INSTALL_INFO in
5271 [\\/]* | ?:[\\/]*)
5272 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5288 IFS=$as_save_IFS
5291 esac
5293 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5294 if test -n "$INSTALL_INFO"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5296 $as_echo "$INSTALL_INFO" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 # Extract the first word of "install-info", so it can be a program name with args.
5304 set dummy install-info; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 case $INSTALL_INFO in
5311 [\\/]* | ?:[\\/]*)
5312 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in /usr/sbin
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5326 done
5327 done
5328 IFS=$as_save_IFS
5331 esac
5333 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5334 if test -n "$INSTALL_INFO"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5336 $as_echo "$INSTALL_INFO" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5343 # Extract the first word of "install-info", so it can be a program name with args.
5344 set dummy install-info; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 case $INSTALL_INFO in
5351 [\\/]* | ?:[\\/]*)
5352 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in /sbin
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5366 done
5367 done
5368 IFS=$as_save_IFS
5370 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5372 esac
5374 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5375 if test -n "$INSTALL_INFO"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5377 $as_echo "$INSTALL_INFO" >&6; }
5378 else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5384 # Extract the first word of "gzip", so it can be a program name with args.
5385 set dummy gzip; 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 ${ac_cv_path_GZIP_PROG+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 case $GZIP_PROG in
5392 [\\/]* | ?:[\\/]*)
5393 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
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_GZIP_PROG="$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
5407 done
5408 done
5409 IFS=$as_save_IFS
5412 esac
5414 GZIP_PROG=$ac_cv_path_GZIP_PROG
5415 if test -n "$GZIP_PROG"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5417 $as_echo "$GZIP_PROG" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5426 ## Need makeinfo >= 4.6 (?) to build the manuals.
5427 # Extract the first word of "makeinfo", so it can be a program name with args.
5428 set dummy makeinfo; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_path_MAKEINFO+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 case $MAKEINFO in
5435 [\\/]* | ?:[\\/]*)
5436 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5450 done
5451 done
5452 IFS=$as_save_IFS
5454 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5456 esac
5458 MAKEINFO=$ac_cv_path_MAKEINFO
5459 if test -n "$MAKEINFO"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5461 $as_echo "$MAKEINFO" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5468 if test "$MAKEINFO" != "no" && \
5469 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
5470 MAKEINFO=no
5473 ## Makeinfo is unusual. For a released Emacs, the manuals are
5474 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5475 ## therefore in the category of "special tools" not normally required, which
5476 ## configure does not have to check for (eg autoconf itself).
5477 ## In a Bazaar checkout on the other hand, the manuals are not included.
5478 ## So makeinfo is a requirement to build from Bazaar, and configure
5479 ## should test for it as it does for any other build requirement.
5480 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5481 ## with pre-built manuals, from a Bazaar checkout.
5482 HAVE_MAKEINFO=yes
5484 if test "$MAKEINFO" = "no"; then
5485 MAKEINFO=makeinfo
5486 if test "x${with_makeinfo}" = "xno"; then
5487 HAVE_MAKEINFO=no
5488 elif test ! -e $srcdir/info/emacs; then
5489 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5490 source tree does not seem to have pre-built manuals in the \`info' directory.
5491 Either install a suitable version of makeinfo, or re-run configure
5492 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5498 if test x$GCC = xyes; then
5499 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5500 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5501 else
5502 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5503 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5507 late_LDFLAGS=$LDFLAGS
5508 if test x$GCC = xyes; then
5509 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5510 else
5511 LDFLAGS="$LDFLAGS -znocombreloc"
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5515 $as_echo_n "checking for -znocombreloc... " >&6; }
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5520 main ()
5524 return 0;
5526 _ACEOF
5527 if ac_fn_c_try_link "$LINENO"; then :
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529 $as_echo "yes" >&6; }
5530 else
5531 LDFLAGS=$late_LDFLAGS
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5535 rm -f core conftest.err conftest.$ac_objext \
5536 conftest$ac_exeext conftest.$ac_ext
5539 # The value of CPP is a quoted variable reference, so we need to do this
5540 # to get its actual value...
5541 CPP=`eval "echo $CPP"`
5544 CANNOT_DUMP=no
5545 case "$opsys" in
5546 your-opsys-here)
5547 CANNOT_DUMP=yes
5549 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5552 esac
5556 UNEXEC_OBJ=unexelf.o
5557 case "$opsys" in
5558 # MSDOS uses unexcoff.o
5559 # MSWindows uses unexw32.o
5560 aix4-2)
5561 UNEXEC_OBJ=unexaix.o
5563 cygwin)
5564 UNEXEC_OBJ=unexcw.o
5566 darwin)
5567 UNEXEC_OBJ=unexmacosx.o
5569 hpux10-20 | hpux11)
5570 UNEXEC_OBJ=unexhp9k800.o
5572 sol2-10)
5573 # Use the Solaris dldump() function, called from unexsol.c, to dump
5574 # emacs, instead of the generic ELF dump code found in unexelf.c.
5575 # The resulting binary has a complete symbol table, and is better
5576 # for debugging and other observability tools (debuggers, pstack, etc).
5578 # If you encounter a problem using dldump(), please consider sending
5579 # a message to the OpenSolaris tools-linking mailing list:
5580 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5582 # It is likely that dldump() works with older Solaris too, but this has
5583 # not been tested, so for now this change is for Solaris 10 or newer.
5584 UNEXEC_OBJ=unexsol.o
5586 esac
5588 LD_SWITCH_SYSTEM=
5589 case "$opsys" in
5590 freebsd)
5591 ## Let `ld' find image libs and similar things in /usr/local/lib.
5592 ## The system compiler, GCC, has apparently been modified to not
5593 ## look there, contrary to what a stock GCC would do.
5594 LD_SWITCH_SYSTEM=-L/usr/local/lib
5597 gnu-linux)
5598 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5599 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
5602 netbsd)
5603 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5606 openbsd)
5607 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5608 ## otherwise Emacs dumps core on elf systems.
5609 LD_SWITCH_SYSTEM="-Z"
5611 esac
5614 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5616 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5617 ## which has not been defined yet. When this was handled with cpp,
5618 ## it was expanded to null when configure sourced the s/*.h file.
5619 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5620 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5621 ## (or somesuch), but because it is supposed to go at the _front_
5622 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5623 ## Compare with the gnu-linux case below, which added to the end
5624 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5625 ## LD_SWITCH_SYSTEM_TEMACS.
5626 case "$opsys" in
5627 netbsd|openbsd)
5628 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5629 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5630 esac
5633 C_SWITCH_MACHINE=
5634 if test "$machine" = "alpha"; then
5635 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5636 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
5640 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5641 ## With ELF, make sure that all common symbols get allocated to in the
5642 ## data section. Otherwise, the dump of temacs may miss variables in
5643 ## the shared library that have been initialized. For example, with
5644 ## GNU libc, __malloc_initialized would normally be resolved to the
5645 ## shared library's .bss section, which is fatal.
5646 if test "x$GCC" = "xyes"; then
5647 C_SWITCH_MACHINE="-fno-common"
5648 else
5649 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5651 else
5652 UNEXEC_OBJ=unexalpha.o
5659 C_SWITCH_SYSTEM=
5660 ## Some programs in src produce warnings saying certain subprograms
5661 ## are too complex and need a MAXMEM value greater than 2000 for
5662 ## additional optimization. --nils@exp-math.uni-essen.de
5663 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5664 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5665 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5666 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5670 LIBS_SYSTEM=
5671 case "$opsys" in
5672 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5673 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5675 freebsd) LIBS_SYSTEM="-lutil" ;;
5677 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5679 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5681 ## Motif needs -lgen.
5682 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5683 esac
5687 ### Make sure subsequent tests use flags consistent with the build flags.
5689 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5690 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5691 else
5692 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5697 # Check whether --enable-largefile was given.
5698 if test "${enable_largefile+set}" = set; then :
5699 enableval=$enable_largefile;
5702 if test "$enable_largefile" != no; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5705 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5706 if ${ac_cv_sys_largefile_CC+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 ac_cv_sys_largefile_CC=no
5710 if test "$GCC" != yes; then
5711 ac_save_CC=$CC
5712 while :; do
5713 # IRIX 6.2 and later do not support large files by default,
5714 # so use the C compiler's -n32 option if that helps.
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <sys/types.h>
5718 /* Check that off_t can represent 2**63 - 1 correctly.
5719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5720 since some C++ compilers masquerading as C compilers
5721 incorrectly reject 9223372036854775807. */
5722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5724 && LARGE_OFF_T % 2147483647 == 1)
5725 ? 1 : -1];
5727 main ()
5731 return 0;
5733 _ACEOF
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735 break
5737 rm -f core conftest.err conftest.$ac_objext
5738 CC="$CC -n32"
5739 if ac_fn_c_try_compile "$LINENO"; then :
5740 ac_cv_sys_largefile_CC=' -n32'; break
5742 rm -f core conftest.err conftest.$ac_objext
5743 break
5744 done
5745 CC=$ac_save_CC
5746 rm -f conftest.$ac_ext
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5750 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5751 if test "$ac_cv_sys_largefile_CC" != no; then
5752 CC=$CC$ac_cv_sys_largefile_CC
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5756 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5757 if ${ac_cv_sys_file_offset_bits+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 while :; do
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <sys/types.h>
5764 /* Check that off_t can represent 2**63 - 1 correctly.
5765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5766 since some C++ compilers masquerading as C compilers
5767 incorrectly reject 9223372036854775807. */
5768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5770 && LARGE_OFF_T % 2147483647 == 1)
5771 ? 1 : -1];
5773 main ()
5777 return 0;
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 ac_cv_sys_file_offset_bits=no; break
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #define _FILE_OFFSET_BITS 64
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5795 ? 1 : -1];
5797 main ()
5801 return 0;
5803 _ACEOF
5804 if ac_fn_c_try_compile "$LINENO"; then :
5805 ac_cv_sys_file_offset_bits=64; break
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 ac_cv_sys_file_offset_bits=unknown
5809 break
5810 done
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5813 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5814 case $ac_cv_sys_file_offset_bits in #(
5815 no | unknown) ;;
5817 cat >>confdefs.h <<_ACEOF
5818 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5819 _ACEOF
5821 esac
5822 rm -rf conftest*
5823 if test $ac_cv_sys_file_offset_bits = unknown; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5825 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5826 if ${ac_cv_sys_large_files+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 while :; do
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5833 /* Check that off_t can represent 2**63 - 1 correctly.
5834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5835 since some C++ compilers masquerading as C compilers
5836 incorrectly reject 9223372036854775807. */
5837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5839 && LARGE_OFF_T % 2147483647 == 1)
5840 ? 1 : -1];
5842 main ()
5846 return 0;
5848 _ACEOF
5849 if ac_fn_c_try_compile "$LINENO"; then :
5850 ac_cv_sys_large_files=no; break
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 #define _LARGE_FILES 1
5856 #include <sys/types.h>
5857 /* Check that off_t can represent 2**63 - 1 correctly.
5858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5859 since some C++ compilers masquerading as C compilers
5860 incorrectly reject 9223372036854775807. */
5861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5863 && LARGE_OFF_T % 2147483647 == 1)
5864 ? 1 : -1];
5866 main ()
5870 return 0;
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874 ac_cv_sys_large_files=1; break
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 ac_cv_sys_large_files=unknown
5878 break
5879 done
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5882 $as_echo "$ac_cv_sys_large_files" >&6; }
5883 case $ac_cv_sys_large_files in #(
5884 no | unknown) ;;
5886 cat >>confdefs.h <<_ACEOF
5887 #define _LARGE_FILES $ac_cv_sys_large_files
5888 _ACEOF
5890 esac
5891 rm -rf conftest*
5897 ## If user specified a crt-dir, use that unconditionally.
5898 if test "X$CRT_DIR" = "X"; then
5900 case "$canonical" in
5901 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5902 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5903 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5904 ## For anything else (eg /usr/lib32), it is up the user to specify
5905 ## the location (bug#5655).
5906 ## Test for crtn.o, not just the directory, because sometimes the
5907 ## directory exists but does not have the relevant files (bug#1287).
5908 ## FIXME better to test for binary compatibility somehow.
5909 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5912 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5913 esac
5915 case "$opsys" in
5916 hpux10-20) CRT_DIR=/lib ;;
5917 esac
5919 ## Default is /usr/lib.
5920 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5922 else
5924 ## Some platforms don't use any of these files, so it is not
5925 ## appropriate to put this test outside the if block.
5926 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5927 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5933 LIB_MATH=-lm
5934 LIB_STANDARD=
5935 START_FILES=
5937 case $opsys in
5938 cygwin )
5939 LIB_MATH=
5940 START_FILES='pre-crt0.o'
5942 darwin )
5943 ## Adding -lm confuses the dynamic linker, so omit it.
5944 LIB_MATH=
5945 START_FILES='pre-crt0.o'
5947 freebsd )
5948 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5949 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5951 gnu-linux | gnu-kfreebsd )
5952 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5953 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5955 hpux10-20 | hpux11 )
5956 LIB_STANDARD=-lc
5957 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5959 netbsd | openbsd )
5960 if test -f $CRT_DIR/crti.o; then
5961 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5962 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5963 else
5964 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5965 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5968 esac
5976 if test "${with_sound}" != "no"; then
5977 # Sound support for GNU/Linux and the free BSDs.
5978 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5979 do :
5980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5981 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5983 cat >>confdefs.h <<_ACEOF
5984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5985 _ACEOF
5986 have_sound_header=yes
5989 done
5991 # Emulation library used on NetBSD.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5993 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5994 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 ac_check_lib_save_LIBS=$LIBS
5998 LIBS="-lossaudio $LIBS"
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6002 /* Override any GCC internal prototype to avoid an error.
6003 Use char because int might match the return type of a GCC
6004 builtin and then its argument prototype would still apply. */
6005 #ifdef __cplusplus
6006 extern "C"
6007 #endif
6008 char _oss_ioctl ();
6010 main ()
6012 return _oss_ioctl ();
6014 return 0;
6016 _ACEOF
6017 if ac_fn_c_try_link "$LINENO"; then :
6018 ac_cv_lib_ossaudio__oss_ioctl=yes
6019 else
6020 ac_cv_lib_ossaudio__oss_ioctl=no
6022 rm -f core conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6024 LIBS=$ac_check_lib_save_LIBS
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6027 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6028 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6029 LIBSOUND=-lossaudio
6030 else
6031 LIBSOUND=
6036 ALSA_REQUIRED=1.0.0
6037 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6039 succeeded=no
6041 # Extract the first word of "pkg-config", so it can be a program name with args.
6042 set dummy pkg-config; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 case $PKG_CONFIG in
6049 [\\/]* | ?:[\\/]*)
6050 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6064 done
6065 done
6066 IFS=$as_save_IFS
6068 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6070 esac
6072 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6073 if test -n "$PKG_CONFIG"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6075 $as_echo "$PKG_CONFIG" >&6; }
6076 else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6083 if test "$PKG_CONFIG" = "no" ; then
6084 HAVE_ALSA=no
6085 else
6086 PKG_CONFIG_MIN_VERSION=0.9.0
6087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6089 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6091 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6093 $as_echo "yes" >&6; }
6094 succeeded=yes
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6097 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6098 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6100 $as_echo "$ALSA_CFLAGS" >&6; }
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6103 $as_echo_n "checking ALSA_LIBS... " >&6; }
6104 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6106 $as_echo "$ALSA_LIBS" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 ALSA_CFLAGS=""
6111 ALSA_LIBS=""
6112 ## If we have a custom action on failure, don't print errors, but
6113 ## do set a variable so people can do so.
6114 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6120 else
6121 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6122 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6126 if test $succeeded = yes; then
6127 HAVE_ALSA=yes
6128 else
6129 HAVE_ALSA=no
6132 if test $HAVE_ALSA = yes; then
6133 SAVE_CFLAGS="$CFLAGS"
6134 SAVE_LDFLAGS="$LDFLAGS"
6135 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6136 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 #include <asoundlib.h>
6141 main ()
6143 snd_lib_error_set_handler (0);
6145 return 0;
6147 _ACEOF
6148 if ac_fn_c_try_compile "$LINENO"; then :
6149 emacs_alsa_normal=yes
6150 else
6151 emacs_alsa_normal=no
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 if test "$emacs_alsa_normal" != yes; then
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 #include <alsa/asoundlib.h>
6159 main ()
6161 snd_lib_error_set_handler (0);
6163 return 0;
6165 _ACEOF
6166 if ac_fn_c_try_compile "$LINENO"; then :
6167 emacs_alsa_subdir=yes
6168 else
6169 emacs_alsa_subdir=no
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 if test "$emacs_alsa_subdir" != yes; then
6173 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6175 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6178 CFLAGS="$SAVE_CFLAGS"
6179 LDFLAGS="$SAVE_LDFLAGS"
6180 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6181 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6183 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6187 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6188 case "$opsys" in
6189 gnu-linux|freebsd|netbsd)
6191 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6194 esac
6200 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
6201 linux/version.h sys/systeminfo.h limits.h \
6202 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
6203 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6204 sys/utsname.h pwd.h utmp.h dirent.h util.h
6205 do :
6206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6207 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6209 cat >>confdefs.h <<_ACEOF
6210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6211 _ACEOF
6215 done
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6219 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #include <sys/personality.h>
6224 main ()
6226 personality (PER_LINUX32)
6228 return 0;
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"; then :
6232 emacs_cv_personality_linux32=yes
6233 else
6234 emacs_cv_personality_linux32=no
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6238 $as_echo "$emacs_cv_personality_linux32" >&6; }
6240 if test $emacs_cv_personality_linux32 = yes; then
6242 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6246 for ac_header in term.h
6247 do :
6248 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6249 if test "x$ac_cv_header_term_h" = xyes; then :
6250 cat >>confdefs.h <<_ACEOF
6251 #define HAVE_TERM_H 1
6252 _ACEOF
6256 done
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6259 $as_echo_n "checking for ANSI C header files... " >&6; }
6260 if ${ac_cv_header_stdc+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 #include <stdlib.h>
6266 #include <stdarg.h>
6267 #include <string.h>
6268 #include <float.h>
6271 main ()
6275 return 0;
6277 _ACEOF
6278 if ac_fn_c_try_compile "$LINENO"; then :
6279 ac_cv_header_stdc=yes
6280 else
6281 ac_cv_header_stdc=no
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 if test $ac_cv_header_stdc = yes; then
6286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #include <string.h>
6291 _ACEOF
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293 $EGREP "memchr" >/dev/null 2>&1; then :
6295 else
6296 ac_cv_header_stdc=no
6298 rm -f conftest*
6302 if test $ac_cv_header_stdc = yes; then
6303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <stdlib.h>
6308 _ACEOF
6309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 $EGREP "free" >/dev/null 2>&1; then :
6312 else
6313 ac_cv_header_stdc=no
6315 rm -f conftest*
6319 if test $ac_cv_header_stdc = yes; then
6320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6321 if test "$cross_compiling" = yes; then :
6323 else
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 #include <ctype.h>
6327 #include <stdlib.h>
6328 #if ((' ' & 0x0FF) == 0x020)
6329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6331 #else
6332 # define ISLOWER(c) \
6333 (('a' <= (c) && (c) <= 'i') \
6334 || ('j' <= (c) && (c) <= 'r') \
6335 || ('s' <= (c) && (c) <= 'z'))
6336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6337 #endif
6339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6341 main ()
6343 int i;
6344 for (i = 0; i < 256; i++)
6345 if (XOR (islower (i), ISLOWER (i))
6346 || toupper (i) != TOUPPER (i))
6347 return 2;
6348 return 0;
6350 _ACEOF
6351 if ac_fn_c_try_run "$LINENO"; then :
6353 else
6354 ac_cv_header_stdc=no
6356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6357 conftest.$ac_objext conftest.beam conftest.$ac_ext
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6363 $as_echo "$ac_cv_header_stdc" >&6; }
6364 if test $ac_cv_header_stdc = yes; then
6366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6371 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6372 if ${ac_cv_header_time+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377 #include <sys/types.h>
6378 #include <sys/time.h>
6379 #include <time.h>
6382 main ()
6384 if ((struct tm *) 0)
6385 return 0;
6387 return 0;
6389 _ACEOF
6390 if ac_fn_c_try_compile "$LINENO"; then :
6391 ac_cv_header_time=yes
6392 else
6393 ac_cv_header_time=no
6395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6398 $as_echo "$ac_cv_header_time" >&6; }
6399 if test $ac_cv_header_time = yes; then
6401 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6405 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6406 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
6407 ac_have_decl=1
6408 else
6409 ac_have_decl=0
6412 cat >>confdefs.h <<_ACEOF
6413 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6414 _ACEOF
6416 if test $ac_cv_have_decl_sys_siglist != yes; then
6417 # For Tru64, at least:
6418 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6419 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
6420 ac_have_decl=1
6421 else
6422 ac_have_decl=0
6425 cat >>confdefs.h <<_ACEOF
6426 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6427 _ACEOF
6429 if test $ac_cv_have_decl___sys_siglist = yes; then
6431 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6436 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6437 if ${ac_cv_header_sys_wait_h+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <sys/types.h>
6443 #include <sys/wait.h>
6444 #ifndef WEXITSTATUS
6445 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6446 #endif
6447 #ifndef WIFEXITED
6448 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6449 #endif
6452 main ()
6454 int s;
6455 wait (&s);
6456 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6458 return 0;
6460 _ACEOF
6461 if ac_fn_c_try_compile "$LINENO"; then :
6462 ac_cv_header_sys_wait_h=yes
6463 else
6464 ac_cv_header_sys_wait_h=no
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6469 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6470 if test $ac_cv_header_sys_wait_h = yes; then
6472 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6478 $as_echo_n "checking for struct utimbuf... " >&6; }
6479 if ${emacs_cv_struct_utimbuf+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484 #ifdef TIME_WITH_SYS_TIME
6485 #include <sys/time.h>
6486 #include <time.h>
6487 #else
6488 #ifdef HAVE_SYS_TIME_H
6489 #include <sys/time.h>
6490 #else
6491 #include <time.h>
6492 #endif
6493 #endif
6494 #ifdef HAVE_UTIME_H
6495 #include <utime.h>
6496 #endif
6498 main ()
6500 static struct utimbuf x; x.actime = x.modtime;
6502 return 0;
6504 _ACEOF
6505 if ac_fn_c_try_compile "$LINENO"; then :
6506 emacs_cv_struct_utimbuf=yes
6507 else
6508 emacs_cv_struct_utimbuf=no
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6513 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6514 if test $emacs_cv_struct_utimbuf = yes; then
6516 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6521 $as_echo_n "checking return type of signal handlers... " >&6; }
6522 if ${ac_cv_type_signal+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 #include <sys/types.h>
6528 #include <signal.h>
6531 main ()
6533 return *(signal (0, 0)) (0) == 1;
6535 return 0;
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 ac_cv_type_signal=int
6540 else
6541 ac_cv_type_signal=void
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6546 $as_echo "$ac_cv_type_signal" >&6; }
6548 cat >>confdefs.h <<_ACEOF
6549 #define RETSIGTYPE $ac_cv_type_signal
6550 _ACEOF
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6555 $as_echo_n "checking for speed_t... " >&6; }
6556 if ${emacs_cv_speed_t+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 #include <termios.h>
6563 main ()
6565 speed_t x = 1;
6567 return 0;
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 emacs_cv_speed_t=yes
6572 else
6573 emacs_cv_speed_t=no
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6578 $as_echo "$emacs_cv_speed_t" >&6; }
6579 if test $emacs_cv_speed_t = yes; then
6581 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6586 $as_echo_n "checking for struct timeval... " >&6; }
6587 if ${emacs_cv_struct_timeval+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #ifdef TIME_WITH_SYS_TIME
6593 #include <sys/time.h>
6594 #include <time.h>
6595 #else
6596 #ifdef HAVE_SYS_TIME_H
6597 #include <sys/time.h>
6598 #else
6599 #include <time.h>
6600 #endif
6601 #endif
6603 main ()
6605 static struct timeval x; x.tv_sec = x.tv_usec;
6607 return 0;
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 emacs_cv_struct_timeval=yes
6612 else
6613 emacs_cv_struct_timeval=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6618 $as_echo "$emacs_cv_struct_timeval" >&6; }
6619 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6620 if test $emacs_cv_struct_timeval = yes; then
6622 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6627 $as_echo_n "checking for struct exception... " >&6; }
6628 if ${emacs_cv_struct_exception+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 #include <math.h>
6635 main ()
6637 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6639 return 0;
6641 _ACEOF
6642 if ac_fn_c_try_compile "$LINENO"; then :
6643 emacs_cv_struct_exception=yes
6644 else
6645 emacs_cv_struct_exception=no
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6650 $as_echo "$emacs_cv_struct_exception" >&6; }
6651 HAVE_EXCEPTION=$emacs_cv_struct_exception
6652 if test $emacs_cv_struct_exception != yes; then
6654 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6658 for ac_header in sys/socket.h
6659 do :
6660 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6661 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
6662 cat >>confdefs.h <<_ACEOF
6663 #define HAVE_SYS_SOCKET_H 1
6664 _ACEOF
6668 done
6670 for ac_header in net/if.h
6671 do :
6672 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6673 #if HAVE_SYS_SOCKET_H
6674 #include <sys/socket.h>
6675 #endif
6677 if test "x$ac_cv_header_net_if_h" = xyes; then :
6678 cat >>confdefs.h <<_ACEOF
6679 #define HAVE_NET_IF_H 1
6680 _ACEOF
6684 done
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6688 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6689 if ${ac_cv_struct_tm+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <sys/types.h>
6695 #include <time.h>
6698 main ()
6700 struct tm tm;
6701 int *p = &tm.tm_sec;
6702 return !p;
6704 return 0;
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_struct_tm=time.h
6709 else
6710 ac_cv_struct_tm=sys/time.h
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6715 $as_echo "$ac_cv_struct_tm" >&6; }
6716 if test $ac_cv_struct_tm = sys/time.h; then
6718 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6722 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6723 #include <$ac_cv_struct_tm>
6726 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6728 cat >>confdefs.h <<_ACEOF
6729 #define HAVE_STRUCT_TM_TM_ZONE 1
6730 _ACEOF
6735 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6737 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6739 else
6740 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6742 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6743 ac_have_decl=1
6744 else
6745 ac_have_decl=0
6748 cat >>confdefs.h <<_ACEOF
6749 #define HAVE_DECL_TZNAME $ac_have_decl
6750 _ACEOF
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6753 $as_echo_n "checking for tzname... " >&6; }
6754 if ${ac_cv_var_tzname+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759 #include <time.h>
6760 #if !HAVE_DECL_TZNAME
6761 extern char *tzname[];
6762 #endif
6765 main ()
6767 return tzname[0][0];
6769 return 0;
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773 ac_cv_var_tzname=yes
6774 else
6775 ac_cv_var_tzname=no
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6781 $as_echo "$ac_cv_var_tzname" >&6; }
6782 if test $ac_cv_var_tzname = yes; then
6784 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6789 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6791 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6793 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6797 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6798 #if HAVE_SYS_SOCKET_H
6799 #include <sys/socket.h>
6800 #endif
6801 #if HAVE_NET_IF_H
6802 #include <net/if.h>
6803 #endif
6805 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
6807 cat >>confdefs.h <<_ACEOF
6808 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6809 _ACEOF
6813 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6814 #if HAVE_SYS_SOCKET_H
6815 #include <sys/socket.h>
6816 #endif
6817 #if HAVE_NET_IF_H
6818 #include <net/if.h>
6819 #endif
6821 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6825 _ACEOF
6829 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6830 #if HAVE_SYS_SOCKET_H
6831 #include <sys/socket.h>
6832 #endif
6833 #if HAVE_NET_IF_H
6834 #include <net/if.h>
6835 #endif
6837 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
6839 cat >>confdefs.h <<_ACEOF
6840 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6841 _ACEOF
6845 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6846 #if HAVE_SYS_SOCKET_H
6847 #include <sys/socket.h>
6848 #endif
6849 #if HAVE_NET_IF_H
6850 #include <net/if.h>
6851 #endif
6853 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
6855 cat >>confdefs.h <<_ACEOF
6856 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6857 _ACEOF
6861 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6862 #if HAVE_SYS_SOCKET_H
6863 #include <sys/socket.h>
6864 #endif
6865 #if HAVE_NET_IF_H
6866 #include <net/if.h>
6867 #endif
6869 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6873 _ACEOF
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6881 $as_echo_n "checking for function prototypes... " >&6; }
6882 if test "$ac_cv_prog_cc_c89" != no; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6886 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6889 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6891 else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6897 $as_echo_n "checking for working volatile... " >&6; }
6898 if ${ac_cv_c_volatile+:} false; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6905 main ()
6908 volatile int x;
6909 int * volatile y = (int *) 0;
6910 return !x && !y;
6912 return 0;
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 ac_cv_c_volatile=yes
6917 else
6918 ac_cv_c_volatile=no
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6923 $as_echo "$ac_cv_c_volatile" >&6; }
6924 if test $ac_cv_c_volatile = no; then
6926 $as_echo "#define volatile /**/" >>confdefs.h
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6931 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6932 if ${ac_cv_c_const+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6939 main ()
6941 /* FIXME: Include the comments suggested by Paul. */
6942 #ifndef __cplusplus
6943 /* Ultrix mips cc rejects this. */
6944 typedef int charset[2];
6945 const charset cs;
6946 /* SunOS 4.1.1 cc rejects this. */
6947 char const *const *pcpcc;
6948 char **ppc;
6949 /* NEC SVR4.0.2 mips cc rejects this. */
6950 struct point {int x, y;};
6951 static struct point const zero = {0,0};
6952 /* AIX XL C 1.02.0.0 rejects this.
6953 It does not let you subtract one const X* pointer from another in
6954 an arm of an if-expression whose if-part is not a constant
6955 expression */
6956 const char *g = "string";
6957 pcpcc = &g + (g ? g-g : 0);
6958 /* HPUX 7.0 cc rejects these. */
6959 ++pcpcc;
6960 ppc = (char**) pcpcc;
6961 pcpcc = (char const *const *) ppc;
6962 { /* SCO 3.2v4 cc rejects this. */
6963 char *t;
6964 char const *s = 0 ? (char *) 0 : (char const *) 0;
6966 *t++ = 0;
6967 if (s) return 0;
6969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6970 int x[] = {25, 17};
6971 const int *foo = &x[0];
6972 ++foo;
6974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6975 typedef const int *iptr;
6976 iptr p = 0;
6977 ++p;
6979 { /* AIX XL C 1.02.0.0 rejects this saying
6980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6981 struct s { int j; const int *ap[3]; };
6982 struct s *b; b->j = 5;
6984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6985 const int foo = 10;
6986 if (!foo) return 0;
6988 return !cs[0] && !zero.x;
6989 #endif
6992 return 0;
6994 _ACEOF
6995 if ac_fn_c_try_compile "$LINENO"; then :
6996 ac_cv_c_const=yes
6997 else
6998 ac_cv_c_const=no
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7003 $as_echo "$ac_cv_c_const" >&6; }
7004 if test $ac_cv_c_const = no; then
7006 $as_echo "#define const /**/" >>confdefs.h
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7011 $as_echo_n "checking for void * support... " >&6; }
7012 if ${emacs_cv_void_star+:} false; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7019 main ()
7021 void * foo;
7023 return 0;
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"; then :
7027 emacs_cv_void_star=yes
7028 else
7029 emacs_cv_void_star=no
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7034 $as_echo "$emacs_cv_void_star" >&6; }
7035 if test $emacs_cv_void_star = yes; then
7036 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7038 else
7039 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7044 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7045 if ${ac_cv_c_bigendian+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 ac_cv_c_bigendian=unknown
7049 # See if we're dealing with a universal compiler.
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #ifndef __APPLE_CC__
7053 not a universal capable compiler
7054 #endif
7055 typedef int dummy;
7057 _ACEOF
7058 if ac_fn_c_try_compile "$LINENO"; then :
7060 # Check for potential -arch flags. It is not universal unless
7061 # there are at least two -arch flags with different values.
7062 ac_arch=
7063 ac_prev=
7064 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7065 if test -n "$ac_prev"; then
7066 case $ac_word in
7067 i?86 | x86_64 | ppc | ppc64)
7068 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7069 ac_arch=$ac_word
7070 else
7071 ac_cv_c_bigendian=universal
7072 break
7075 esac
7076 ac_prev=
7077 elif test "x$ac_word" = "x-arch"; then
7078 ac_prev=arch
7080 done
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 if test $ac_cv_c_bigendian = unknown; then
7084 # See if sys/param.h defines the BYTE_ORDER macro.
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 #include <sys/types.h>
7088 #include <sys/param.h>
7091 main ()
7093 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7094 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7095 && LITTLE_ENDIAN)
7096 bogus endian macros
7097 #endif
7100 return 0;
7102 _ACEOF
7103 if ac_fn_c_try_compile "$LINENO"; then :
7104 # It does; now see whether it defined to BIG_ENDIAN or not.
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7108 #include <sys/param.h>
7111 main ()
7113 #if BYTE_ORDER != BIG_ENDIAN
7114 not big endian
7115 #endif
7118 return 0;
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122 ac_cv_c_bigendian=yes
7123 else
7124 ac_cv_c_bigendian=no
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 if test $ac_cv_c_bigendian = unknown; then
7131 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <limits.h>
7137 main ()
7139 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7140 bogus endian macros
7141 #endif
7144 return 0;
7146 _ACEOF
7147 if ac_fn_c_try_compile "$LINENO"; then :
7148 # It does; now see whether it defined to _BIG_ENDIAN or not.
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 #include <limits.h>
7154 main ()
7156 #ifndef _BIG_ENDIAN
7157 not big endian
7158 #endif
7161 return 0;
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165 ac_cv_c_bigendian=yes
7166 else
7167 ac_cv_c_bigendian=no
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 if test $ac_cv_c_bigendian = unknown; then
7174 # Compile a test program.
7175 if test "$cross_compiling" = yes; then :
7176 # Try to guess by grepping values from an object file.
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 short int ascii_mm[] =
7180 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7181 short int ascii_ii[] =
7182 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7183 int use_ascii (int i) {
7184 return ascii_mm[i] + ascii_ii[i];
7186 short int ebcdic_ii[] =
7187 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7188 short int ebcdic_mm[] =
7189 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7190 int use_ebcdic (int i) {
7191 return ebcdic_mm[i] + ebcdic_ii[i];
7193 extern int foo;
7196 main ()
7198 return use_ascii (foo) == use_ebcdic (foo);
7200 return 0;
7202 _ACEOF
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7205 ac_cv_c_bigendian=yes
7207 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7208 if test "$ac_cv_c_bigendian" = unknown; then
7209 ac_cv_c_bigendian=no
7210 else
7211 # finding both strings is unlikely to happen, but who knows?
7212 ac_cv_c_bigendian=unknown
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 else
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 $ac_includes_default
7222 main ()
7225 /* Are we little or big endian? From Harbison&Steele. */
7226 union
7228 long int l;
7229 char c[sizeof (long int)];
7230 } u;
7231 u.l = 1;
7232 return u.c[sizeof (long int) - 1] == 1;
7235 return 0;
7237 _ACEOF
7238 if ac_fn_c_try_run "$LINENO"; then :
7239 ac_cv_c_bigendian=no
7240 else
7241 ac_cv_c_bigendian=yes
7243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7244 conftest.$ac_objext conftest.beam conftest.$ac_ext
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7250 $as_echo "$ac_cv_c_bigendian" >&6; }
7251 case $ac_cv_c_bigendian in #(
7252 yes)
7253 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7254 ;; #(
7256 ;; #(
7257 universal)
7259 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7261 ;; #(
7263 as_fn_error $? "unknown endianness
7264 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7265 esac
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7270 set x ${MAKE-make}
7271 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7272 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 cat >conftest.make <<\_ACEOF
7276 SHELL = /bin/sh
7277 all:
7278 @echo '@@@%%%=$(MAKE)=@@@%%%'
7279 _ACEOF
7280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7282 *@@@%%%=?*=@@@%%%*)
7283 eval ac_cv_prog_make_${ac_make}_set=yes;;
7285 eval ac_cv_prog_make_${ac_make}_set=no;;
7286 esac
7287 rm -f conftest.make
7289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7291 $as_echo "yes" >&6; }
7292 SET_MAKE=
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 SET_MAKE="MAKE=${MAKE-make}"
7300 DEPFLAGS=
7301 MKDEPDIR=":"
7302 deps_frag=deps.mk
7303 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7305 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7306 HAVE_GNU_MAKE=no
7307 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7308 if test "x$testval" != x; then
7309 HAVE_GNU_MAKE=yes
7310 else
7311 ac_enable_autodepend=no
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7314 $as_echo "$HAVE_GNU_MAKE" >&6; }
7315 if test $HAVE_GNU_MAKE = yes; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7317 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7318 SAVE_CFLAGS="$CFLAGS"
7319 CFLAGS="$CFLAGS -MMD -MF deps.d"
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7324 main ()
7328 return 0;
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7333 else
7334 ac_enable_autodepend=no
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 CFLAGS="$SAVE_CFLAGS"
7338 test -f deps.d || ac_enable_autodepend=no
7339 rm -rf deps.d
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7341 $as_echo "$ac_enable_autodepend" >&6; }
7343 if test $ac_enable_autodepend = yes; then
7344 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7345 ## In parallel builds, another make might create depdir between
7346 ## the first test and mkdir, so stick another test on the end.
7347 ## Or use mkinstalldirs? mkdir -p is not portable.
7348 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7349 deps_frag=autodeps.mk
7352 deps_frag=$srcdir/src/$deps_frag
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7359 $as_echo_n "checking for long file names... " >&6; }
7360 if ${ac_cv_sys_long_file_names+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 ac_cv_sys_long_file_names=yes
7364 # Test for long file names in all the places we know might matter:
7365 # . the current directory, where building will happen
7366 # $prefix/lib where we will be installing things
7367 # $exec_prefix/lib likewise
7368 # $TMPDIR if set, where it might want to write temporary files
7369 # /tmp where it might want to write temporary files
7370 # /var/tmp likewise
7371 # /usr/tmp likewise
7372 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7373 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7374 # in the usual case where exec_prefix is '${prefix}'.
7375 case $ac_dir in #(
7376 . | /* | ?:[\\/]*) ;; #(
7377 *) continue;;
7378 esac
7379 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7380 ac_xdir=$ac_dir/cf$$
7381 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7382 ac_tf1=$ac_xdir/conftest9012345
7383 ac_tf2=$ac_xdir/conftest9012346
7384 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7385 ac_cv_sys_long_file_names=no
7386 rm -f -r "$ac_xdir" 2>/dev/null
7387 test $ac_cv_sys_long_file_names = no && break
7388 done
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7391 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7392 if test $ac_cv_sys_long_file_names = yes; then
7394 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7399 #### Choose a window system.
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7402 $as_echo_n "checking for X... " >&6; }
7405 # Check whether --with-x was given.
7406 if test "${with_x+set}" = set; then :
7407 withval=$with_x;
7410 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7411 if test "x$with_x" = xno; then
7412 # The user explicitly disabled X.
7413 have_x=disabled
7414 else
7415 case $x_includes,$x_libraries in #(
7416 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7417 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 # One or both of the vars are not set, and there is no cached value.
7421 ac_x_includes=no ac_x_libraries=no
7422 rm -f -r conftest.dir
7423 if mkdir conftest.dir; then
7424 cd conftest.dir
7425 cat >Imakefile <<'_ACEOF'
7426 incroot:
7427 @echo incroot='${INCROOT}'
7428 usrlibdir:
7429 @echo usrlibdir='${USRLIBDIR}'
7430 libdir:
7431 @echo libdir='${LIBDIR}'
7432 _ACEOF
7433 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7434 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7435 for ac_var in incroot usrlibdir libdir; do
7436 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7437 done
7438 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7439 for ac_extension in a so sl dylib la dll; do
7440 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7441 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7442 ac_im_usrlibdir=$ac_im_libdir; break
7444 done
7445 # Screen out bogus values from the imake configuration. They are
7446 # bogus both because they are the default anyway, and because
7447 # using them would break gcc on systems where it needs fixed includes.
7448 case $ac_im_incroot in
7449 /usr/include) ac_x_includes= ;;
7450 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7451 esac
7452 case $ac_im_usrlibdir in
7453 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7454 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7455 esac
7457 cd ..
7458 rm -f -r conftest.dir
7461 # Standard set of common directories for X headers.
7462 # Check X11 before X11Rn because it is often a symlink to the current release.
7463 ac_x_header_dirs='
7464 /usr/X11/include
7465 /usr/X11R7/include
7466 /usr/X11R6/include
7467 /usr/X11R5/include
7468 /usr/X11R4/include
7470 /usr/include/X11
7471 /usr/include/X11R7
7472 /usr/include/X11R6
7473 /usr/include/X11R5
7474 /usr/include/X11R4
7476 /usr/local/X11/include
7477 /usr/local/X11R7/include
7478 /usr/local/X11R6/include
7479 /usr/local/X11R5/include
7480 /usr/local/X11R4/include
7482 /usr/local/include/X11
7483 /usr/local/include/X11R7
7484 /usr/local/include/X11R6
7485 /usr/local/include/X11R5
7486 /usr/local/include/X11R4
7488 /usr/X386/include
7489 /usr/x386/include
7490 /usr/XFree86/include/X11
7492 /usr/include
7493 /usr/local/include
7494 /usr/unsupported/include
7495 /usr/athena/include
7496 /usr/local/x11r5/include
7497 /usr/lpp/Xamples/include
7499 /usr/openwin/include
7500 /usr/openwin/share/include'
7502 if test "$ac_x_includes" = no; then
7503 # Guess where to find include files, by looking for Xlib.h.
7504 # First, try using that file with no special directory specified.
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <X11/Xlib.h>
7508 _ACEOF
7509 if ac_fn_c_try_cpp "$LINENO"; then :
7510 # We can compile using X headers with no special include directory.
7511 ac_x_includes=
7512 else
7513 for ac_dir in $ac_x_header_dirs; do
7514 if test -r "$ac_dir/X11/Xlib.h"; then
7515 ac_x_includes=$ac_dir
7516 break
7518 done
7520 rm -f conftest.err conftest.i conftest.$ac_ext
7521 fi # $ac_x_includes = no
7523 if test "$ac_x_libraries" = no; then
7524 # Check for the libraries.
7525 # See if we find them without any special options.
7526 # Don't add to $LIBS permanently.
7527 ac_save_LIBS=$LIBS
7528 LIBS="-lX11 $LIBS"
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <X11/Xlib.h>
7533 main ()
7535 XrmInitialize ()
7537 return 0;
7539 _ACEOF
7540 if ac_fn_c_try_link "$LINENO"; then :
7541 LIBS=$ac_save_LIBS
7542 # We can link X programs with no special library path.
7543 ac_x_libraries=
7544 else
7545 LIBS=$ac_save_LIBS
7546 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7548 # Don't even attempt the hair of trying to link an X program!
7549 for ac_extension in a so sl dylib la dll; do
7550 if test -r "$ac_dir/libX11.$ac_extension"; then
7551 ac_x_libraries=$ac_dir
7552 break 2
7554 done
7555 done
7557 rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7559 fi # $ac_x_libraries = no
7561 case $ac_x_includes,$ac_x_libraries in #(
7562 no,* | *,no | *\'*)
7563 # Didn't find X, or a directory has "'" in its name.
7564 ac_cv_have_x="have_x=no";; #(
7566 # Record where we found X for the cache.
7567 ac_cv_have_x="have_x=yes\
7568 ac_x_includes='$ac_x_includes'\
7569 ac_x_libraries='$ac_x_libraries'"
7570 esac
7572 ;; #(
7573 *) have_x=yes;;
7574 esac
7575 eval "$ac_cv_have_x"
7576 fi # $with_x != no
7578 if test "$have_x" != yes; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7580 $as_echo "$have_x" >&6; }
7581 no_x=yes
7582 else
7583 # If each of the values was on the command line, it overrides each guess.
7584 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7585 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7586 # Update the cache value to reflect the command line values.
7587 ac_cv_have_x="have_x=yes\
7588 ac_x_includes='$x_includes'\
7589 ac_x_libraries='$x_libraries'"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7591 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7594 if test "$no_x" = yes; then
7595 window_system=none
7596 else
7597 window_system=x11
7600 ## Workaround for bug in autoconf <= 2.62.
7601 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7602 ## No need to do anything special for these standard directories.
7603 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7605 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7609 LD_SWITCH_X_SITE_AUX=
7610 LD_SWITCH_X_SITE_AUX_RPATH=
7611 if test "${x_libraries}" != NONE; then
7612 if test -n "${x_libraries}"; then
7613 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7614 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7615 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7617 x_default_search_path=""
7618 x_search_path=${x_libraries}
7619 if test -z "${x_search_path}"; then
7620 x_search_path=/usr/lib
7622 for x_library in `echo ${x_search_path}: | \
7623 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7624 x_search_path="\
7625 ${x_library}/X11/%L/%T/%N%C%S:\
7626 ${x_library}/X11/%l/%T/%N%C%S:\
7627 ${x_library}/X11/%T/%N%C%S:\
7628 ${x_library}/X11/%L/%T/%N%S:\
7629 ${x_library}/X11/%l/%T/%N%S:\
7630 ${x_library}/X11/%T/%N%S"
7631 if test x"${x_default_search_path}" = x; then
7632 x_default_search_path=${x_search_path}
7633 else
7634 x_default_search_path="${x_search_path}:${x_default_search_path}"
7636 done
7641 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7642 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7645 if test x"${x_includes}" = x; then
7646 bitmapdir=/usr/include/X11/bitmaps
7647 else
7648 # accumulate include directories that have X11 bitmap subdirectories
7649 bmd_acc="dummyval"
7650 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7651 if test -d "${bmd}/X11/bitmaps"; then
7652 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7654 if test -d "${bmd}/bitmaps"; then
7655 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7657 done
7658 if test ${bmd_acc} != "dummyval"; then
7659 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7663 HAVE_NS=no
7664 NS_IMPL_COCOA=no
7665 NS_IMPL_GNUSTEP=no
7666 tmp_CPPFLAGS="$CPPFLAGS"
7667 tmp_CFLAGS="$CFLAGS"
7668 CPPFLAGS="$CPPFLAGS -x objective-c"
7669 CFLAGS="$CFLAGS -x objective-c"
7670 TEMACS_LDFLAGS2="\${LDFLAGS}"
7671 if test "${with_ns}" != no; then
7672 if test "${opsys}" = darwin; then
7673 NS_IMPL_COCOA=yes
7674 ns_appdir=`pwd`/nextstep/Emacs.app
7675 ns_appbindir=${ns_appdir}/Contents/MacOS/
7676 ns_appresdir=${ns_appdir}/Contents/Resources
7677 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7678 elif test -f $GNUSTEP_CONFIG_FILE; then
7679 NS_IMPL_GNUSTEP=yes
7680 ns_appdir=`pwd`/nextstep/Emacs.app
7681 ns_appbindir=${ns_appdir}/
7682 ns_appresdir=${ns_appdir}/Resources
7683 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7684 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7685 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7686 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7687 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7688 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7689 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7690 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7691 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7692 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7693 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7694 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7695 LIB_STANDARD=
7696 START_FILES=
7697 TEMACS_LDFLAGS2=
7699 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7700 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
7701 HAVE_NS=yes
7702 else
7703 as_fn_error $? "\`--with-ns' was specified, but the include
7704 files are missing or cannot be compiled." "$LINENO" 5
7708 NS_HAVE_NSINTEGER=yes
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <Foundation/NSObjCRuntime.h>
7713 main ()
7715 NSInteger i;
7717 return 0;
7719 _ACEOF
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721 ns_have_nsinteger=yes
7722 else
7723 ns_have_nsinteger=no
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 if test $ns_have_nsinteger = no; then
7727 NS_HAVE_NSINTEGER=no
7732 ns_frag=/dev/null
7733 NS_OBJ=
7734 NS_SUPPORT=
7735 if test "${HAVE_NS}" = yes; then
7736 window_system=nextstep
7737 with_xft=no
7738 # set up packaging dirs
7739 exec_prefix=${ns_appbindir}
7740 libexecdir=${ns_appbindir}/libexec
7741 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7742 prefix=${ns_appresdir}
7744 ns_frag=$srcdir/src/ns.mk
7745 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7746 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7748 CFLAGS="$tmp_CFLAGS"
7749 CPPFLAGS="$tmp_CPPFLAGS"
7755 case "${window_system}" in
7756 x11 )
7757 HAVE_X_WINDOWS=yes
7758 HAVE_X11=yes
7759 case "${with_x_toolkit}" in
7760 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7761 motif ) USE_X_TOOLKIT=MOTIF ;;
7762 gtk ) with_gtk=yes
7763 USE_X_TOOLKIT=none ;;
7764 gtk3 ) with_gtk3=yes
7765 USE_X_TOOLKIT=none ;;
7766 no ) USE_X_TOOLKIT=none ;;
7767 * ) USE_X_TOOLKIT=maybe ;;
7768 esac
7770 nextstep | none )
7771 HAVE_X_WINDOWS=no
7772 HAVE_X11=no
7773 USE_X_TOOLKIT=none
7775 esac
7777 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7778 # Extract the first word of "X", so it can be a program name with args.
7779 set dummy X; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 if test -n "$HAVE_XSERVER"; then
7786 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_HAVE_XSERVER="true"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7799 done
7800 done
7801 IFS=$as_save_IFS
7803 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7806 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7807 if test -n "$HAVE_XSERVER"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7809 $as_echo "$HAVE_XSERVER" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7816 if test "$HAVE_XSERVER" = true ||
7817 test -n "$DISPLAY" ||
7818 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7819 as_fn_error $? "You seem to be running X, but no X development libraries
7820 were found. You should install the relevant development files for X
7821 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7822 sure you have development files for image handling, i.e.
7823 tiff, gif, jpeg, png and xpm.
7824 If you are sure you want Emacs compiled without X window support, pass
7825 --without-x
7826 to configure." "$LINENO" 5
7830 ### If we're using X11, we should use the X menu package.
7831 HAVE_MENUS=no
7832 case ${HAVE_X11} in
7833 yes ) HAVE_MENUS=yes ;;
7834 esac
7836 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7837 # Assume not, until told otherwise.
7838 GNU_MALLOC=yes
7839 doug_lea_malloc=yes
7840 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7841 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
7843 else
7844 doug_lea_malloc=no
7847 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7848 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
7850 else
7851 doug_lea_malloc=no
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7855 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7856 if ${emacs_cv_var___after_morecore_hook+:} false; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 extern void (* __after_morecore_hook)();
7863 main ()
7865 __after_morecore_hook = 0
7867 return 0;
7869 _ACEOF
7870 if ac_fn_c_try_link "$LINENO"; then :
7871 emacs_cv_var___after_morecore_hook=yes
7872 else
7873 emacs_cv_var___after_morecore_hook=no
7875 rm -f core conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7879 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7880 if test $emacs_cv_var___after_morecore_hook = no; then
7881 doug_lea_malloc=no
7885 system_malloc=no
7886 case "$opsys" in
7887 ## darwin ld insists on the use of malloc routines in the System framework.
7888 darwin|sol2-10) system_malloc=yes ;;
7889 esac
7891 if test "${system_malloc}" = "yes"; then
7893 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7895 GNU_MALLOC=no
7896 GNU_MALLOC_reason="
7897 (The GNU allocators don't work with this system configuration.)"
7898 GMALLOC_OBJ=
7899 VMLIMIT_OBJ=
7900 else
7901 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7902 VMLIMIT_OBJ=vm-limit.o
7907 if test "$doug_lea_malloc" = "yes" ; then
7908 if test "$GNU_MALLOC" = yes ; then
7909 GNU_MALLOC_reason="
7910 (Using Doug Lea's new malloc from the GNU C Library.)"
7913 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7916 ## Use mmap directly for allocating larger buffers.
7917 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7918 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7919 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7920 case "$opsys" in
7921 gnu*) REL_ALLOC=no ;;
7922 esac
7925 if test x"${REL_ALLOC}" = x; then
7926 REL_ALLOC=${GNU_MALLOC}
7929 use_mmap_for_buffers=no
7930 case "$opsys" in
7931 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7932 esac
7937 for ac_header in $ac_header_list
7938 do :
7939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7943 cat >>confdefs.h <<_ACEOF
7944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7945 _ACEOF
7949 done
7958 for ac_func in getpagesize
7959 do :
7960 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7961 if test "x$ac_cv_func_getpagesize" = xyes; then :
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_GETPAGESIZE 1
7964 _ACEOF
7967 done
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7970 $as_echo_n "checking for working mmap... " >&6; }
7971 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test "$cross_compiling" = yes; then :
7975 ac_cv_func_mmap_fixed_mapped=no
7976 else
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 $ac_includes_default
7980 /* malloc might have been renamed as rpl_malloc. */
7981 #undef malloc
7983 /* Thanks to Mike Haertel and Jim Avera for this test.
7984 Here is a matrix of mmap possibilities:
7985 mmap private not fixed
7986 mmap private fixed at somewhere currently unmapped
7987 mmap private fixed at somewhere already mapped
7988 mmap shared not fixed
7989 mmap shared fixed at somewhere currently unmapped
7990 mmap shared fixed at somewhere already mapped
7991 For private mappings, we should verify that changes cannot be read()
7992 back from the file, nor mmap's back from the file at a different
7993 address. (There have been systems where private was not correctly
7994 implemented like the infamous i386 svr4.0, and systems where the
7995 VM page cache was not coherent with the file system buffer cache
7996 like early versions of FreeBSD and possibly contemporary NetBSD.)
7997 For shared mappings, we should conversely verify that changes get
7998 propagated back to all the places they're supposed to be.
8000 Grep wants private fixed already mapped.
8001 The main things grep needs to know about mmap are:
8002 * does it exist and is it safe to write into the mmap'd area
8003 * how to use it (BSD variants) */
8005 #include <fcntl.h>
8006 #include <sys/mman.h>
8008 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8009 char *malloc ();
8010 #endif
8012 /* This mess was copied from the GNU getpagesize.h. */
8013 #ifndef HAVE_GETPAGESIZE
8014 # ifdef _SC_PAGESIZE
8015 # define getpagesize() sysconf(_SC_PAGESIZE)
8016 # else /* no _SC_PAGESIZE */
8017 # ifdef HAVE_SYS_PARAM_H
8018 # include <sys/param.h>
8019 # ifdef EXEC_PAGESIZE
8020 # define getpagesize() EXEC_PAGESIZE
8021 # else /* no EXEC_PAGESIZE */
8022 # ifdef NBPG
8023 # define getpagesize() NBPG * CLSIZE
8024 # ifndef CLSIZE
8025 # define CLSIZE 1
8026 # endif /* no CLSIZE */
8027 # else /* no NBPG */
8028 # ifdef NBPC
8029 # define getpagesize() NBPC
8030 # else /* no NBPC */
8031 # ifdef PAGESIZE
8032 # define getpagesize() PAGESIZE
8033 # endif /* PAGESIZE */
8034 # endif /* no NBPC */
8035 # endif /* no NBPG */
8036 # endif /* no EXEC_PAGESIZE */
8037 # else /* no HAVE_SYS_PARAM_H */
8038 # define getpagesize() 8192 /* punt totally */
8039 # endif /* no HAVE_SYS_PARAM_H */
8040 # endif /* no _SC_PAGESIZE */
8042 #endif /* no HAVE_GETPAGESIZE */
8045 main ()
8047 char *data, *data2, *data3;
8048 const char *cdata2;
8049 int i, pagesize;
8050 int fd, fd2;
8052 pagesize = getpagesize ();
8054 /* First, make a file with some known garbage in it. */
8055 data = (char *) malloc (pagesize);
8056 if (!data)
8057 return 1;
8058 for (i = 0; i < pagesize; ++i)
8059 *(data + i) = rand ();
8060 umask (0);
8061 fd = creat ("conftest.mmap", 0600);
8062 if (fd < 0)
8063 return 2;
8064 if (write (fd, data, pagesize) != pagesize)
8065 return 3;
8066 close (fd);
8068 /* Next, check that the tail of a page is zero-filled. File must have
8069 non-zero length, otherwise we risk SIGBUS for entire page. */
8070 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8071 if (fd2 < 0)
8072 return 4;
8073 cdata2 = "";
8074 if (write (fd2, cdata2, 1) != 1)
8075 return 5;
8076 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8077 if (data2 == MAP_FAILED)
8078 return 6;
8079 for (i = 0; i < pagesize; ++i)
8080 if (*(data2 + i))
8081 return 7;
8082 close (fd2);
8083 if (munmap (data2, pagesize))
8084 return 8;
8086 /* Next, try to mmap the file at a fixed address which already has
8087 something else allocated at it. If we can, also make sure that
8088 we see the same garbage. */
8089 fd = open ("conftest.mmap", O_RDWR);
8090 if (fd < 0)
8091 return 9;
8092 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8093 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8094 return 10;
8095 for (i = 0; i < pagesize; ++i)
8096 if (*(data + i) != *(data2 + i))
8097 return 11;
8099 /* Finally, make sure that changes to the mapped area do not
8100 percolate back to the file as seen by read(). (This is a bug on
8101 some variants of i386 svr4.0.) */
8102 for (i = 0; i < pagesize; ++i)
8103 *(data2 + i) = *(data2 + i) + 1;
8104 data3 = (char *) malloc (pagesize);
8105 if (!data3)
8106 return 12;
8107 if (read (fd, data3, pagesize) != pagesize)
8108 return 13;
8109 for (i = 0; i < pagesize; ++i)
8110 if (*(data + i) != *(data3 + i))
8111 return 14;
8112 close (fd);
8113 return 0;
8115 _ACEOF
8116 if ac_fn_c_try_run "$LINENO"; then :
8117 ac_cv_func_mmap_fixed_mapped=yes
8118 else
8119 ac_cv_func_mmap_fixed_mapped=no
8121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8122 conftest.$ac_objext conftest.beam conftest.$ac_ext
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8127 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8128 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8130 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8133 rm -f conftest.mmap conftest.txt
8135 if test $use_mmap_for_buffers = yes; then
8137 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8139 REL_ALLOC=no
8142 LIBS="$LIBS_SYSTEM $LIBS"
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8145 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8146 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 ac_check_lib_save_LIBS=$LIBS
8150 LIBS="-ldnet $LIBS"
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8154 /* Override any GCC internal prototype to avoid an error.
8155 Use char because int might match the return type of a GCC
8156 builtin and then its argument prototype would still apply. */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 char dnet_ntoa ();
8162 main ()
8164 return dnet_ntoa ();
8166 return 0;
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 ac_cv_lib_dnet_dnet_ntoa=yes
8171 else
8172 ac_cv_lib_dnet_dnet_ntoa=no
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 LIBS=$ac_check_lib_save_LIBS
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8179 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8180 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8181 cat >>confdefs.h <<_ACEOF
8182 #define HAVE_LIBDNET 1
8183 _ACEOF
8185 LIBS="-ldnet $LIBS"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8191 $as_echo_n "checking for main in -lXbsd... " >&6; }
8192 if ${ac_cv_lib_Xbsd_main+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 ac_check_lib_save_LIBS=$LIBS
8196 LIBS="-lXbsd $LIBS"
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8202 main ()
8204 return main ();
8206 return 0;
8208 _ACEOF
8209 if ac_fn_c_try_link "$LINENO"; then :
8210 ac_cv_lib_Xbsd_main=yes
8211 else
8212 ac_cv_lib_Xbsd_main=no
8214 rm -f core conftest.err conftest.$ac_objext \
8215 conftest$ac_exeext conftest.$ac_ext
8216 LIBS=$ac_check_lib_save_LIBS
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8219 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8220 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
8221 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8226 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8227 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 ac_check_lib_save_LIBS=$LIBS
8231 LIBS="-lpthreads $LIBS"
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8235 /* Override any GCC internal prototype to avoid an error.
8236 Use char because int might match the return type of a GCC
8237 builtin and then its argument prototype would still apply. */
8238 #ifdef __cplusplus
8239 extern "C"
8240 #endif
8241 char cma_open ();
8243 main ()
8245 return cma_open ();
8247 return 0;
8249 _ACEOF
8250 if ac_fn_c_try_link "$LINENO"; then :
8251 ac_cv_lib_pthreads_cma_open=yes
8252 else
8253 ac_cv_lib_pthreads_cma_open=no
8255 rm -f core conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
8257 LIBS=$ac_check_lib_save_LIBS
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8260 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8261 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
8262 cat >>confdefs.h <<_ACEOF
8263 #define HAVE_LIBPTHREADS 1
8264 _ACEOF
8266 LIBS="-lpthreads $LIBS"
8271 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8272 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8273 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8274 ## added to LIBS in configure would never contain the pthreads part,
8275 ## but the value used in Makefiles might. FIXME?
8277 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8278 ## be harmless on older versions of X where it happens to exist.
8279 test "$opsys" = "aix4-2" && \
8280 test $ac_cv_lib_pthreads_cma_open = yes && \
8281 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8284 case ${host_os} in
8285 aix*)
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8287 $as_echo_n "checking for -bbigtoc option... " >&6; }
8288 if ${gdb_cv_bigtoc+:} false; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8292 case $GCC in
8293 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8294 *) gdb_cv_bigtoc=-bbigtoc ;;
8295 esac
8297 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8302 main ()
8304 int i;
8306 return 0;
8308 _ACEOF
8309 if ac_fn_c_try_link "$LINENO"; then :
8311 else
8312 gdb_cv_bigtoc=
8314 rm -f core conftest.err conftest.$ac_objext \
8315 conftest$ac_exeext conftest.$ac_ext
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8319 $as_echo "$gdb_cv_bigtoc" >&6; }
8321 esac
8323 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8324 # used for the tests that follow. We set them back to REAL_CFLAGS and
8325 # REAL_CPPFLAGS later on.
8327 REAL_CFLAGS="$CFLAGS"
8328 REAL_CPPFLAGS="$CPPFLAGS"
8330 if test "${HAVE_X11}" = "yes"; then
8331 DEFS="$C_SWITCH_X_SITE $DEFS"
8332 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8333 LIBS="-lX11 $LIBS"
8334 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8335 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8337 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8338 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8339 # but it's more convenient here to set LD_RUN_PATH
8340 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8341 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8342 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8343 export LD_RUN_PATH
8346 if test "${opsys}" = "gnu-linux"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8348 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8353 main ()
8355 XOpenDisplay ("foo");
8357 return 0;
8359 _ACEOF
8360 if ac_fn_c_try_link "$LINENO"; then :
8361 xlinux_first_failure=no
8362 else
8363 xlinux_first_failure=yes
8365 rm -f core conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext conftest.$ac_ext
8367 if test "${xlinux_first_failure}" = "yes"; then
8368 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8369 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8370 OLD_CPPFLAGS="$CPPFLAGS"
8371 OLD_LIBS="$LIBS"
8372 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8373 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8374 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8375 LIBS="$LIBS -b i486-linuxaout"
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8380 main ()
8382 XOpenDisplay ("foo");
8384 return 0;
8386 _ACEOF
8387 if ac_fn_c_try_link "$LINENO"; then :
8388 xlinux_second_failure=no
8389 else
8390 xlinux_second_failure=yes
8392 rm -f core conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext conftest.$ac_ext
8394 if test "${xlinux_second_failure}" = "yes"; then
8395 # If we get the same failure with -b, there is no use adding -b.
8396 # So take it out. This plays safe.
8397 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8398 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8399 CPPFLAGS="$OLD_CPPFLAGS"
8400 LIBS="$OLD_LIBS"
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405 $as_echo "yes" >&6; }
8407 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8413 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8414 # header files included from there.
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8416 $as_echo_n "checking for Xkb... " >&6; }
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <X11/Xlib.h>
8420 #include <X11/XKBlib.h>
8422 main ()
8424 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8426 return 0;
8428 _ACEOF
8429 if ac_fn_c_try_link "$LINENO"; then :
8430 emacs_xkb=yes
8431 else
8432 emacs_xkb=no
8434 rm -f core conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8437 $as_echo "$emacs_xkb" >&6; }
8438 if test $emacs_xkb = yes; then
8440 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8444 for ac_func in XrmSetDatabase XScreenResourceString \
8445 XScreenNumberOfScreen XSetWMProtocols
8446 do :
8447 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8448 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8449 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8450 cat >>confdefs.h <<_ACEOF
8451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8452 _ACEOF
8455 done
8459 if test "${window_system}" = "x11"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8461 $as_echo_n "checking X11 version 6... " >&6; }
8462 if ${emacs_cv_x11_version_6+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <X11/Xlib.h>
8469 main ()
8471 #if XlibSpecificationRelease < 6
8472 fail;
8473 #endif
8476 return 0;
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"; then :
8480 emacs_cv_x11_version_6=yes
8481 else
8482 emacs_cv_x11_version_6=no
8484 rm -f core conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8488 if test $emacs_cv_x11_version_6 = yes; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8490 $as_echo "6 or newer" >&6; }
8492 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8495 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8497 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8498 ## XIM support.
8499 case "$opsys" in
8500 sol2-*) : ;;
8502 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8505 esac
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8508 $as_echo "before 6" >&6; }
8513 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8514 HAVE_RSVG=no
8515 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8516 if test "${with_rsvg}" != "no"; then
8517 RSVG_REQUIRED=2.11.0
8518 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8521 succeeded=no
8523 # Extract the first word of "pkg-config", so it can be a program name with args.
8524 set dummy pkg-config; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 case $PKG_CONFIG in
8531 [\\/]* | ?:[\\/]*)
8532 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8542 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8546 done
8547 done
8548 IFS=$as_save_IFS
8550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8552 esac
8554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8555 if test -n "$PKG_CONFIG"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8557 $as_echo "$PKG_CONFIG" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8565 if test "$PKG_CONFIG" = "no" ; then
8567 else
8568 PKG_CONFIG_MIN_VERSION=0.9.0
8569 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8571 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8573 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8575 $as_echo "yes" >&6; }
8576 succeeded=yes
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8579 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8580 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8582 $as_echo "$RSVG_CFLAGS" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8585 $as_echo_n "checking RSVG_LIBS... " >&6; }
8586 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8588 $as_echo "$RSVG_LIBS" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592 RSVG_CFLAGS=""
8593 RSVG_LIBS=""
8594 ## If we have a custom action on failure, don't print errors, but
8595 ## do set a variable so people can do so.
8596 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8602 else
8603 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8604 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8608 if test $succeeded = yes; then
8609 HAVE_RSVG=yes
8610 else
8617 if test $HAVE_RSVG = yes; then
8619 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8621 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8622 LIBS="$RSVG_LIBS $LIBS"
8627 HAVE_IMAGEMAGICK=no
8628 if test "${HAVE_X11}" = "yes"; then
8629 if test "${with_imagemagick}" != "no"; then
8630 IMAGEMAGICK_MODULE="Wand"
8632 succeeded=no
8634 # Extract the first word of "pkg-config", so it can be a program name with args.
8635 set dummy pkg-config; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 case $PKG_CONFIG in
8642 [\\/]* | ?:[\\/]*)
8643 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8657 done
8658 done
8659 IFS=$as_save_IFS
8661 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8663 esac
8665 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8666 if test -n "$PKG_CONFIG"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8668 $as_echo "$PKG_CONFIG" >&6; }
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8676 if test "$PKG_CONFIG" = "no" ; then
8678 else
8679 PKG_CONFIG_MIN_VERSION=0.9.0
8680 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8682 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8684 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8686 $as_echo "yes" >&6; }
8687 succeeded=yes
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8690 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8691 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8693 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8696 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8697 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8699 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8700 else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 IMAGEMAGICK_CFLAGS=""
8704 IMAGEMAGICK_LIBS=""
8705 ## If we have a custom action on failure, don't print errors, but
8706 ## do set a variable so people can do so.
8707 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8713 else
8714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8719 if test $succeeded = yes; then
8720 HAVE_IMAGEMAGICK=yes
8721 else
8728 if test $HAVE_IMAGEMAGICK = yes; then
8730 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8732 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8733 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8734 for ac_func in MagickExportImagePixels
8735 do :
8736 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8737 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
8738 cat >>confdefs.h <<_ACEOF
8739 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8740 _ACEOF
8743 done
8750 HAVE_GTK=no
8751 if test "${with_gtk3}" = "yes"; then
8752 GLIB_REQUIRED=2.6
8753 GTK_REQUIRED=2.90
8754 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8757 succeeded=no
8759 # Extract the first word of "pkg-config", so it can be a program name with args.
8760 set dummy pkg-config; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 case $PKG_CONFIG in
8767 [\\/]* | ?:[\\/]*)
8768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8782 done
8783 done
8784 IFS=$as_save_IFS
8786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8788 esac
8790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8791 if test -n "$PKG_CONFIG"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8793 $as_echo "$PKG_CONFIG" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8801 if test "$PKG_CONFIG" = "no" ; then
8802 pkg_check_gtk=no
8803 else
8804 PKG_CONFIG_MIN_VERSION=0.9.0
8805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8807 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8809 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8811 $as_echo "yes" >&6; }
8812 succeeded=yes
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8815 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8816 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8818 $as_echo "$GTK_CFLAGS" >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8821 $as_echo_n "checking GTK_LIBS... " >&6; }
8822 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8824 $as_echo "$GTK_LIBS" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 GTK_CFLAGS=""
8829 GTK_LIBS=""
8830 ## If we have a custom action on failure, don't print errors, but
8831 ## do set a variable so people can do so.
8832 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8838 else
8839 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8840 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8844 if test $succeeded = yes; then
8845 pkg_check_gtk=yes
8846 else
8847 pkg_check_gtk=no
8850 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8851 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8855 if test "$pkg_check_gtk" != "yes"; then
8856 HAVE_GTK=no
8857 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8858 GLIB_REQUIRED=2.6
8859 GTK_REQUIRED=2.6
8860 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8863 succeeded=no
8865 # Extract the first word of "pkg-config", so it can be a program name with args.
8866 set dummy pkg-config; ac_word=$2
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8868 $as_echo_n "checking for $ac_word... " >&6; }
8869 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 case $PKG_CONFIG in
8873 [\\/]* | ?:[\\/]*)
8874 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8884 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 break 2
8888 done
8889 done
8890 IFS=$as_save_IFS
8892 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8894 esac
8896 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8897 if test -n "$PKG_CONFIG"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8899 $as_echo "$PKG_CONFIG" >&6; }
8900 else
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8907 if test "$PKG_CONFIG" = "no" ; then
8908 pkg_check_gtk=no
8909 else
8910 PKG_CONFIG_MIN_VERSION=0.9.0
8911 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8913 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8915 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8917 $as_echo "yes" >&6; }
8918 succeeded=yes
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8921 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8922 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8924 $as_echo "$GTK_CFLAGS" >&6; }
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8927 $as_echo_n "checking GTK_LIBS... " >&6; }
8928 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8930 $as_echo "$GTK_LIBS" >&6; }
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 GTK_CFLAGS=""
8935 GTK_LIBS=""
8936 ## If we have a custom action on failure, don't print errors, but
8937 ## do set a variable so people can do so.
8938 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8944 else
8945 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8946 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8950 if test $succeeded = yes; then
8951 pkg_check_gtk=yes
8952 else
8953 pkg_check_gtk=no
8956 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8957 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8962 GTK_OBJ=
8963 if test x"$pkg_check_gtk" = xyes; then
8967 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8968 CFLAGS="$CFLAGS $GTK_CFLAGS"
8969 LIBS="$GTK_LIBS $LIBS"
8970 GTK_COMPILES=no
8971 for ac_func in gtk_main
8972 do :
8973 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8974 if test "x$ac_cv_func_gtk_main" = xyes; then :
8975 cat >>confdefs.h <<_ACEOF
8976 #define HAVE_GTK_MAIN 1
8977 _ACEOF
8978 GTK_COMPILES=yes
8980 done
8982 if test "${GTK_COMPILES}" != "yes"; then
8983 if test "$USE_X_TOOLKIT" != "maybe"; then
8984 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8986 else
8987 HAVE_GTK=yes
8989 $as_echo "#define USE_GTK 1" >>confdefs.h
8991 GTK_OBJ=gtkutil.o
8992 USE_X_TOOLKIT=none
8993 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8997 closing open displays. This is no problem if you just use
8998 one display, but if you use more than one and close one of them
8999 Emacs may crash." >&5
9000 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9001 closing open displays. This is no problem if you just use
9002 one display, but if you use more than one and close one of them
9003 Emacs may crash." >&2;}
9004 sleep 3
9012 if test "${HAVE_GTK}" = "yes"; then
9014 if test "$with_toolkit_scroll_bars" != no; then
9015 with_toolkit_scroll_bars=yes
9018 HAVE_GTK_FILE_SELECTION=no
9019 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9020 #include <gtk/gtk.h>
9022 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
9023 HAVE_GTK_FILE_SELECTION=yes
9024 else
9025 HAVE_GTK_FILE_SELECTION=no
9028 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9029 for ac_func in gtk_file_selection_new
9030 do :
9031 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9032 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_GTK_FILE_SELECTION_NEW 1
9035 _ACEOF
9038 done
9042 HAVE_GTK_AND_PTHREAD=no
9043 for ac_header in pthread.h
9044 do :
9045 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9046 if test "x$ac_cv_header_pthread_h" = xyes; then :
9047 cat >>confdefs.h <<_ACEOF
9048 #define HAVE_PTHREAD_H 1
9049 _ACEOF
9053 done
9055 if test "$ac_cv_header_pthread_h"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9057 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9058 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 ac_check_lib_save_LIBS=$LIBS
9062 LIBS="-lpthread $LIBS"
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9066 /* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
9069 #ifdef __cplusplus
9070 extern "C"
9071 #endif
9072 char pthread_self ();
9074 main ()
9076 return pthread_self ();
9078 return 0;
9080 _ACEOF
9081 if ac_fn_c_try_link "$LINENO"; then :
9082 ac_cv_lib_pthread_pthread_self=yes
9083 else
9084 ac_cv_lib_pthread_pthread_self=no
9086 rm -f core conftest.err conftest.$ac_objext \
9087 conftest$ac_exeext conftest.$ac_ext
9088 LIBS=$ac_check_lib_save_LIBS
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9091 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9092 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
9093 HAVE_GTK_AND_PTHREAD=yes
9097 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9098 case "${canonical}" in
9099 *-hpux*) ;;
9100 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9101 esac
9103 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9107 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9108 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9109 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9110 gtk_orientable_set_orientation
9111 do :
9112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9114 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9115 cat >>confdefs.h <<_ACEOF
9116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9117 _ACEOF
9120 done
9125 HAVE_DBUS=no
9126 DBUS_OBJ=
9127 if test "${with_dbus}" = "yes"; then
9129 succeeded=no
9131 # Extract the first word of "pkg-config", so it can be a program name with args.
9132 set dummy pkg-config; ac_word=$2
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 $as_echo_n "checking for $ac_word... " >&6; }
9135 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 case $PKG_CONFIG in
9139 [\\/]* | ?:[\\/]*)
9140 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144 for as_dir in $PATH
9146 IFS=$as_save_IFS
9147 test -z "$as_dir" && as_dir=.
9148 for ac_exec_ext in '' $ac_executable_extensions; do
9149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9150 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9152 break 2
9154 done
9155 done
9156 IFS=$as_save_IFS
9158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9160 esac
9162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9163 if test -n "$PKG_CONFIG"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9165 $as_echo "$PKG_CONFIG" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9173 if test "$PKG_CONFIG" = "no" ; then
9174 HAVE_DBUS=no
9175 else
9176 PKG_CONFIG_MIN_VERSION=0.9.0
9177 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9179 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9181 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9183 $as_echo "yes" >&6; }
9184 succeeded=yes
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9187 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9188 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9190 $as_echo "$DBUS_CFLAGS" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9193 $as_echo_n "checking DBUS_LIBS... " >&6; }
9194 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9196 $as_echo "$DBUS_LIBS" >&6; }
9197 else
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9200 DBUS_CFLAGS=""
9201 DBUS_LIBS=""
9202 ## If we have a custom action on failure, don't print errors, but
9203 ## do set a variable so people can do so.
9204 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9210 else
9211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9216 if test $succeeded = yes; then
9217 HAVE_DBUS=yes
9218 else
9219 HAVE_DBUS=no
9222 if test "$HAVE_DBUS" = yes; then
9223 LIBS="$LIBS $DBUS_LIBS"
9225 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9227 for ac_func in dbus_watch_get_unix_fd
9228 do :
9229 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9230 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
9231 cat >>confdefs.h <<_ACEOF
9232 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9233 _ACEOF
9236 done
9238 DBUS_OBJ=dbusbind.o
9243 HAVE_GCONF=no
9244 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9246 succeeded=no
9248 # Extract the first word of "pkg-config", so it can be a program name with args.
9249 set dummy pkg-config; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 case $PKG_CONFIG in
9256 [\\/]* | ?:[\\/]*)
9257 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9271 done
9272 done
9273 IFS=$as_save_IFS
9275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9277 esac
9279 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9280 if test -n "$PKG_CONFIG"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9282 $as_echo "$PKG_CONFIG" >&6; }
9283 else
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9290 if test "$PKG_CONFIG" = "no" ; then
9291 HAVE_GCONF=no
9292 else
9293 PKG_CONFIG_MIN_VERSION=0.9.0
9294 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9296 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9298 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9300 $as_echo "yes" >&6; }
9301 succeeded=yes
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9304 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9305 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9307 $as_echo "$GCONF_CFLAGS" >&6; }
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9310 $as_echo_n "checking GCONF_LIBS... " >&6; }
9311 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9313 $as_echo "$GCONF_LIBS" >&6; }
9314 else
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9317 GCONF_CFLAGS=""
9318 GCONF_LIBS=""
9319 ## If we have a custom action on failure, don't print errors, but
9320 ## do set a variable so people can do so.
9321 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9327 else
9328 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9329 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9333 if test $succeeded = yes; then
9334 HAVE_GCONF=yes
9335 else
9336 HAVE_GCONF=no
9339 if test "$HAVE_GCONF" = yes; then
9341 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9343 for ac_func in g_type_init
9344 do :
9345 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9346 if test "x$ac_cv_func_g_type_init" = xyes; then :
9347 cat >>confdefs.h <<_ACEOF
9348 #define HAVE_G_TYPE_INIT 1
9349 _ACEOF
9352 done
9357 HAVE_LIBSELINUX=no
9358 LIBSELINUX_LIBS=
9359 if test "${with_selinux}" = "yes"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9361 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9362 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 ac_check_lib_save_LIBS=$LIBS
9366 LIBS="-lselinux $LIBS"
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 char lgetfilecon ();
9378 main ()
9380 return lgetfilecon ();
9382 return 0;
9384 _ACEOF
9385 if ac_fn_c_try_link "$LINENO"; then :
9386 ac_cv_lib_selinux_lgetfilecon=yes
9387 else
9388 ac_cv_lib_selinux_lgetfilecon=no
9390 rm -f core conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392 LIBS=$ac_check_lib_save_LIBS
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9395 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9396 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
9397 HAVE_LIBSELINUX=yes
9398 else
9399 HAVE_LIBSELINUX=no
9402 if test "$HAVE_LIBSELINUX" = yes; then
9404 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9406 LIBSELINUX_LIBS=-lselinux
9411 HAVE_GNUTLS=no
9412 if test "${with_gnutls}" = "yes" ; then
9414 succeeded=no
9416 # Extract the first word of "pkg-config", so it can be a program name with args.
9417 set dummy pkg-config; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 case $PKG_CONFIG in
9424 [\\/]* | ?:[\\/]*)
9425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9439 done
9440 done
9441 IFS=$as_save_IFS
9443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9445 esac
9447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9448 if test -n "$PKG_CONFIG"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9450 $as_echo "$PKG_CONFIG" >&6; }
9451 else
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9458 if test "$PKG_CONFIG" = "no" ; then
9459 HAVE_GNUTLS=no
9460 else
9461 PKG_CONFIG_MIN_VERSION=0.9.0
9462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9464 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9466 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9468 $as_echo "yes" >&6; }
9469 succeeded=yes
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9472 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9473 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9475 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9478 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9479 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9481 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9482 else
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9485 LIBGNUTLS_CFLAGS=""
9486 LIBGNUTLS_LIBS=""
9487 ## If we have a custom action on failure, don't print errors, but
9488 ## do set a variable so people can do so.
9489 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9495 else
9496 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9497 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9501 if test $succeeded = yes; then
9502 HAVE_GNUTLS=yes
9503 else
9504 HAVE_GNUTLS=no
9507 if test "${HAVE_GNUTLS}" = "yes"; then
9509 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9516 HAVE_XAW3D=no
9517 LUCID_LIBW=
9518 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9519 if test "$with_xaw3d" != no; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9521 $as_echo_n "checking for xaw3d... " >&6; }
9522 if ${emacs_cv_xaw3d+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9528 #include <X11/Intrinsic.h>
9529 #include <X11/Xaw3d/Simple.h>
9531 main ()
9535 return 0;
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 emacs_cv_xaw3d=yes
9540 else
9541 emacs_cv_xaw3d=no
9543 rm -f core conftest.err conftest.$ac_objext \
9544 conftest$ac_exeext conftest.$ac_ext
9547 else
9548 emacs_cv_xaw3d=no
9550 if test $emacs_cv_xaw3d = yes; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9552 $as_echo "yes; using Lucid toolkit" >&6; }
9553 USE_X_TOOLKIT=LUCID
9554 HAVE_XAW3D=yes
9555 LUCID_LIBW=-lXaw3d
9557 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9563 $as_echo_n "checking for libXaw... " >&6; }
9564 if ${emacs_cv_xaw+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9570 #include <X11/Intrinsic.h>
9571 #include <X11/Xaw/Simple.h>
9573 main ()
9577 return 0;
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 emacs_cv_xaw=yes
9582 else
9583 emacs_cv_xaw=no
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9589 if test $emacs_cv_xaw = yes; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9591 $as_echo "yes; using Lucid toolkit" >&6; }
9592 USE_X_TOOLKIT=LUCID
9593 LUCID_LIBW=-lXaw
9594 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9595 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9596 else
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9598 $as_echo "no; do not use toolkit by default" >&6; }
9599 USE_X_TOOLKIT=none
9604 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9606 LIBXTR6=
9607 if test "${USE_X_TOOLKIT}" != "none"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9609 $as_echo_n "checking X11 toolkit version... " >&6; }
9610 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615 #include <X11/Intrinsic.h>
9617 main ()
9619 #if XtSpecificationRelease < 6
9620 fail;
9621 #endif
9624 return 0;
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9628 emacs_cv_x11_toolkit_version_6=yes
9629 else
9630 emacs_cv_x11_toolkit_version_6=no
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9636 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9637 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9639 $as_echo "6 or newer" >&6; }
9641 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9643 LIBXTR6="-lSM -lICE"
9644 case "$opsys" in
9645 ## Use libw.a along with X11R6 Xt.
9646 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9647 esac
9648 else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9650 $as_echo "before 6" >&6; }
9653 OLDLIBS="$LIBS"
9654 if test x$HAVE_X11XTR6 = xyes; then
9655 LIBS="-lXt -lSM -lICE $LIBS"
9656 else
9657 LIBS="-lXt $LIBS"
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9660 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9661 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 ac_check_lib_save_LIBS=$LIBS
9665 LIBS="-lXmu $LIBS"
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char XmuConvertStandardSelection ();
9677 main ()
9679 return XmuConvertStandardSelection ();
9681 return 0;
9683 _ACEOF
9684 if ac_fn_c_try_link "$LINENO"; then :
9685 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9686 else
9687 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9689 rm -f core conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9694 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9695 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
9696 cat >>confdefs.h <<_ACEOF
9697 #define HAVE_LIBXMU 1
9698 _ACEOF
9700 LIBS="-lXmu $LIBS"
9704 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9708 LIBXMU=-lXmu
9709 case $opsys in
9710 ## These systems don't supply Xmu.
9711 hpux* | aix4-2 )
9712 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9714 esac
9717 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9718 if test "${HAVE_X11}" = "yes"; then
9719 if test "${USE_X_TOOLKIT}" != "none"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9721 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9722 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 ac_check_lib_save_LIBS=$LIBS
9726 LIBS="-lXext $LIBS"
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9730 /* Override any GCC internal prototype to avoid an error.
9731 Use char because int might match the return type of a GCC
9732 builtin and then its argument prototype would still apply. */
9733 #ifdef __cplusplus
9734 extern "C"
9735 #endif
9736 char XShapeQueryExtension ();
9738 main ()
9740 return XShapeQueryExtension ();
9742 return 0;
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746 ac_cv_lib_Xext_XShapeQueryExtension=yes
9747 else
9748 ac_cv_lib_Xext_XShapeQueryExtension=no
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 LIBS=$ac_check_lib_save_LIBS
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9755 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9756 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9757 cat >>confdefs.h <<_ACEOF
9758 #define HAVE_LIBXEXT 1
9759 _ACEOF
9761 LIBS="-lXext $LIBS"
9768 LIBXP=
9769 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9771 $as_echo_n "checking for Motif version 2.1... " >&6; }
9772 if ${emacs_cv_motif_version_2_1+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 #include <Xm/Xm.h>
9779 main ()
9781 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9782 int x = 5;
9783 #else
9784 Motif version prior to 2.1.
9785 #endif
9787 return 0;
9789 _ACEOF
9790 if ac_fn_c_try_compile "$LINENO"; then :
9791 emacs_cv_motif_version_2_1=yes
9792 else
9793 emacs_cv_motif_version_2_1=no
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9798 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9799 if test $emacs_cv_motif_version_2_1 = yes; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9801 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9802 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 ac_check_lib_save_LIBS=$LIBS
9806 LIBS="-lXp $LIBS"
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9813 #ifdef __cplusplus
9814 extern "C"
9815 #endif
9816 char XpCreateContext ();
9818 main ()
9820 return XpCreateContext ();
9822 return 0;
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826 ac_cv_lib_Xp_XpCreateContext=yes
9827 else
9828 ac_cv_lib_Xp_XpCreateContext=no
9830 rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9835 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9836 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
9837 LIBXP=-lXp
9840 else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9842 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9843 if ${emacs_cv_lesstif+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 # We put this in CFLAGS temporarily to precede other -I options
9847 # that might be in CFLAGS temporarily.
9848 # We put this in CPPFLAGS where it precedes the other -I options.
9849 OLD_CPPFLAGS=$CPPFLAGS
9850 OLD_CFLAGS=$CFLAGS
9851 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9852 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9857 main ()
9859 int x = 5;
9861 return 0;
9863 _ACEOF
9864 if ac_fn_c_try_compile "$LINENO"; then :
9865 emacs_cv_lesstif=yes
9866 else
9867 emacs_cv_lesstif=no
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9872 $as_echo "$emacs_cv_lesstif" >&6; }
9873 if test $emacs_cv_lesstif = yes; then
9874 # Make sure this -I option remains in CPPFLAGS after it is set
9875 # back to REAL_CPPFLAGS.
9876 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9877 # have those other -I options anyway. Ultimately, having this
9878 # directory ultimately in CPPFLAGS will be enough.
9879 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9880 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9881 else
9882 CFLAGS=$OLD_CFLAGS
9883 CPPFLAGS=$OLD_CPPFLAGS
9889 USE_TOOLKIT_SCROLL_BARS=no
9890 if test "${with_toolkit_scroll_bars}" != "no"; then
9891 if test "${USE_X_TOOLKIT}" != "none"; then
9892 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9893 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9895 HAVE_XAW3D=no
9896 USE_TOOLKIT_SCROLL_BARS=yes
9897 elif test "${HAVE_XAW3D}" = "yes"; then
9898 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9900 USE_TOOLKIT_SCROLL_BARS=yes
9902 elif test "${HAVE_GTK}" = "yes"; then
9903 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9905 USE_TOOLKIT_SCROLL_BARS=yes
9906 elif test "${HAVE_NS}" = "yes"; then
9907 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9909 USE_TOOLKIT_SCROLL_BARS=yes
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9916 #include <X11/Xlib.h>
9917 #include <X11/Xresource.h>
9919 main ()
9921 XIMProc callback;
9923 return 0;
9925 _ACEOF
9926 if ac_fn_c_try_compile "$LINENO"; then :
9927 HAVE_XIM=yes
9929 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9931 else
9932 HAVE_XIM=no
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 if test "${with_xim}" != "no"; then
9939 $as_echo "#define USE_XIM 1" >>confdefs.h
9944 if test "${HAVE_XIM}" != "no"; then
9945 late_CFLAGS=$CFLAGS
9946 if test "$GCC" = yes; then
9947 CFLAGS="$CFLAGS --pedantic-errors"
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9952 #include <X11/Xlib.h>
9953 #include <X11/Xresource.h>
9955 main ()
9957 Display *display;
9958 XrmDatabase db;
9959 char *res_name;
9960 char *res_class;
9961 XIMProc callback;
9962 XPointer *client_data;
9963 #ifndef __GNUC__
9964 /* If we're not using GCC, it's probably not XFree86, and this is
9965 probably right, but we can't use something like --pedantic-errors. */
9966 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9967 char*, XIMProc, XPointer*);
9968 #endif
9969 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9970 client_data);
9972 return 0;
9974 _ACEOF
9975 if ac_fn_c_try_compile "$LINENO"; then :
9976 emacs_cv_arg6_star=yes
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 if test "$emacs_cv_arg6_star" = yes; then
9980 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9982 else
9983 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9986 CFLAGS=$late_CFLAGS
9989 ### Start of font-backend (under any platform) section.
9990 # (nothing here yet -- this is a placeholder)
9991 ### End of font-backend (under any platform) section.
9993 ### Start of font-backend (under X11) section.
9994 if test "${HAVE_X11}" = "yes"; then
9996 succeeded=no
9998 # Extract the first word of "pkg-config", so it can be a program name with args.
9999 set dummy pkg-config; ac_word=$2
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001 $as_echo_n "checking for $ac_word... " >&6; }
10002 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 case $PKG_CONFIG in
10006 [\\/]* | ?:[\\/]*)
10007 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10021 done
10022 done
10023 IFS=$as_save_IFS
10025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10027 esac
10029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10030 if test -n "$PKG_CONFIG"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10032 $as_echo "$PKG_CONFIG" >&6; }
10033 else
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10040 if test "$PKG_CONFIG" = "no" ; then
10041 HAVE_FC=no
10042 else
10043 PKG_CONFIG_MIN_VERSION=0.9.0
10044 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10046 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10048 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050 $as_echo "yes" >&6; }
10051 succeeded=yes
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10054 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10055 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10057 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10060 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10061 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10063 $as_echo "$FONTCONFIG_LIBS" >&6; }
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10067 FONTCONFIG_CFLAGS=""
10068 FONTCONFIG_LIBS=""
10069 ## If we have a custom action on failure, don't print errors, but
10070 ## do set a variable so people can do so.
10071 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10077 else
10078 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10079 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10083 if test $succeeded = yes; then
10084 HAVE_FC=yes
10085 else
10086 HAVE_FC=no
10090 ## Use -lXft if available, unless `--with-xft=no'.
10091 HAVE_XFT=maybe
10092 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10093 with_xft="no";
10095 if test "x${with_xft}" != "xno"; then
10098 succeeded=no
10100 # Extract the first word of "pkg-config", so it can be a program name with args.
10101 set dummy pkg-config; ac_word=$2
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 case $PKG_CONFIG in
10108 [\\/]* | ?:[\\/]*)
10109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10123 done
10124 done
10125 IFS=$as_save_IFS
10127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10129 esac
10131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10132 if test -n "$PKG_CONFIG"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10134 $as_echo "$PKG_CONFIG" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10142 if test "$PKG_CONFIG" = "no" ; then
10143 HAVE_XFT=no
10144 else
10145 PKG_CONFIG_MIN_VERSION=0.9.0
10146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10148 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10150 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152 $as_echo "yes" >&6; }
10153 succeeded=yes
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10156 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10157 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10159 $as_echo "$XFT_CFLAGS" >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10162 $as_echo_n "checking XFT_LIBS... " >&6; }
10163 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10165 $as_echo "$XFT_LIBS" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10169 XFT_CFLAGS=""
10170 XFT_LIBS=""
10171 ## If we have a custom action on failure, don't print errors, but
10172 ## do set a variable so people can do so.
10173 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10179 else
10180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10185 if test $succeeded = yes; then
10187 else
10188 HAVE_XFT=no
10191 ## Because xftfont.c uses XRenderQueryExtension, we also
10192 ## need to link to -lXrender.
10193 HAVE_XRENDER=no
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10195 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10196 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-lXrender $LIBS"
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10204 /* Override any GCC internal prototype to avoid an error.
10205 Use char because int might match the return type of a GCC
10206 builtin and then its argument prototype would still apply. */
10207 #ifdef __cplusplus
10208 extern "C"
10209 #endif
10210 char XRenderQueryExtension ();
10212 main ()
10214 return XRenderQueryExtension ();
10216 return 0;
10218 _ACEOF
10219 if ac_fn_c_try_link "$LINENO"; then :
10220 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10221 else
10222 ac_cv_lib_Xrender_XRenderQueryExtension=no
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10229 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10230 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
10231 HAVE_XRENDER=yes
10234 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10235 OLD_CPPFLAGS="$CPPFLAGS"
10236 OLD_CFLAGS="$CFLAGS"
10237 OLD_LIBS="$LIBS"
10238 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10239 CFLAGS="$CFLAGS $XFT_CFLAGS"
10240 XFT_LIBS="-lXrender $XFT_LIBS"
10241 LIBS="$XFT_LIBS $LIBS"
10242 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10243 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10245 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10246 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 ac_check_lib_save_LIBS=$LIBS
10250 LIBS="-lXft $XFT_LIBS $LIBS"
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char XftFontOpen ();
10262 main ()
10264 return XftFontOpen ();
10266 return 0;
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 ac_cv_lib_Xft_XftFontOpen=yes
10271 else
10272 ac_cv_lib_Xft_XftFontOpen=no
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 LIBS=$ac_check_lib_save_LIBS
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10279 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10280 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
10281 HAVE_XFT=yes
10288 if test "${HAVE_XFT}" = "yes"; then
10290 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10293 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10294 else
10295 CPPFLAGS="$OLD_CPPFLAGS"
10296 CFLAGS="$OLD_CFLAGS"
10297 LIBS="$OLD_LIBS"
10298 fi # "${HAVE_XFT}" = "yes"
10299 fi # "$HAVE_XFT" != no
10300 fi # "x${with_xft}" != "xno"
10302 if test "$HAVE_XFT" != "yes"; then
10303 HAVE_XFT=no
10307 HAVE_FREETYPE=no
10308 ## We used to allow building with FreeType and without Xft.
10309 ## However, the ftx font backend driver is not in good shape.
10310 if test "${HAVE_XFT}" = "yes"; then
10311 HAVE_FREETYPE=yes
10312 FONTCONFIG_CFLAGS=
10313 FONTCONFIG_LIBS=
10316 HAVE_LIBOTF=no
10317 if test "${HAVE_FREETYPE}" = "yes"; then
10319 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10321 if test "${with_libotf}" != "no"; then
10323 succeeded=no
10325 # Extract the first word of "pkg-config", so it can be a program name with args.
10326 set dummy pkg-config; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 case $PKG_CONFIG in
10333 [\\/]* | ?:[\\/]*)
10334 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10344 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10348 done
10349 done
10350 IFS=$as_save_IFS
10352 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10354 esac
10356 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10357 if test -n "$PKG_CONFIG"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10359 $as_echo "$PKG_CONFIG" >&6; }
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10367 if test "$PKG_CONFIG" = "no" ; then
10368 HAVE_LIBOTF=no
10369 else
10370 PKG_CONFIG_MIN_VERSION=0.9.0
10371 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10373 $as_echo_n "checking for libotf... " >&6; }
10375 if $PKG_CONFIG --exists "libotf" 2>&5; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10377 $as_echo "yes" >&6; }
10378 succeeded=yes
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10381 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10382 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10384 $as_echo "$LIBOTF_CFLAGS" >&6; }
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10387 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10388 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10390 $as_echo "$LIBOTF_LIBS" >&6; }
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10394 LIBOTF_CFLAGS=""
10395 LIBOTF_LIBS=""
10396 ## If we have a custom action on failure, don't print errors, but
10397 ## do set a variable so people can do so.
10398 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10404 else
10405 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10406 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10410 if test $succeeded = yes; then
10411 HAVE_LIBOTF=yes
10412 else
10413 HAVE_LIBOTF=no
10416 if test "$HAVE_LIBOTF" = "yes"; then
10418 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10421 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10422 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 ac_check_lib_save_LIBS=$LIBS
10426 LIBS="-lotf $LIBS"
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10430 /* Override any GCC internal prototype to avoid an error.
10431 Use char because int might match the return type of a GCC
10432 builtin and then its argument prototype would still apply. */
10433 #ifdef __cplusplus
10434 extern "C"
10435 #endif
10436 char OTF_get_variation_glyphs ();
10438 main ()
10440 return OTF_get_variation_glyphs ();
10442 return 0;
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10446 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10447 else
10448 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10450 rm -f core conftest.err conftest.$ac_objext \
10451 conftest$ac_exeext conftest.$ac_ext
10452 LIBS=$ac_check_lib_save_LIBS
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10455 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10456 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
10457 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10458 else
10459 HAVE_OTF_GET_VARIATION_GLYPHS=no
10462 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10464 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10471 HAVE_M17N_FLT=no
10472 if test "${HAVE_LIBOTF}" = yes; then
10473 if test "${with_m17n_flt}" != "no"; then
10475 succeeded=no
10477 # Extract the first word of "pkg-config", so it can be a program name with args.
10478 set dummy pkg-config; ac_word=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 $as_echo_n "checking for $ac_word... " >&6; }
10481 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 case $PKG_CONFIG in
10485 [\\/]* | ?:[\\/]*)
10486 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10496 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10500 done
10501 done
10502 IFS=$as_save_IFS
10504 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10506 esac
10508 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10509 if test -n "$PKG_CONFIG"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10511 $as_echo "$PKG_CONFIG" >&6; }
10512 else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10519 if test "$PKG_CONFIG" = "no" ; then
10520 HAVE_M17N_FLT=no
10521 else
10522 PKG_CONFIG_MIN_VERSION=0.9.0
10523 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10525 $as_echo_n "checking for m17n-flt... " >&6; }
10527 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10529 $as_echo "yes" >&6; }
10530 succeeded=yes
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10533 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10534 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10536 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10539 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10540 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10542 $as_echo "$M17N_FLT_LIBS" >&6; }
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 M17N_FLT_CFLAGS=""
10547 M17N_FLT_LIBS=""
10548 ## If we have a custom action on failure, don't print errors, but
10549 ## do set a variable so people can do so.
10550 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10556 else
10557 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10558 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10562 if test $succeeded = yes; then
10563 HAVE_M17N_FLT=yes
10564 else
10565 HAVE_M17N_FLT=no
10568 if test "$HAVE_M17N_FLT" = "yes"; then
10570 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10575 else
10576 HAVE_XFT=no
10577 HAVE_FREETYPE=no
10578 HAVE_LIBOTF=no
10579 HAVE_M17N_FLT=no
10582 ### End of font-backend (under X11) section.
10593 ### Use -lXpm if available, unless `--with-xpm=no'.
10594 HAVE_XPM=no
10595 LIBXPM=
10596 if test "${HAVE_X11}" = "yes"; then
10597 if test "${with_xpm}" != "no"; then
10598 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10599 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10601 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10602 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lXpm -lX11 $LIBS"
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char XpmReadFileToPixmap ();
10618 main ()
10620 return XpmReadFileToPixmap ();
10622 return 0;
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10627 else
10628 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10635 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10636 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
10637 HAVE_XPM=yes
10643 if test "${HAVE_XPM}" = "yes"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10645 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 #include "X11/xpm.h"
10649 #ifndef XpmReturnAllocPixels
10650 no_return_alloc_pixels
10651 #endif
10653 _ACEOF
10654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10655 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10656 HAVE_XPM=no
10657 else
10658 HAVE_XPM=yes
10660 rm -f conftest*
10663 if test "${HAVE_XPM}" = "yes"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; }
10666 else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10673 if test "${HAVE_XPM}" = "yes"; then
10675 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10677 LIBXPM=-lXpm
10682 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10683 HAVE_JPEG=no
10684 LIBJPEG=
10685 if test "${HAVE_X11}" = "yes"; then
10686 if test "${with_jpeg}" != "no"; then
10687 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10688 if test "x$ac_cv_header_jerror_h" = xyes; then :
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10690 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10691 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-ljpeg $LIBS"
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char jpeg_destroy_compress ();
10707 main ()
10709 return jpeg_destroy_compress ();
10711 return 0;
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10716 else
10717 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10724 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10725 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
10726 HAVE_JPEG=yes
10734 if test "${HAVE_JPEG}" = "yes"; then
10735 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <jpeglib.h>
10740 version=JPEG_LIB_VERSION
10742 _ACEOF
10743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10744 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10745 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10749 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10750 HAVE_JPEG=no
10752 rm -f conftest*
10755 if test "${HAVE_JPEG}" = "yes"; then
10756 LIBJPEG=-ljpeg
10761 ### Use -lpng if available, unless `--with-png=no'.
10762 HAVE_PNG=no
10763 LIBPNG=
10764 if test "${HAVE_X11}" = "yes"; then
10765 if test "${with_png}" != "no"; then
10766 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10767 # in /usr/include/libpng.
10768 for ac_header in png.h libpng/png.h
10769 do :
10770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10771 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10773 cat >>confdefs.h <<_ACEOF
10774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10775 _ACEOF
10779 done
10781 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10783 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10784 if ${ac_cv_lib_png_png_get_channels+:} false; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 ac_check_lib_save_LIBS=$LIBS
10788 LIBS="-lpng -lz -lm $LIBS"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char png_get_channels ();
10800 main ()
10802 return png_get_channels ();
10804 return 0;
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 ac_cv_lib_png_png_get_channels=yes
10809 else
10810 ac_cv_lib_png_png_get_channels=no
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10817 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10818 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
10819 HAVE_PNG=yes
10825 if test "${HAVE_PNG}" = "yes"; then
10827 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10829 LIBPNG="-lpng -lz -lm"
10834 ### Use -ltiff if available, unless `--with-tiff=no'.
10835 HAVE_TIFF=no
10836 LIBTIFF=
10837 if test "${HAVE_X11}" = "yes"; then
10838 if test "${with_tiff}" != "no"; then
10839 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10840 if test "x$ac_cv_header_tiffio_h" = xyes; then :
10841 tifflibs="-lz -lm"
10842 # At least one tiff package requires the jpeg library.
10843 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10845 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10846 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ltiff $tifflibs $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char TIFFGetVersion ();
10862 main ()
10864 return TIFFGetVersion ();
10866 return 0;
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_tiff_TIFFGetVersion=yes
10871 else
10872 ac_cv_lib_tiff_TIFFGetVersion=no
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10879 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10880 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
10881 HAVE_TIFF=yes
10889 if test "${HAVE_TIFF}" = "yes"; then
10891 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10893 LIBTIFF=-ltiff
10898 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10899 HAVE_GIF=no
10900 LIBGIF=
10901 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10902 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10903 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
10904 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10905 # Earlier versions can crash Emacs.
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10907 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10908 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911 ac_check_lib_save_LIBS=$LIBS
10912 LIBS="-lgif $LIBS"
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10919 #ifdef __cplusplus
10920 extern "C"
10921 #endif
10922 char EGifPutExtensionLast ();
10924 main ()
10926 return EGifPutExtensionLast ();
10928 return 0;
10930 _ACEOF
10931 if ac_fn_c_try_link "$LINENO"; then :
10932 ac_cv_lib_gif_EGifPutExtensionLast=yes
10933 else
10934 ac_cv_lib_gif_EGifPutExtensionLast=no
10936 rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10938 LIBS=$ac_check_lib_save_LIBS
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10941 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10942 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
10943 HAVE_GIF=yes
10944 else
10945 HAVE_GIF=maybe
10952 if test "$HAVE_GIF" = yes; then
10953 LIBGIF=-lgif
10954 elif test "$HAVE_GIF" = maybe; then
10955 # If gif_lib.h but no libgif, try libungif.
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10957 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10958 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960 else
10961 ac_check_lib_save_LIBS=$LIBS
10962 LIBS="-lungif $LIBS"
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10966 /* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
10969 #ifdef __cplusplus
10970 extern "C"
10971 #endif
10972 char EGifPutExtensionLast ();
10974 main ()
10976 return EGifPutExtensionLast ();
10978 return 0;
10980 _ACEOF
10981 if ac_fn_c_try_link "$LINENO"; then :
10982 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10983 else
10984 ac_cv_lib_ungif_EGifPutExtensionLast=no
10986 rm -f core conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10988 LIBS=$ac_check_lib_save_LIBS
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10991 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10992 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
10993 HAVE_GIF=yes
10994 else
10995 HAVE_GIF=no
10998 test "$HAVE_GIF" = yes && LIBGIF=-lungif
11001 if test "${HAVE_GIF}" = "yes"; then
11003 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11009 if test "${HAVE_X11}" = "yes"; then
11010 MISSING=""
11011 WITH_NO=""
11012 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11013 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11014 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11015 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11016 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11017 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11018 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11019 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11020 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11021 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11023 if test "X${MISSING}" != X; then
11024 as_fn_error $? "The following required libraries were not found:
11025 $MISSING
11026 Maybe some development libraries/packages are missing?
11027 If you don't want to link with them give
11028 $WITH_NO
11029 as options to configure" "$LINENO" 5
11033 ### Use -lgpm if available, unless `--with-gpm=no'.
11034 HAVE_GPM=no
11035 LIBGPM=
11036 MOUSE_SUPPORT=
11037 if test "${with_gpm}" != "no"; then
11038 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11039 if test "x$ac_cv_header_gpm_h" = xyes; then :
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11041 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11042 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-lgpm $LIBS"
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11050 /* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 char Gpm_Open ();
11058 main ()
11060 return Gpm_Open ();
11062 return 0;
11064 _ACEOF
11065 if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_lib_gpm_Gpm_Open=yes
11067 else
11068 ac_cv_lib_gpm_Gpm_Open=no
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11075 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11076 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
11077 HAVE_GPM=yes
11084 if test "${HAVE_GPM}" = "yes"; then
11086 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11088 LIBGPM=-lgpm
11089 ## May be reset below.
11090 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11095 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11096 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
11098 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11104 C_SWITCH_X_SYSTEM=
11105 ### Use NeXTstep API to implement GUI.
11106 if test "${HAVE_NS}" = "yes"; then
11108 $as_echo "#define HAVE_NS 1" >>confdefs.h
11110 if test "${NS_IMPL_COCOA}" = "yes"; then
11112 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11114 GNU_OBJC_CFLAGS=
11116 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11118 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11120 # See also .m.o rule in Makefile.in */
11121 # FIXME: are all these flags really needed? Document here why. */
11122 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11123 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11125 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11127 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11130 # We also have mouse menus.
11131 HAVE_MENUS=yes
11132 OTHER_FILES=ns-app
11136 ### Use session management (-lSM -lICE) if available
11137 HAVE_X_SM=no
11138 LIBXSM=
11139 if test "${HAVE_X11}" = "yes"; then
11140 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11141 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11143 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11144 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 ac_check_lib_save_LIBS=$LIBS
11148 LIBS="-lSM -lICE $LIBS"
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char SmcOpenConnection ();
11160 main ()
11162 return SmcOpenConnection ();
11164 return 0;
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 ac_cv_lib_SM_SmcOpenConnection=yes
11169 else
11170 ac_cv_lib_SM_SmcOpenConnection=no
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_lib_save_LIBS
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11177 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11178 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
11179 HAVE_X_SM=yes
11186 if test "${HAVE_X_SM}" = "yes"; then
11188 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11190 LIBXSM="-lSM -lICE"
11191 case "$LIBS" in
11192 *-lSM*) ;;
11193 *) LIBS="$LIBXSM $LIBS" ;;
11194 esac
11199 ### Use libxml (-lxml2) if available
11200 if test "${with_xml2}" != "no"; then
11201 ### I'm not sure what the version number should be, so I just guessed.
11203 succeeded=no
11205 # Extract the first word of "pkg-config", so it can be a program name with args.
11206 set dummy pkg-config; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 case $PKG_CONFIG in
11213 [\\/]* | ?:[\\/]*)
11214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11228 done
11229 done
11230 IFS=$as_save_IFS
11232 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11234 esac
11236 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11237 if test -n "$PKG_CONFIG"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11239 $as_echo "$PKG_CONFIG" >&6; }
11240 else
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11247 if test "$PKG_CONFIG" = "no" ; then
11248 HAVE_LIBXML2=no
11249 else
11250 PKG_CONFIG_MIN_VERSION=0.9.0
11251 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11253 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11255 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11257 $as_echo "yes" >&6; }
11258 succeeded=yes
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11261 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11262 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11264 $as_echo "$LIBXML2_CFLAGS" >&6; }
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11267 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11268 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11270 $as_echo "$LIBXML2_LIBS" >&6; }
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 LIBXML2_CFLAGS=""
11275 LIBXML2_LIBS=""
11276 ## If we have a custom action on failure, don't print errors, but
11277 ## do set a variable so people can do so.
11278 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11284 else
11285 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11286 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11290 if test $succeeded = yes; then
11291 HAVE_LIBXML2=yes
11292 else
11293 HAVE_LIBXML2=no
11296 if test "${HAVE_LIBXML2}" = "yes"; then
11297 LIBS="$LIBXML2_LIBS $LIBS"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11299 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11300 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-lxml2 $LIBS"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char htmlReadMemory ();
11316 main ()
11318 return htmlReadMemory ();
11320 return 0;
11322 _ACEOF
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_xml2_htmlReadMemory=yes
11325 else
11326 ac_cv_lib_xml2_htmlReadMemory=no
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11333 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11334 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
11335 HAVE_LIBXML2=yes
11336 else
11337 HAVE_LIBXML2=no
11340 if test "${HAVE_LIBXML2}" = "yes"; then
11342 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11344 else
11345 LIBXML2_LIBS=""
11346 LIBXML2_CFLAGS=""
11353 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11355 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11356 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361 #include <netdb.h>
11363 main ()
11365 return h_errno;
11367 return 0;
11369 _ACEOF
11370 if ac_fn_c_try_link "$LINENO"; then :
11371 emacs_cv_netdb_declares_h_errno=yes
11372 else
11373 emacs_cv_netdb_declares_h_errno=no
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11379 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11380 if test $emacs_cv_netdb_declares_h_errno = yes; then
11382 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11386 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11387 if test "x$ac_cv_type_size_t" = xyes; then :
11389 else
11391 cat >>confdefs.h <<_ACEOF
11392 #define size_t unsigned int
11393 _ACEOF
11397 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11398 # for constant arguments. Useless!
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11400 $as_echo_n "checking for working alloca.h... " >&6; }
11401 if ${ac_cv_working_alloca_h+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406 #include <alloca.h>
11408 main ()
11410 char *p = (char *) alloca (2 * sizeof (int));
11411 if (p) return 0;
11413 return 0;
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 ac_cv_working_alloca_h=yes
11418 else
11419 ac_cv_working_alloca_h=no
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11425 $as_echo "$ac_cv_working_alloca_h" >&6; }
11426 if test $ac_cv_working_alloca_h = yes; then
11428 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11433 $as_echo_n "checking for alloca... " >&6; }
11434 if ${ac_cv_func_alloca_works+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11439 #ifdef __GNUC__
11440 # define alloca __builtin_alloca
11441 #else
11442 # ifdef _MSC_VER
11443 # include <malloc.h>
11444 # define alloca _alloca
11445 # else
11446 # ifdef HAVE_ALLOCA_H
11447 # include <alloca.h>
11448 # else
11449 # ifdef _AIX
11450 #pragma alloca
11451 # else
11452 # ifndef alloca /* predefined by HP cc +Olibcalls */
11453 void *alloca (size_t);
11454 # endif
11455 # endif
11456 # endif
11457 # endif
11458 #endif
11461 main ()
11463 char *p = (char *) alloca (1);
11464 if (p) return 0;
11466 return 0;
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 ac_cv_func_alloca_works=yes
11471 else
11472 ac_cv_func_alloca_works=no
11474 rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11478 $as_echo "$ac_cv_func_alloca_works" >&6; }
11480 if test $ac_cv_func_alloca_works = yes; then
11482 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11484 else
11485 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11486 # that cause trouble. Some versions do not even contain alloca or
11487 # contain a buggy version. If you still want to use their alloca,
11488 # use ar to extract alloca.o from them instead of compiling alloca.c.
11490 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11492 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11496 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11497 if ${ac_cv_os_cray+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502 #if defined CRAY && ! defined CRAY2
11503 webecray
11504 #else
11505 wenotbecray
11506 #endif
11508 _ACEOF
11509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11510 $EGREP "webecray" >/dev/null 2>&1; then :
11511 ac_cv_os_cray=yes
11512 else
11513 ac_cv_os_cray=no
11515 rm -f conftest*
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11519 $as_echo "$ac_cv_os_cray" >&6; }
11520 if test $ac_cv_os_cray = yes; then
11521 for ac_func in _getb67 GETB67 getb67; do
11522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11523 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11524 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11526 cat >>confdefs.h <<_ACEOF
11527 #define CRAY_STACKSEG_END $ac_func
11528 _ACEOF
11530 break
11533 done
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11537 $as_echo_n "checking stack direction for C alloca... " >&6; }
11538 if ${ac_cv_c_stack_direction+:} false; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 if test "$cross_compiling" = yes; then :
11542 ac_cv_c_stack_direction=0
11543 else
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546 $ac_includes_default
11548 find_stack_direction ()
11550 static char *addr = 0;
11551 auto char dummy;
11552 if (addr == 0)
11554 addr = &dummy;
11555 return find_stack_direction ();
11557 else
11558 return (&dummy > addr) ? 1 : -1;
11562 main ()
11564 return find_stack_direction () < 0;
11566 _ACEOF
11567 if ac_fn_c_try_run "$LINENO"; then :
11568 ac_cv_c_stack_direction=1
11569 else
11570 ac_cv_c_stack_direction=-1
11572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11573 conftest.$ac_objext conftest.beam conftest.$ac_ext
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11578 $as_echo "$ac_cv_c_stack_direction" >&6; }
11579 cat >>confdefs.h <<_ACEOF
11580 #define STACK_DIRECTION $ac_cv_c_stack_direction
11581 _ACEOF
11587 if test x"$ac_cv_func_alloca_works" != xyes; then
11588 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
11591 # fmod, logb, and frexp are found in -lm on most systems.
11592 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11594 $as_echo_n "checking for sqrt in -lm... " >&6; }
11595 if ${ac_cv_lib_m_sqrt+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 ac_check_lib_save_LIBS=$LIBS
11599 LIBS="-lm $LIBS"
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11606 #ifdef __cplusplus
11607 extern "C"
11608 #endif
11609 char sqrt ();
11611 main ()
11613 return sqrt ();
11615 return 0;
11617 _ACEOF
11618 if ac_fn_c_try_link "$LINENO"; then :
11619 ac_cv_lib_m_sqrt=yes
11620 else
11621 ac_cv_lib_m_sqrt=no
11623 rm -f core conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11628 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11629 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
11630 cat >>confdefs.h <<_ACEOF
11631 #define HAVE_LIBM 1
11632 _ACEOF
11634 LIBS="-lm $LIBS"
11639 # Check for mail-locking functions in a "mail" library. Probably this should
11640 # have the same check as for liblockfile below.
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11642 $as_echo_n "checking for maillock in -lmail... " >&6; }
11643 if ${ac_cv_lib_mail_maillock+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 ac_check_lib_save_LIBS=$LIBS
11647 LIBS="-lmail $LIBS"
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11651 /* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11654 #ifdef __cplusplus
11655 extern "C"
11656 #endif
11657 char maillock ();
11659 main ()
11661 return maillock ();
11663 return 0;
11665 _ACEOF
11666 if ac_fn_c_try_link "$LINENO"; then :
11667 ac_cv_lib_mail_maillock=yes
11668 else
11669 ac_cv_lib_mail_maillock=no
11671 rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673 LIBS=$ac_check_lib_save_LIBS
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11676 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11677 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
11678 have_mail=yes
11679 else
11680 have_mail=no
11683 if test $have_mail = yes; then
11684 LIBS_MAIL=-lmail
11685 LIBS="$LIBS_MAIL $LIBS"
11687 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11689 else
11690 LIBS_MAIL=
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11693 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11694 if ${ac_cv_lib_lockfile_maillock+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 ac_check_lib_save_LIBS=$LIBS
11698 LIBS="-llockfile $LIBS"
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11702 /* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11705 #ifdef __cplusplus
11706 extern "C"
11707 #endif
11708 char maillock ();
11710 main ()
11712 return maillock ();
11714 return 0;
11716 _ACEOF
11717 if ac_fn_c_try_link "$LINENO"; then :
11718 ac_cv_lib_lockfile_maillock=yes
11719 else
11720 ac_cv_lib_lockfile_maillock=no
11722 rm -f core conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11724 LIBS=$ac_check_lib_save_LIBS
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11727 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11728 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
11729 have_lockfile=yes
11730 else
11731 have_lockfile=no
11734 if test $have_lockfile = yes; then
11735 LIBS_MAIL=-llockfile
11736 LIBS="$LIBS_MAIL $LIBS"
11738 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11740 else
11741 # If we have the shared liblockfile, assume we must use it for mail
11742 # locking (e.g. Debian). If we couldn't link against liblockfile
11743 # (no liblockfile.a installed), ensure that we don't need to.
11744 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11745 set dummy liblockfile.so; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_prog_liblockfile+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 if test -n "$liblockfile"; then
11752 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11753 else
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11756 for as_dir in $as_dummy
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11762 ac_cv_prog_liblockfile="yes"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11766 done
11767 done
11768 IFS=$as_save_IFS
11770 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11773 liblockfile=$ac_cv_prog_liblockfile
11774 if test -n "$liblockfile"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11776 $as_echo "$liblockfile" >&6; }
11777 else
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11783 if test $ac_cv_prog_liblockfile = yes; then
11784 as_fn_error $? "Shared liblockfile found but can't link against it.
11785 This probably means that movemail could lose mail.
11786 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11789 for ac_func in touchlock
11790 do :
11791 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11792 if test "x$ac_cv_func_touchlock" = xyes; then :
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_TOUCHLOCK 1
11795 _ACEOF
11798 done
11800 for ac_header in maillock.h
11801 do :
11802 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11803 if test "x$ac_cv_header_maillock_h" = xyes; then :
11804 cat >>confdefs.h <<_ACEOF
11805 #define HAVE_MAILLOCK_H 1
11806 _ACEOF
11810 done
11814 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11815 ## interlock access to the mail spool. The alternative is a lock file named
11816 ## /usr/spool/mail/$USER.lock.
11817 mail_lock=no
11818 case "$opsys" in
11819 aix4-2) mail_lock="lockf" ;;
11821 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11823 ## On GNU/Linux systems, both methods are used by various mail programs.
11824 ## I assume most people are using newer mailers that have heard of flock.
11825 ## Change this if you need to.
11826 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11827 ## configure gets the right answers, and that means *NOT* using flock.
11828 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11829 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11830 ## Debian maintainer hasn't provided a clean fix for Emacs.
11831 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11832 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11833 ## correct logic. -- fx
11834 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11835 ## liblockfile is a Free Software replacement for libmail, used on
11836 ## Debian systems and elsewhere. -rfr.
11837 gnu-*)
11838 mail_lock="flock"
11839 if test $have_mail = yes || test $have_lockfile = yes; then
11840 test $ac_cv_header_maillock_h = yes && mail_lock=no
11843 esac
11845 BLESSMAIL_TARGET=
11846 case "$mail_lock" in
11847 flock)
11848 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11851 lockf)
11852 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11855 *) BLESSMAIL_TARGET="need-blessmail" ;;
11856 esac
11860 for ac_func in gethostname getdomainname dup2 \
11861 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11862 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11863 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11864 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11865 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11866 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11867 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11868 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11869 cfmakeraw cfsetspeed isnan copysign __executable_start
11870 do :
11871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11873 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11874 cat >>confdefs.h <<_ACEOF
11875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11876 _ACEOF
11879 done
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
11883 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
11884 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11891 main ()
11893 __builtin_unwind_init ();
11895 return 0;
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"; then :
11899 emacs_cv_func___builtin_unwind_init=yes
11900 else
11901 emacs_cv_func___builtin_unwind_init=no
11903 rm -f core conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
11907 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
11908 if test $emacs_cv_func___builtin_unwind_init = yes; then
11910 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
11914 for ac_header in sys/un.h
11915 do :
11916 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11917 if test "x$ac_cv_header_sys_un_h" = xyes; then :
11918 cat >>confdefs.h <<_ACEOF
11919 #define HAVE_SYS_UN_H 1
11920 _ACEOF
11924 done
11932 for ac_func in $ac_func_list
11933 do :
11934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11936 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11937 cat >>confdefs.h <<_ACEOF
11938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11939 _ACEOF
11942 done
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11949 $as_echo_n "checking for working mktime... " >&6; }
11950 if ${ac_cv_func_working_mktime+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test "$cross_compiling" = yes; then :
11954 ac_cv_func_working_mktime=no
11955 else
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958 /* Test program from Paul Eggert and Tony Leneis. */
11959 #ifdef TIME_WITH_SYS_TIME
11960 # include <sys/time.h>
11961 # include <time.h>
11962 #else
11963 # ifdef HAVE_SYS_TIME_H
11964 # include <sys/time.h>
11965 # else
11966 # include <time.h>
11967 # endif
11968 #endif
11970 #include <limits.h>
11971 #include <stdlib.h>
11973 #ifdef HAVE_UNISTD_H
11974 # include <unistd.h>
11975 #endif
11977 #ifndef HAVE_ALARM
11978 # define alarm(X) /* empty */
11979 #endif
11981 /* Work around redefinition to rpl_putenv by other config tests. */
11982 #undef putenv
11984 static time_t time_t_max;
11985 static time_t time_t_min;
11987 /* Values we'll use to set the TZ environment variable. */
11988 static const char *tz_strings[] = {
11989 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11990 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11992 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11994 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11995 Based on a problem report from Andreas Jaeger. */
11996 static int
11997 spring_forward_gap ()
11999 /* glibc (up to about 1998-10-07) failed this test. */
12000 struct tm tm;
12002 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12003 instead of "TZ=America/Vancouver" in order to detect the bug even
12004 on systems that don't support the Olson extension, or don't have the
12005 full zoneinfo tables installed. */
12006 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12008 tm.tm_year = 98;
12009 tm.tm_mon = 3;
12010 tm.tm_mday = 5;
12011 tm.tm_hour = 2;
12012 tm.tm_min = 0;
12013 tm.tm_sec = 0;
12014 tm.tm_isdst = -1;
12015 return mktime (&tm) != (time_t) -1;
12018 static int
12019 mktime_test1 (time_t now)
12021 struct tm *lt;
12022 return ! (lt = localtime (&now)) || mktime (lt) == now;
12025 static int
12026 mktime_test (time_t now)
12028 return (mktime_test1 (now)
12029 && mktime_test1 ((time_t) (time_t_max - now))
12030 && mktime_test1 ((time_t) (time_t_min + now)));
12033 static int
12034 irix_6_4_bug ()
12036 /* Based on code from Ariel Faigon. */
12037 struct tm tm;
12038 tm.tm_year = 96;
12039 tm.tm_mon = 3;
12040 tm.tm_mday = 0;
12041 tm.tm_hour = 0;
12042 tm.tm_min = 0;
12043 tm.tm_sec = 0;
12044 tm.tm_isdst = -1;
12045 mktime (&tm);
12046 return tm.tm_mon == 2 && tm.tm_mday == 31;
12049 static int
12050 bigtime_test (int j)
12052 struct tm tm;
12053 time_t now;
12054 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12055 now = mktime (&tm);
12056 if (now != (time_t) -1)
12058 struct tm *lt = localtime (&now);
12059 if (! (lt
12060 && lt->tm_year == tm.tm_year
12061 && lt->tm_mon == tm.tm_mon
12062 && lt->tm_mday == tm.tm_mday
12063 && lt->tm_hour == tm.tm_hour
12064 && lt->tm_min == tm.tm_min
12065 && lt->tm_sec == tm.tm_sec
12066 && lt->tm_yday == tm.tm_yday
12067 && lt->tm_wday == tm.tm_wday
12068 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12069 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12070 return 0;
12072 return 1;
12075 static int
12076 year_2050_test ()
12078 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12079 ignoring leap seconds. */
12080 unsigned long int answer = 2527315200UL;
12082 struct tm tm;
12083 time_t t;
12084 tm.tm_year = 2050 - 1900;
12085 tm.tm_mon = 2 - 1;
12086 tm.tm_mday = 1;
12087 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12088 tm.tm_isdst = -1;
12090 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12091 instead of "TZ=America/Vancouver" in order to detect the bug even
12092 on systems that don't support the Olson extension, or don't have the
12093 full zoneinfo tables installed. */
12094 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12096 t = mktime (&tm);
12098 /* Check that the result is either a failure, or close enough
12099 to the correct answer that we can assume the discrepancy is
12100 due to leap seconds. */
12101 return (t == (time_t) -1
12102 || (0 < t && answer - 120 <= t && t <= answer + 120));
12106 main ()
12108 time_t t, delta;
12109 int i, j;
12111 /* This test makes some buggy mktime implementations loop.
12112 Give up after 60 seconds; a mktime slower than that
12113 isn't worth using anyway. */
12114 alarm (60);
12116 for (;;)
12118 t = (time_t_max << 1) + 1;
12119 if (t <= time_t_max)
12120 break;
12121 time_t_max = t;
12123 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12125 delta = time_t_max / 997; /* a suitable prime number */
12126 for (i = 0; i < N_STRINGS; i++)
12128 if (tz_strings[i])
12129 putenv ((char*) tz_strings[i]);
12131 for (t = 0; t <= time_t_max - delta; t += delta)
12132 if (! mktime_test (t))
12133 return 1;
12134 if (! (mktime_test ((time_t) 1)
12135 && mktime_test ((time_t) (60 * 60))
12136 && mktime_test ((time_t) (60 * 60 * 24))))
12137 return 1;
12139 for (j = 1; ; j <<= 1)
12140 if (! bigtime_test (j))
12141 return 1;
12142 else if (INT_MAX / 2 < j)
12143 break;
12144 if (! bigtime_test (INT_MAX))
12145 return 1;
12147 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12149 _ACEOF
12150 if ac_fn_c_try_run "$LINENO"; then :
12151 ac_cv_func_working_mktime=yes
12152 else
12153 ac_cv_func_working_mktime=no
12155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12156 conftest.$ac_objext conftest.beam conftest.$ac_ext
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12161 $as_echo "$ac_cv_func_working_mktime" >&6; }
12162 if test $ac_cv_func_working_mktime = no; then
12163 case " $LIBOBJS " in
12164 *" mktime.$ac_objext "* ) ;;
12165 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12167 esac
12171 if test "$ac_cv_func_working_mktime" = no; then
12173 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12177 ac_have_func=no # yes means we've found a way to get the load average.
12179 # Make sure getloadavg.c is where it belongs, at configure-time.
12180 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12181 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12183 ac_save_LIBS=$LIBS
12185 # Check for getloadavg, but be sure not to touch the cache variable.
12186 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12187 if test "x$ac_cv_func_getloadavg" = xyes; then :
12188 exit 0
12189 else
12190 exit 1
12192 ) && ac_have_func=yes
12194 # On HPUX9, an unprivileged user can get load averages through this function.
12195 for ac_func in pstat_getdynamic
12196 do :
12197 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12198 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
12199 cat >>confdefs.h <<_ACEOF
12200 #define HAVE_PSTAT_GETDYNAMIC 1
12201 _ACEOF
12204 done
12207 # Solaris has libkstat which does not require root.
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12209 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12210 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-lkstat $LIBS"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 char kstat_open ();
12226 main ()
12228 return kstat_open ();
12230 return 0;
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_lib_kstat_kstat_open=yes
12235 else
12236 ac_cv_lib_kstat_kstat_open=no
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12243 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12244 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_LIBKSTAT 1
12247 _ACEOF
12249 LIBS="-lkstat $LIBS"
12253 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12255 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12256 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12257 # to get the right answer into the cache.
12258 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12259 if test $ac_have_func = no; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12261 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12262 if ${ac_cv_lib_elf_elf_begin+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-lelf $LIBS"
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char elf_begin ();
12278 main ()
12280 return elf_begin ();
12282 return 0;
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_lib_elf_elf_begin=yes
12287 else
12288 ac_cv_lib_elf_elf_begin=no
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12295 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12296 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
12297 LIBS="-lelf $LIBS"
12301 if test $ac_have_func = no; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12303 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12304 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-lkvm $LIBS"
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12315 #ifdef __cplusplus
12316 extern "C"
12317 #endif
12318 char kvm_open ();
12320 main ()
12322 return kvm_open ();
12324 return 0;
12326 _ACEOF
12327 if ac_fn_c_try_link "$LINENO"; then :
12328 ac_cv_lib_kvm_kvm_open=yes
12329 else
12330 ac_cv_lib_kvm_kvm_open=no
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12334 LIBS=$ac_check_lib_save_LIBS
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12337 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12338 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
12339 LIBS="-lkvm $LIBS"
12342 # Check for the 4.4BSD definition of getloadavg.
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12344 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12345 if ${ac_cv_lib_util_getloadavg+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-lutil $LIBS"
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12353 /* Override any GCC internal prototype to avoid an error.
12354 Use char because int might match the return type of a GCC
12355 builtin and then its argument prototype would still apply. */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 char getloadavg ();
12361 main ()
12363 return getloadavg ();
12365 return 0;
12367 _ACEOF
12368 if ac_fn_c_try_link "$LINENO"; then :
12369 ac_cv_lib_util_getloadavg=yes
12370 else
12371 ac_cv_lib_util_getloadavg=no
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12378 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12379 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
12380 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12385 if test $ac_have_func = no; then
12386 # There is a commonly available library for RS/6000 AIX.
12387 # Since it is not a standard part of AIX, it might be installed locally.
12388 ac_getloadavg_LIBS=$LIBS
12389 LIBS="-L/usr/local/lib $LIBS"
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12391 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12392 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 ac_check_lib_save_LIBS=$LIBS
12396 LIBS="-lgetloadavg $LIBS"
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12400 /* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
12403 #ifdef __cplusplus
12404 extern "C"
12405 #endif
12406 char getloadavg ();
12408 main ()
12410 return getloadavg ();
12412 return 0;
12414 _ACEOF
12415 if ac_fn_c_try_link "$LINENO"; then :
12416 ac_cv_lib_getloadavg_getloadavg=yes
12417 else
12418 ac_cv_lib_getloadavg_getloadavg=no
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12425 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12426 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
12427 LIBS="-lgetloadavg $LIBS"
12428 else
12429 LIBS=$ac_getloadavg_LIBS
12434 # Make sure it is really in the library, if we think we found it,
12435 # otherwise set up the replacement function.
12436 for ac_func in getloadavg
12437 do :
12438 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12439 if test "x$ac_cv_func_getloadavg" = xyes; then :
12440 cat >>confdefs.h <<_ACEOF
12441 #define HAVE_GETLOADAVG 1
12442 _ACEOF
12444 else
12445 case " $LIBOBJS " in
12446 *" getloadavg.$ac_objext "* ) ;;
12447 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12449 esac
12452 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12454 # Figure out what our getloadavg.c needs.
12455 ac_have_func=no
12456 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12457 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
12458 ac_have_func=yes
12460 $as_echo "#define DGUX 1" >>confdefs.h
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12463 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12464 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-ldgc $LIBS"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char dg_sys_info ();
12480 main ()
12482 return dg_sys_info ();
12484 return 0;
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 ac_cv_lib_dgc_dg_sys_info=yes
12489 else
12490 ac_cv_lib_dgc_dg_sys_info=no
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12497 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12498 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
12499 cat >>confdefs.h <<_ACEOF
12500 #define HAVE_LIBDGC 1
12501 _ACEOF
12503 LIBS="-ldgc $LIBS"
12511 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12512 if test "x$ac_cv_header_locale_h" = xyes; then :
12517 for ac_func in setlocale
12518 do :
12519 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12520 if test "x$ac_cv_func_setlocale" = xyes; then :
12521 cat >>confdefs.h <<_ACEOF
12522 #define HAVE_SETLOCALE 1
12523 _ACEOF
12526 done
12529 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12530 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12531 # Irix 4.0.5F has the header but not the library.
12532 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
12533 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
12534 ac_have_func=yes
12536 $as_echo "#define SVR4 1" >>confdefs.h
12540 if test $ac_have_func = no; then
12541 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12542 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
12543 ac_have_func=yes
12545 $as_echo "#define UMAX 1" >>confdefs.h
12548 $as_echo "#define UMAX4_3 1" >>confdefs.h
12555 if test $ac_have_func = no; then
12556 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12557 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
12558 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12565 if test $ac_have_func = no; then
12566 for ac_header in mach/mach.h
12567 do :
12568 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12569 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
12570 cat >>confdefs.h <<_ACEOF
12571 #define HAVE_MACH_MACH_H 1
12572 _ACEOF
12576 done
12580 for ac_header in nlist.h
12581 do :
12582 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12583 if test "x$ac_cv_header_nlist_h" = xyes; then :
12584 cat >>confdefs.h <<_ACEOF
12585 #define HAVE_NLIST_H 1
12586 _ACEOF
12587 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12589 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
12591 cat >>confdefs.h <<_ACEOF
12592 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12593 _ACEOF
12596 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12603 done
12606 done
12609 # Some definitions of getloadavg require that the program be installed setgid.
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12611 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12612 if ${ac_cv_func_getloadavg_setgid+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12618 #ifdef LDAV_PRIVILEGED
12619 Yowza Am I SETGID yet
12620 #endif
12621 _ACEOF
12622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12623 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12624 ac_cv_func_getloadavg_setgid=yes
12625 else
12626 ac_cv_func_getloadavg_setgid=no
12628 rm -f conftest*
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12632 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12633 if test $ac_cv_func_getloadavg_setgid = yes; then
12634 NEED_SETGID=true
12636 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12638 else
12639 NEED_SETGID=false
12642 if test $ac_cv_func_getloadavg_setgid = yes; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12644 $as_echo_n "checking group of /dev/kmem... " >&6; }
12645 if ${ac_cv_group_kmem+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12649 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12650 # If we got an error (system does not support symlinks), try without -L.
12651 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12652 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12653 | sed -ne 's/[ ][ ]*/ /g;
12654 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12655 / /s/.* //;p;'`
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12659 $as_echo "$ac_cv_group_kmem" >&6; }
12660 KMEM_GROUP=$ac_cv_group_kmem
12662 if test "x$ac_save_LIBS" = x; then
12663 GETLOADAVG_LIBS=$LIBS
12664 else
12665 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12667 LIBS=$ac_save_LIBS
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12672 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12673 if ${ac_cv_sys_largefile_source+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 while :; do
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679 #include <sys/types.h> /* for off_t */
12680 #include <stdio.h>
12682 main ()
12684 int (*fp) (FILE *, off_t, int) = fseeko;
12685 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12687 return 0;
12689 _ACEOF
12690 if ac_fn_c_try_link "$LINENO"; then :
12691 ac_cv_sys_largefile_source=no; break
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697 #define _LARGEFILE_SOURCE 1
12698 #include <sys/types.h> /* for off_t */
12699 #include <stdio.h>
12701 main ()
12703 int (*fp) (FILE *, off_t, int) = fseeko;
12704 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12706 return 0;
12708 _ACEOF
12709 if ac_fn_c_try_link "$LINENO"; then :
12710 ac_cv_sys_largefile_source=1; break
12712 rm -f core conftest.err conftest.$ac_objext \
12713 conftest$ac_exeext conftest.$ac_ext
12714 ac_cv_sys_largefile_source=unknown
12715 break
12716 done
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12719 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12720 case $ac_cv_sys_largefile_source in #(
12721 no | unknown) ;;
12723 cat >>confdefs.h <<_ACEOF
12724 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12725 _ACEOF
12727 esac
12728 rm -rf conftest*
12730 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12731 # in glibc 2.1.3, but that breaks too many other things.
12732 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12733 if test $ac_cv_sys_largefile_source != unknown; then
12735 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12740 # Configure getopt.
12741 # getopt.m4 serial 10
12743 # The getopt module assume you want GNU getopt, with getopt_long etc,
12744 # rather than vanilla POSIX getopt. This means your your code should
12745 # always include <getopt.h> for the getopt prototypes.
12757 # Prerequisites of lib/getopt*.
12762 GETOPT_H=
12763 for ac_header in getopt.h
12764 do :
12765 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12766 if test "x$ac_cv_header_getopt_h" = xyes; then :
12767 cat >>confdefs.h <<_ACEOF
12768 #define HAVE_GETOPT_H 1
12769 _ACEOF
12771 else
12772 GETOPT_H=getopt.h
12775 done
12777 if test -z "$GETOPT_H"; then
12778 for ac_func in getopt_long_only
12779 do :
12780 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12781 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
12782 cat >>confdefs.h <<_ACEOF
12783 #define HAVE_GETOPT_LONG_ONLY 1
12784 _ACEOF
12786 else
12787 GETOPT_H=getopt.h
12789 done
12793 if test -z "$GETOPT_H"; then
12794 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12796 if test "x$ac_cv_have_decl_optreset" = xyes; then :
12797 GETOPT_H=getopt.h
12802 if test -z "$GETOPT_H"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12804 $as_echo_n "checking for working GNU getopt function... " >&6; }
12805 if ${gl_cv_func_gnu_getopt+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 if test "$cross_compiling" = yes; then :
12809 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12811 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
12812 gl_cv_func_gnu_getopt=no
12813 else
12814 gl_cv_func_gnu_getopt=yes
12817 else
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820 #include <getopt.h>
12822 main ()
12825 char *myargv[3];
12826 myargv[0] = "conftest";
12827 myargv[1] = "-+";
12828 myargv[2] = 0;
12829 return getopt (2, myargv, "+a") != '?';
12832 return 0;
12834 _ACEOF
12835 if ac_fn_c_try_run "$LINENO"; then :
12836 gl_cv_func_gnu_getopt=yes
12837 else
12838 gl_cv_func_gnu_getopt=no
12840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12841 conftest.$ac_objext conftest.beam conftest.$ac_ext
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12846 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12847 if test "$gl_cv_func_gnu_getopt" = "no"; then
12848 GETOPT_H=getopt.h
12854 if test -n "$GETOPT_H"; then :
12857 GETOPT_H=getopt.h
12859 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12864 GETOPTOBJS='getopt.o getopt1.o'
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12871 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12872 if ${ac_cv_func_getpgrp_void+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 # Use it with a single arg.
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878 $ac_includes_default
12880 main ()
12882 getpgrp (0);
12884 return 0;
12886 _ACEOF
12887 if ac_fn_c_try_compile "$LINENO"; then :
12888 ac_cv_func_getpgrp_void=no
12889 else
12890 ac_cv_func_getpgrp_void=yes
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12896 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12897 if test $ac_cv_func_getpgrp_void = yes; then
12899 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12904 for ac_func in strftime
12905 do :
12906 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12907 if test "x$ac_cv_func_strftime" = xyes; then :
12908 cat >>confdefs.h <<_ACEOF
12909 #define HAVE_STRFTIME 1
12910 _ACEOF
12912 else
12913 # strftime is in -lintl on SCO UNIX.
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12915 $as_echo_n "checking for strftime in -lintl... " >&6; }
12916 if ${ac_cv_lib_intl_strftime+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 ac_check_lib_save_LIBS=$LIBS
12920 LIBS="-lintl $LIBS"
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12924 /* Override any GCC internal prototype to avoid an error.
12925 Use char because int might match the return type of a GCC
12926 builtin and then its argument prototype would still apply. */
12927 #ifdef __cplusplus
12928 extern "C"
12929 #endif
12930 char strftime ();
12932 main ()
12934 return strftime ();
12936 return 0;
12938 _ACEOF
12939 if ac_fn_c_try_link "$LINENO"; then :
12940 ac_cv_lib_intl_strftime=yes
12941 else
12942 ac_cv_lib_intl_strftime=no
12944 rm -f core conftest.err conftest.$ac_objext \
12945 conftest$ac_exeext conftest.$ac_ext
12946 LIBS=$ac_check_lib_save_LIBS
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12949 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12950 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12951 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12953 LIBS="-lintl $LIBS"
12957 done
12960 # UNIX98 PTYs.
12961 for ac_func in grantpt
12962 do :
12963 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12964 if test "x$ac_cv_func_grantpt" = xyes; then :
12965 cat >>confdefs.h <<_ACEOF
12966 #define HAVE_GRANTPT 1
12967 _ACEOF
12970 done
12973 # PTY-related GNU extensions.
12974 for ac_func in getpt
12975 do :
12976 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12977 if test "x$ac_cv_func_getpt" = xyes; then :
12978 cat >>confdefs.h <<_ACEOF
12979 #define HAVE_GETPT 1
12980 _ACEOF
12983 done
12986 # Check this now, so that we will NOT find the above functions in ncurses.
12987 # That is because we have not set up to link ncurses in lib-src.
12988 # It's better to believe a function is not available
12989 # than to expect to find it in ncurses.
12990 # Also we need tputs and friends to be able to build at all.
12991 have_tputs_et_al=true
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12993 $as_echo_n "checking for library containing tputs... " >&6; }
12994 if ${ac_cv_search_tputs+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 ac_func_search_save_LIBS=$LIBS
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char tputs ();
13009 main ()
13011 return tputs ();
13013 return 0;
13015 _ACEOF
13016 for ac_lib in '' ncurses terminfo termcap; do
13017 if test -z "$ac_lib"; then
13018 ac_res="none required"
13019 else
13020 ac_res=-l$ac_lib
13021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13023 if ac_fn_c_try_link "$LINENO"; then :
13024 ac_cv_search_tputs=$ac_res
13026 rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext
13028 if ${ac_cv_search_tputs+:} false; then :
13029 break
13031 done
13032 if ${ac_cv_search_tputs+:} false; then :
13034 else
13035 ac_cv_search_tputs=no
13037 rm conftest.$ac_ext
13038 LIBS=$ac_func_search_save_LIBS
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13041 $as_echo "$ac_cv_search_tputs" >&6; }
13042 ac_res=$ac_cv_search_tputs
13043 if test "$ac_res" != no; then :
13044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13046 else
13047 have_tputs_et_al=false
13050 if test "$have_tputs_et_al" != true; then
13051 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
13052 Maybe some development libraries/packages are missing? Try installing
13053 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13055 # Must define this when any termcap library is found.
13057 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13059 ## FIXME This was the cpp logic, but I am not sure it is right.
13060 ## The above test has not necessarily found libncurses.
13061 HAVE_LIBNCURSES=yes
13063 ## Use terminfo instead of termcap?
13064 ## Note only system files NOT using terminfo are:
13065 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13066 ## darwin|gnu without ncurses.
13067 TERMINFO=no
13068 LIBS_TERMCAP=
13069 case "$opsys" in
13070 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13071 ## hpux10-20: Use the system provided termcap(3) library.
13072 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13073 ## is necessary. Otherwise Emacs dumps core when run -nw.
13074 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13076 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13077 ## The ncurses library has been moved out of the System framework in
13078 ## Mac OS X 10.2. So if configure detects it, set the command-line
13079 ## option to use it.
13080 darwin|gnu*)
13081 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13082 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13083 TERMINFO=yes
13084 LIBS_TERMCAP="-lncurses"
13088 freebsd)
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13090 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13091 if ${emacs_cv_freebsd_terminfo+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13096 #include <osreldate.h>
13098 main ()
13100 #if __FreeBSD_version < 400000
13101 fail;
13102 #endif
13105 return 0;
13107 _ACEOF
13108 if ac_fn_c_try_link "$LINENO"; then :
13109 emacs_cv_freebsd_terminfo=yes
13110 else
13111 emacs_cv_freebsd_terminfo=no
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13119 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13121 if test $emacs_cv_freebsd_terminfo = yes; then
13122 TERMINFO=yes
13123 LIBS_TERMCAP="-lncurses"
13124 else
13125 LIBS_TERMCAP="-ltermcap"
13129 netbsd)
13130 if test $ac_cv_search_tputs = -lterminfo; then
13131 TERMINFO=yes
13132 LIBS_TERMCAP="-lterminfo"
13133 else
13134 LIBS_TERMCAP="-ltermcap"
13138 esac
13140 case "$opsys" in
13141 ## hpux: Make sure we get select from libc rather than from libcurses
13142 ## because libcurses on HPUX 10.10 has a broken version of select.
13143 ## We used to use -lc -lcurses, but this may be cleaner.
13144 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13146 openbsd) LIBS_TERMCAP="-lncurses" ;;
13148 ## Must use system termcap, if we use any termcap. It does special things.
13149 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13150 esac
13152 TERMCAP_OBJ=tparam.o
13153 if test $TERMINFO = yes; then
13155 $as_echo "#define TERMINFO 1" >>confdefs.h
13158 ## Default used to be -ltermcap. Add a case above if need something else.
13159 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13161 TERMCAP_OBJ=terminfo.o
13167 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13168 resolv=no
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171 #include <netinet/in.h>
13172 #include <arpa/nameser.h>
13173 #include <resolv.h>
13175 main ()
13177 return res_init();
13179 return 0;
13181 _ACEOF
13182 if ac_fn_c_try_link "$LINENO"; then :
13183 have_res_init=yes
13184 else
13185 have_res_init=no
13187 rm -f core conftest.err conftest.$ac_objext \
13188 conftest$ac_exeext conftest.$ac_ext
13189 if test "$have_res_init" = no; then
13190 OLIBS="$LIBS"
13191 LIBS="$LIBS -lresolv"
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13193 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13196 #include <netinet/in.h>
13197 #include <arpa/nameser.h>
13198 #include <resolv.h>
13200 main ()
13202 return res_init();
13204 return 0;
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"; then :
13208 have_res_init=yes
13209 else
13210 have_res_init=no
13212 rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13215 $as_echo "$have_res_init" >&6; }
13216 if test "$have_res_init" = yes ; then
13217 resolv=yes
13219 LIBS="$OLIBS"
13222 if test "$have_res_init" = yes; then
13224 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13228 # Do we need the Hesiod library to provide the support routines?
13229 LIBHESIOD=
13230 if test "$with_hesiod" != no ; then
13231 # Don't set $LIBS here -- see comments above. FIXME which comments?
13232 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13233 if test "x$ac_cv_func_res_send" = xyes; then :
13235 else
13236 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13237 if test "x$ac_cv_func___res_send" = xyes; then :
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13241 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13242 if ${ac_cv_lib_resolv_res_send+:} false; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 ac_check_lib_save_LIBS=$LIBS
13246 LIBS="-lresolv $LIBS"
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char res_send ();
13258 main ()
13260 return res_send ();
13262 return 0;
13264 _ACEOF
13265 if ac_fn_c_try_link "$LINENO"; then :
13266 ac_cv_lib_resolv_res_send=yes
13267 else
13268 ac_cv_lib_resolv_res_send=no
13270 rm -f core conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13275 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13276 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
13277 resolv=yes
13278 else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13280 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13281 if ${ac_cv_lib_resolv___res_send+:} false; then :
13282 $as_echo_n "(cached) " >&6
13283 else
13284 ac_check_lib_save_LIBS=$LIBS
13285 LIBS="-lresolv $LIBS"
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13289 /* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13292 #ifdef __cplusplus
13293 extern "C"
13294 #endif
13295 char __res_send ();
13297 main ()
13299 return __res_send ();
13301 return 0;
13303 _ACEOF
13304 if ac_fn_c_try_link "$LINENO"; then :
13305 ac_cv_lib_resolv___res_send=yes
13306 else
13307 ac_cv_lib_resolv___res_send=no
13309 rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13311 LIBS=$ac_check_lib_save_LIBS
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13314 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13315 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
13316 resolv=yes
13325 if test "$resolv" = yes ; then
13326 RESOLVLIB=-lresolv
13327 else
13328 RESOLVLIB=
13330 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13331 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13335 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13336 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-lhesiod $RESOLVLIB $LIBS"
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13347 #ifdef __cplusplus
13348 extern "C"
13349 #endif
13350 char hes_getmailhost ();
13352 main ()
13354 return hes_getmailhost ();
13356 return 0;
13358 _ACEOF
13359 if ac_fn_c_try_link "$LINENO"; then :
13360 ac_cv_lib_hesiod_hes_getmailhost=yes
13361 else
13362 ac_cv_lib_hesiod_hes_getmailhost=no
13364 rm -f core conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13369 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13370 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
13371 hesiod=yes
13372 else
13379 if test x"$hesiod" = xyes; then
13381 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13383 LIBHESIOD=-lhesiod
13388 # Do we need libresolv (due to res_init or Hesiod)?
13389 if test "$resolv" = yes ; then
13391 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13393 LIBRESOLV=-lresolv
13394 else
13395 LIBRESOLV=
13399 # These tell us which Kerberos-related libraries to use.
13400 COM_ERRLIB=
13401 CRYPTOLIB=
13402 KRB5LIB=
13403 DESLIB=
13404 KRB4LIB=
13406 if test "${with_kerberos}" != no; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13408 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13409 if ${ac_cv_lib_com_err_com_err+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 ac_check_lib_save_LIBS=$LIBS
13413 LIBS="-lcom_err $LIBS"
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13417 /* Override any GCC internal prototype to avoid an error.
13418 Use char because int might match the return type of a GCC
13419 builtin and then its argument prototype would still apply. */
13420 #ifdef __cplusplus
13421 extern "C"
13422 #endif
13423 char com_err ();
13425 main ()
13427 return com_err ();
13429 return 0;
13431 _ACEOF
13432 if ac_fn_c_try_link "$LINENO"; then :
13433 ac_cv_lib_com_err_com_err=yes
13434 else
13435 ac_cv_lib_com_err_com_err=no
13437 rm -f core conftest.err conftest.$ac_objext \
13438 conftest$ac_exeext conftest.$ac_ext
13439 LIBS=$ac_check_lib_save_LIBS
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13442 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13443 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13444 have_com_err=yes
13445 else
13446 have_com_err=no
13449 if test $have_com_err = yes; then
13450 COM_ERRLIB=-lcom_err
13451 LIBS="$COM_ERRLIB $LIBS"
13453 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13457 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13458 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 ac_check_lib_save_LIBS=$LIBS
13462 LIBS="-lcrypto $LIBS"
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13466 /* Override any GCC internal prototype to avoid an error.
13467 Use char because int might match the return type of a GCC
13468 builtin and then its argument prototype would still apply. */
13469 #ifdef __cplusplus
13470 extern "C"
13471 #endif
13472 char mit_des_cbc_encrypt ();
13474 main ()
13476 return mit_des_cbc_encrypt ();
13478 return 0;
13480 _ACEOF
13481 if ac_fn_c_try_link "$LINENO"; then :
13482 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13483 else
13484 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13486 rm -f core conftest.err conftest.$ac_objext \
13487 conftest$ac_exeext conftest.$ac_ext
13488 LIBS=$ac_check_lib_save_LIBS
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13491 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13492 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
13493 have_crypto=yes
13494 else
13495 have_crypto=no
13498 if test $have_crypto = yes; then
13499 CRYPTOLIB=-lcrypto
13500 LIBS="$CRYPTOLIB $LIBS"
13502 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13506 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13507 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 ac_check_lib_save_LIBS=$LIBS
13511 LIBS="-lk5crypto $LIBS"
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13515 /* Override any GCC internal prototype to avoid an error.
13516 Use char because int might match the return type of a GCC
13517 builtin and then its argument prototype would still apply. */
13518 #ifdef __cplusplus
13519 extern "C"
13520 #endif
13521 char mit_des_cbc_encrypt ();
13523 main ()
13525 return mit_des_cbc_encrypt ();
13527 return 0;
13529 _ACEOF
13530 if ac_fn_c_try_link "$LINENO"; then :
13531 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13532 else
13533 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13535 rm -f core conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13540 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13541 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
13542 have_k5crypto=yes
13543 else
13544 have_k5crypto=no
13547 if test $have_k5crypto = yes; then
13548 CRYPTOLIB=-lk5crypto
13549 LIBS="$CRYPTOLIB $LIBS"
13551 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13555 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13556 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
13557 $as_echo_n "(cached) " >&6
13558 else
13559 ac_check_lib_save_LIBS=$LIBS
13560 LIBS="-lkrb5 $LIBS"
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13564 /* Override any GCC internal prototype to avoid an error.
13565 Use char because int might match the return type of a GCC
13566 builtin and then its argument prototype would still apply. */
13567 #ifdef __cplusplus
13568 extern "C"
13569 #endif
13570 char krb5_init_context ();
13572 main ()
13574 return krb5_init_context ();
13576 return 0;
13578 _ACEOF
13579 if ac_fn_c_try_link "$LINENO"; then :
13580 ac_cv_lib_krb5_krb5_init_context=yes
13581 else
13582 ac_cv_lib_krb5_krb5_init_context=no
13584 rm -f core conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586 LIBS=$ac_check_lib_save_LIBS
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13589 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13590 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
13591 have_krb5=yes
13592 else
13593 have_krb5=no
13596 if test $have_krb5=yes; then
13597 KRB5LIB=-lkrb5
13598 LIBS="$KRB5LIB $LIBS"
13600 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13603 if test "${with_kerberos5}" = no; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13605 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13606 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 ac_check_lib_save_LIBS=$LIBS
13610 LIBS="-ldes425 $LIBS"
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13614 /* Override any GCC internal prototype to avoid an error.
13615 Use char because int might match the return type of a GCC
13616 builtin and then its argument prototype would still apply. */
13617 #ifdef __cplusplus
13618 extern "C"
13619 #endif
13620 char des_cbc_encrypt ();
13622 main ()
13624 return des_cbc_encrypt ();
13626 return 0;
13628 _ACEOF
13629 if ac_fn_c_try_link "$LINENO"; then :
13630 ac_cv_lib_des425_des_cbc_encrypt=yes
13631 else
13632 ac_cv_lib_des425_des_cbc_encrypt=no
13634 rm -f core conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 LIBS=$ac_check_lib_save_LIBS
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13639 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13640 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
13641 have_des425=yes
13642 else
13643 have_des425=no
13646 if test $have_des425 = yes; then
13647 DESLIB=-ldes425
13648 LIBS="$DESLIB $LIBS"
13650 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13652 else
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13654 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13655 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 ac_check_lib_save_LIBS=$LIBS
13659 LIBS="-ldes $LIBS"
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13666 #ifdef __cplusplus
13667 extern "C"
13668 #endif
13669 char des_cbc_encrypt ();
13671 main ()
13673 return des_cbc_encrypt ();
13675 return 0;
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679 ac_cv_lib_des_des_cbc_encrypt=yes
13680 else
13681 ac_cv_lib_des_des_cbc_encrypt=no
13683 rm -f core conftest.err conftest.$ac_objext \
13684 conftest$ac_exeext conftest.$ac_ext
13685 LIBS=$ac_check_lib_save_LIBS
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13688 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13689 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
13690 have_des=yes
13691 else
13692 have_des=no
13695 if test $have_des = yes; then
13696 DESLIB=-ldes
13697 LIBS="$DESLIB $LIBS"
13699 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13704 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13705 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
13706 $as_echo_n "(cached) " >&6
13707 else
13708 ac_check_lib_save_LIBS=$LIBS
13709 LIBS="-lkrb4 $LIBS"
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13713 /* Override any GCC internal prototype to avoid an error.
13714 Use char because int might match the return type of a GCC
13715 builtin and then its argument prototype would still apply. */
13716 #ifdef __cplusplus
13717 extern "C"
13718 #endif
13719 char krb_get_cred ();
13721 main ()
13723 return krb_get_cred ();
13725 return 0;
13727 _ACEOF
13728 if ac_fn_c_try_link "$LINENO"; then :
13729 ac_cv_lib_krb4_krb_get_cred=yes
13730 else
13731 ac_cv_lib_krb4_krb_get_cred=no
13733 rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 LIBS=$ac_check_lib_save_LIBS
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13738 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13739 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
13740 have_krb4=yes
13741 else
13742 have_krb4=no
13745 if test $have_krb4 = yes; then
13746 KRB4LIB=-lkrb4
13747 LIBS="$KRB4LIB $LIBS"
13749 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13751 else
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13753 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13754 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 ac_check_lib_save_LIBS=$LIBS
13758 LIBS="-lkrb $LIBS"
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13762 /* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13765 #ifdef __cplusplus
13766 extern "C"
13767 #endif
13768 char krb_get_cred ();
13770 main ()
13772 return krb_get_cred ();
13774 return 0;
13776 _ACEOF
13777 if ac_fn_c_try_link "$LINENO"; then :
13778 ac_cv_lib_krb_krb_get_cred=yes
13779 else
13780 ac_cv_lib_krb_krb_get_cred=no
13782 rm -f core conftest.err conftest.$ac_objext \
13783 conftest$ac_exeext conftest.$ac_ext
13784 LIBS=$ac_check_lib_save_LIBS
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13787 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13788 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
13789 have_krb=yes
13790 else
13791 have_krb=no
13794 if test $have_krb = yes; then
13795 KRB4LIB=-lkrb
13796 LIBS="$KRB4LIB $LIBS"
13798 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13804 if test "${with_kerberos5}" != no; then
13805 for ac_header in krb5.h
13806 do :
13807 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13808 if test "x$ac_cv_header_krb5_h" = xyes; then :
13809 cat >>confdefs.h <<_ACEOF
13810 #define HAVE_KRB5_H 1
13811 _ACEOF
13812 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13814 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
13816 cat >>confdefs.h <<_ACEOF
13817 #define HAVE_KRB5_ERROR_TEXT 1
13818 _ACEOF
13822 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13824 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
13826 cat >>confdefs.h <<_ACEOF
13827 #define HAVE_KRB5_ERROR_E_TEXT 1
13828 _ACEOF
13835 done
13837 else
13838 for ac_header in des.h
13839 do :
13840 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13841 if test "x$ac_cv_header_des_h" = xyes; then :
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_DES_H 1
13844 _ACEOF
13846 else
13847 for ac_header in kerberosIV/des.h
13848 do :
13849 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13850 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_KERBEROSIV_DES_H 1
13853 _ACEOF
13855 else
13856 for ac_header in kerberos/des.h
13857 do :
13858 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13859 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
13860 cat >>confdefs.h <<_ACEOF
13861 #define HAVE_KERBEROS_DES_H 1
13862 _ACEOF
13866 done
13870 done
13874 done
13876 for ac_header in krb.h
13877 do :
13878 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13879 if test "x$ac_cv_header_krb_h" = xyes; then :
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_KRB_H 1
13882 _ACEOF
13884 else
13885 for ac_header in kerberosIV/krb.h
13886 do :
13887 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13888 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
13889 cat >>confdefs.h <<_ACEOF
13890 #define HAVE_KERBEROSIV_KRB_H 1
13891 _ACEOF
13893 else
13894 for ac_header in kerberos/krb.h
13895 do :
13896 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13897 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
13898 cat >>confdefs.h <<_ACEOF
13899 #define HAVE_KERBEROS_KRB_H 1
13900 _ACEOF
13904 done
13908 done
13912 done
13915 for ac_header in com_err.h
13916 do :
13917 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13918 if test "x$ac_cv_header_com_err_h" = xyes; then :
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_COM_ERR_H 1
13921 _ACEOF
13925 done
13935 # Solaris requires -lintl if you want strerror (which calls dgettext)
13936 # to return localized messages.
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13938 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13939 if ${ac_cv_lib_intl_dgettext+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-lintl $LIBS"
13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13947 /* Override any GCC internal prototype to avoid an error.
13948 Use char because int might match the return type of a GCC
13949 builtin and then its argument prototype would still apply. */
13950 #ifdef __cplusplus
13951 extern "C"
13952 #endif
13953 char dgettext ();
13955 main ()
13957 return dgettext ();
13959 return 0;
13961 _ACEOF
13962 if ac_fn_c_try_link "$LINENO"; then :
13963 ac_cv_lib_intl_dgettext=yes
13964 else
13965 ac_cv_lib_intl_dgettext=no
13967 rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13972 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13973 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
13974 cat >>confdefs.h <<_ACEOF
13975 #define HAVE_LIBINTL 1
13976 _ACEOF
13978 LIBS="-lintl $LIBS"
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13984 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13985 if ${emacs_cv_localtime_cache+:} false; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 if test x$ac_cv_func_tzset = xyes; then
13989 if test "$cross_compiling" = yes; then :
13990 # If we have tzset, assume the worst when cross-compiling.
13991 emacs_cv_localtime_cache=yes
13992 else
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 #include <time.h>
13996 char TZ_GMT0[] = "TZ=GMT0";
13997 char TZ_PST8[] = "TZ=PST8";
13998 main()
14000 time_t now = time ((time_t *) 0);
14001 int hour_GMT0, hour_unset;
14002 if (putenv (TZ_GMT0) != 0)
14003 exit (1);
14004 hour_GMT0 = localtime (&now)->tm_hour;
14005 unsetenv("TZ");
14006 hour_unset = localtime (&now)->tm_hour;
14007 if (putenv (TZ_PST8) != 0)
14008 exit (1);
14009 if (localtime (&now)->tm_hour == hour_GMT0)
14010 exit (1);
14011 unsetenv("TZ");
14012 if (localtime (&now)->tm_hour != hour_unset)
14013 exit (1);
14014 exit (0);
14016 _ACEOF
14017 if ac_fn_c_try_run "$LINENO"; then :
14018 emacs_cv_localtime_cache=no
14019 else
14020 emacs_cv_localtime_cache=yes
14022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14023 conftest.$ac_objext conftest.beam conftest.$ac_ext
14026 else
14027 # If we lack tzset, report that localtime does not cache TZ,
14028 # since we can't invalidate the cache if we don't have tzset.
14029 emacs_cv_localtime_cache=no
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14033 $as_echo "$emacs_cv_localtime_cache" >&6; }
14034 if test $emacs_cv_localtime_cache = yes; then
14036 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14040 if test "x$HAVE_TIMEVAL" = xyes; then
14041 for ac_func in gettimeofday
14042 do :
14043 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14044 if test "x$ac_cv_func_gettimeofday" = xyes; then :
14045 cat >>confdefs.h <<_ACEOF
14046 #define HAVE_GETTIMEOFDAY 1
14047 _ACEOF
14050 done
14052 if test $ac_cv_func_gettimeofday = yes; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14054 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14055 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
14056 $as_echo_n "(cached) " >&6
14057 else
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14061 #ifdef TIME_WITH_SYS_TIME
14062 #include <sys/time.h>
14063 #include <time.h>
14064 #else
14065 #ifdef HAVE_SYS_TIME_H
14066 #include <sys/time.h>
14067 #else
14068 #include <time.h>
14069 #endif
14070 #endif
14072 main ()
14074 struct timeval time;
14075 gettimeofday (&time, 0);
14077 return 0;
14079 _ACEOF
14080 if ac_fn_c_try_compile "$LINENO"; then :
14081 emacs_cv_gettimeofday_two_arguments=yes
14082 else
14083 emacs_cv_gettimeofday_two_arguments=no
14085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14088 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14089 if test $emacs_cv_gettimeofday_two_arguments = no; then
14091 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14097 ok_so_far=yes
14098 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14099 if test "x$ac_cv_func_socket" = xyes; then :
14101 else
14102 ok_so_far=no
14105 if test $ok_so_far = yes; then
14106 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14107 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
14109 else
14110 ok_so_far=no
14115 if test $ok_so_far = yes; then
14116 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14117 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
14119 else
14120 ok_so_far=no
14125 if test $ok_so_far = yes; then
14127 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14131 if test -f /usr/lpp/X11/bin/smt.exp; then
14133 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14138 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14139 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14141 $as_echo "yes" >&6; }
14143 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14145 else
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147 $as_echo "no" >&6; }
14150 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14151 if test "x$ac_cv_type_pid_t" = xyes; then :
14153 else
14155 cat >>confdefs.h <<_ACEOF
14156 #define pid_t int
14157 _ACEOF
14161 for ac_header in vfork.h
14162 do :
14163 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14164 if test "x$ac_cv_header_vfork_h" = xyes; then :
14165 cat >>confdefs.h <<_ACEOF
14166 #define HAVE_VFORK_H 1
14167 _ACEOF
14171 done
14173 for ac_func in fork vfork
14174 do :
14175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14176 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14177 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14178 cat >>confdefs.h <<_ACEOF
14179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14180 _ACEOF
14183 done
14185 if test "x$ac_cv_func_fork" = xyes; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14187 $as_echo_n "checking for working fork... " >&6; }
14188 if ${ac_cv_func_fork_works+:} false; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191 if test "$cross_compiling" = yes; then :
14192 ac_cv_func_fork_works=cross
14193 else
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 $ac_includes_default
14198 main ()
14201 /* By Ruediger Kuhlmann. */
14202 return fork () < 0;
14205 return 0;
14207 _ACEOF
14208 if ac_fn_c_try_run "$LINENO"; then :
14209 ac_cv_func_fork_works=yes
14210 else
14211 ac_cv_func_fork_works=no
14213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14214 conftest.$ac_objext conftest.beam conftest.$ac_ext
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14219 $as_echo "$ac_cv_func_fork_works" >&6; }
14221 else
14222 ac_cv_func_fork_works=$ac_cv_func_fork
14224 if test "x$ac_cv_func_fork_works" = xcross; then
14225 case $host in
14226 *-*-amigaos* | *-*-msdosdjgpp*)
14227 # Override, as these systems have only a dummy fork() stub
14228 ac_cv_func_fork_works=no
14231 ac_cv_func_fork_works=yes
14233 esac
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14235 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14237 ac_cv_func_vfork_works=$ac_cv_func_vfork
14238 if test "x$ac_cv_func_vfork" = xyes; then
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14240 $as_echo_n "checking for working vfork... " >&6; }
14241 if ${ac_cv_func_vfork_works+:} false; then :
14242 $as_echo_n "(cached) " >&6
14243 else
14244 if test "$cross_compiling" = yes; then :
14245 ac_cv_func_vfork_works=cross
14246 else
14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h. */
14249 /* Thanks to Paul Eggert for this test. */
14250 $ac_includes_default
14251 #include <sys/wait.h>
14252 #ifdef HAVE_VFORK_H
14253 # include <vfork.h>
14254 #endif
14255 /* On some sparc systems, changes by the child to local and incoming
14256 argument registers are propagated back to the parent. The compiler
14257 is told about this with #include <vfork.h>, but some compilers
14258 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14259 static variable whose address is put into a register that is
14260 clobbered by the vfork. */
14261 static void
14262 #ifdef __cplusplus
14263 sparc_address_test (int arg)
14264 # else
14265 sparc_address_test (arg) int arg;
14266 #endif
14268 static pid_t child;
14269 if (!child) {
14270 child = vfork ();
14271 if (child < 0) {
14272 perror ("vfork");
14273 _exit(2);
14275 if (!child) {
14276 arg = getpid();
14277 write(-1, "", 0);
14278 _exit (arg);
14284 main ()
14286 pid_t parent = getpid ();
14287 pid_t child;
14289 sparc_address_test (0);
14291 child = vfork ();
14293 if (child == 0) {
14294 /* Here is another test for sparc vfork register problems. This
14295 test uses lots of local variables, at least as many local
14296 variables as main has allocated so far including compiler
14297 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14298 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14299 reuse the register of parent for one of the local variables,
14300 since it will think that parent can't possibly be used any more
14301 in this routine. Assigning to the local variable will thus
14302 munge parent in the parent process. */
14303 pid_t
14304 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14305 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14306 /* Convince the compiler that p..p7 are live; otherwise, it might
14307 use the same hardware register for all 8 local variables. */
14308 if (p != p1 || p != p2 || p != p3 || p != p4
14309 || p != p5 || p != p6 || p != p7)
14310 _exit(1);
14312 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14313 from child file descriptors. If the child closes a descriptor
14314 before it execs or exits, this munges the parent's descriptor
14315 as well. Test for this by closing stdout in the child. */
14316 _exit(close(fileno(stdout)) != 0);
14317 } else {
14318 int status;
14319 struct stat st;
14321 while (wait(&status) != child)
14323 return (
14324 /* Was there some problem with vforking? */
14325 child < 0
14327 /* Did the child fail? (This shouldn't happen.) */
14328 || status
14330 /* Did the vfork/compiler bug occur? */
14331 || parent != getpid()
14333 /* Did the file descriptor bug occur? */
14334 || fstat(fileno(stdout), &st) != 0
14338 _ACEOF
14339 if ac_fn_c_try_run "$LINENO"; then :
14340 ac_cv_func_vfork_works=yes
14341 else
14342 ac_cv_func_vfork_works=no
14344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14345 conftest.$ac_objext conftest.beam conftest.$ac_ext
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14350 $as_echo "$ac_cv_func_vfork_works" >&6; }
14353 if test "x$ac_cv_func_fork_works" = xcross; then
14354 ac_cv_func_vfork_works=$ac_cv_func_vfork
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14356 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14359 if test "x$ac_cv_func_vfork_works" = xyes; then
14361 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14363 else
14365 $as_echo "#define vfork fork" >>confdefs.h
14368 if test "x$ac_cv_func_fork_works" = xyes; then
14370 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14376 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14377 if ${emacs_cv_langinfo_codeset+:} false; then :
14378 $as_echo_n "(cached) " >&6
14379 else
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 #include <langinfo.h>
14384 main ()
14386 char* cs = nl_langinfo(CODESET);
14388 return 0;
14390 _ACEOF
14391 if ac_fn_c_try_link "$LINENO"; then :
14392 emacs_cv_langinfo_codeset=yes
14393 else
14394 emacs_cv_langinfo_codeset=no
14396 rm -f core conftest.err conftest.$ac_objext \
14397 conftest$ac_exeext conftest.$ac_ext
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14401 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14402 if test $emacs_cv_langinfo_codeset = yes; then
14404 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14408 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14409 if test "x$ac_cv_type_size_t" = xyes; then :
14411 cat >>confdefs.h <<_ACEOF
14412 #define HAVE_SIZE_T 1
14413 _ACEOF
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14420 $as_echo_n "checking for mbstate_t... " >&6; }
14421 if ${ac_cv_type_mbstate_t+:} false; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 $ac_includes_default
14427 # include <wchar.h>
14429 main ()
14431 mbstate_t x; return sizeof x;
14433 return 0;
14435 _ACEOF
14436 if ac_fn_c_try_compile "$LINENO"; then :
14437 ac_cv_type_mbstate_t=yes
14438 else
14439 ac_cv_type_mbstate_t=no
14441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14444 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14445 if test $ac_cv_type_mbstate_t = yes; then
14447 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14449 else
14451 $as_echo "#define mbstate_t int" >>confdefs.h
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14456 $as_echo_n "checking for C restrict keyword... " >&6; }
14457 if ${emacs_cv_c_restrict+:} false; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 void fred (int *restrict x);
14464 main ()
14468 return 0;
14470 _ACEOF
14471 if ac_fn_c_try_compile "$LINENO"; then :
14472 emacs_cv_c_restrict=yes
14473 else
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476 void fred (int *__restrict x);
14478 main ()
14482 return 0;
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 emacs_cv_c_restrict=__restrict
14487 else
14488 emacs_cv_c_restrict=no
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14495 $as_echo "$emacs_cv_c_restrict" >&6; }
14496 case "$emacs_cv_c_restrict" in
14497 yes) emacs_restrict=restrict;;
14498 no) emacs_restrict="";;
14499 *) emacs_restrict="$emacs_cv_c_restrict";;
14500 esac
14501 if test "$emacs_restrict" != __restrict; then
14503 cat >>confdefs.h <<_ACEOF
14504 #define __restrict $emacs_restrict
14505 _ACEOF
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14510 $as_echo_n "checking for C restricted array declarations... " >&6; }
14511 if ${emacs_cv_c_restrict_arr+:} false; then :
14512 $as_echo_n "(cached) " >&6
14513 else
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 void fred (int x[__restrict]);
14518 main ()
14522 return 0;
14524 _ACEOF
14525 if ac_fn_c_try_compile "$LINENO"; then :
14526 emacs_cv_c_restrict_arr=yes
14527 else
14528 emacs_cv_c_restrict_arr=no
14530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14533 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14534 if test "$emacs_cv_c_restrict_arr" = yes; then
14536 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14542 # Set up the CFLAGS for real compilation, so we can substitute it.
14543 CFLAGS="$REAL_CFLAGS"
14544 CPPFLAGS="$REAL_CPPFLAGS"
14546 ## Hack to detect a buggy GCC version.
14547 if test "x$GCC" = xyes \
14548 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14549 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14550 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14551 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14554 #### Find out which version of Emacs this is.
14555 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14556 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14557 if test x"${version}" = x; then
14558 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14560 if test x"${version}" != x"$PACKAGE_VERSION"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14562 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14565 ### Specify what sort of things we'll be editing into Makefile and config.h.
14566 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14569 ## Unused?
14590 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14591 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14592 ## end of LIBX_BASE, but nothing ever set it.
14597 ## Used in lwlib/Makefile.in.
14599 if test -n "${machfile}"; then
14600 M_FILE="\$(srcdir)/${machfile}"
14601 else
14602 M_FILE=
14604 S_FILE="\$(srcdir)/${opsysfile}"
14616 cat >>confdefs.h <<_ACEOF
14617 #define EMACS_CONFIGURATION "${canonical}"
14618 _ACEOF
14621 cat >>confdefs.h <<_ACEOF
14622 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14623 _ACEOF
14625 if test -n "$machfile"; then
14627 cat >>confdefs.h <<_ACEOF
14628 #define config_machfile "${machfile}"
14629 _ACEOF
14633 cat >>confdefs.h <<_ACEOF
14634 #define config_opsysfile "${opsysfile}"
14635 _ACEOF
14638 XMENU_OBJ=
14639 XOBJ=
14640 FONT_OBJ=
14641 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14643 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14645 XMENU_OBJ=xmenu.o
14646 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14647 FONT_OBJ=xfont.o
14648 if test "$HAVE_XFT" = "yes"; then
14649 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14650 elif test "$HAVE_FREETYPE" = "yes"; then
14651 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14659 WIDGET_OBJ=
14660 MOTIF_LIBW=
14661 if test "${USE_X_TOOLKIT}" != "none" ; then
14662 WIDGET_OBJ=widget.o
14664 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14666 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14668 $as_echo "#define USE_LUCID 1" >>confdefs.h
14670 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14672 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14674 MOTIF_LIBW=-lXm
14675 case "$opsys" in
14676 gnu-linux)
14677 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14678 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14681 unixware)
14682 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14683 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14684 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14687 aix4-2)
14688 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14689 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14691 esac
14692 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14697 TOOLKIT_LIBW=
14698 case "$USE_X_TOOLKIT" in
14699 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14700 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14701 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14702 esac
14705 if test "$USE_X_TOOLKIT" = "none"; then
14706 LIBXT_OTHER="\$(LIBXSM)"
14707 OLDXMENU_TARGET="really-oldXMenu"
14708 else
14709 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14710 OLDXMENU_TARGET="really-lwlib"
14714 ## The X Menu stuff is present in the X10 distribution, but missing
14715 ## from X11. If we have X10, just use the installed library;
14716 ## otherwise, use our own copy.
14717 if test "${HAVE_X11}" = "yes" ; then
14719 $as_echo "#define HAVE_X11 1" >>confdefs.h
14722 if test "$USE_X_TOOLKIT" = "none"; then
14723 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14724 else
14725 OLDXMENU="\${lwlibdir}/liblw.a"
14727 LIBXMENU="\$(OLDXMENU)"
14728 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14729 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14730 else
14731 ## For a syntactically valid Makefile; not actually used for anything.
14732 ## See comments in src/Makefile.in.
14733 OLDXMENU=nothing
14734 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14735 if test "${HAVE_X_WINDOWS}" = "yes"; then
14736 LIBXMENU="-lXMenu"
14737 else
14738 LIBXMENU=
14740 LIBX_OTHER=
14741 OLDXMENU_DEPS=
14744 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14745 OLDXMENU_TARGET=
14746 OLDXMENU=nothing
14747 LIBXMENU=
14748 OLDXMENU_DEPS=
14757 if test "${HAVE_MENUS}" = "yes" ; then
14759 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14763 if test "${GNU_MALLOC}" = "yes" ; then
14765 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14769 RALLOC_OBJ=
14770 if test "${REL_ALLOC}" = "yes" ; then
14772 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14775 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14779 if test "$opsys" = "cygwin"; then
14780 CYGWIN_OBJ="sheap.o"
14781 ## Cygwin differs because of its unexec().
14782 PRE_ALLOC_OBJ=
14783 POST_ALLOC_OBJ=lastfile.o
14784 else
14785 CYGWIN_OBJ=
14786 PRE_ALLOC_OBJ=lastfile.o
14787 POST_ALLOC_OBJ=
14794 case "$opsys" in
14795 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14797 darwin)
14798 ## The -headerpad option tells ld (see man page) to leave room at the
14799 ## end of the header for adding load commands. Needed for dumping.
14800 ## 0x690 is the total size of 30 segment load commands (at 56
14801 ## each); under Cocoa 31 commands are required.
14802 if test "$HAVE_NS" = "yes"; then
14803 libs_nsgui="-framework AppKit"
14804 headerpad_extra=6C8
14805 else
14806 libs_nsgui=
14807 headerpad_extra=690
14809 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14811 ## This is here because src/Makefile.in did some extra fiddling around
14812 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14813 ## #ifndef LD_SWITCH_SYSTEM
14814 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14815 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14816 ## not using gcc, darwin system not on an alpha (ie darwin, since
14817 ## darwin + alpha does not occur).
14818 ## Because this was done in src/Makefile.in, the resulting part of
14819 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14820 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14821 ## rather than LD_SWITCH_SYSTEM.
14822 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14823 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14826 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14827 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14828 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14829 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14830 ## had different values in configure (in ac_link) and src/Makefile.in.
14831 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14832 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14834 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14835 esac
14837 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14838 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14844 LD_FIRSTFLAG=
14845 ORDINARY_LINK=
14846 case "$opsys" in
14847 ## gnu: GNU needs its own crt0.
14848 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14850 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14851 ## library search parth, i.e. it won't search /usr/lib for libc and
14852 ## friends. Using -nostartfiles instead avoids this problem, and
14853 ## will also work on earlier NetBSD releases.
14854 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14856 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14857 ## MkLinux/LinuxPPC needs this.
14858 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14859 gnu-*)
14860 case "$machine" in
14861 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14862 esac
14864 esac
14867 if test "x$ORDINARY_LINK" = "xyes"; then
14869 LD_FIRSTFLAG=""
14871 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14874 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14875 ## freebsd, gnu-* not on macppc|ibms390x.
14876 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14878 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14879 ## places that are difficult to figure out at make time. Fortunately,
14880 ## these same versions allow you to pass arbitrary flags on to the
14881 ## linker, so there is no reason not to use it as a linker.
14883 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14884 ## searching for libraries in its internal directories, so we have to
14885 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14886 LD_FIRSTFLAG="-nostdlib"
14889 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14890 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14895 ## FIXME? The logic here is not precisely the same as that above.
14896 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14897 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14898 LIB_GCC=
14899 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14901 case "$opsys" in
14902 freebsd|netbsd|openbsd) LIB_GCC= ;;
14904 gnu-*)
14905 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14906 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14907 case $host_cpu in
14908 arm*)
14909 LIB_GCC="-lgcc_s"
14912 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14913 ## immediately undefine it again and redefine it to empty.
14914 ## Was the C_SWITCH_X_SITE part really necessary?
14915 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14916 LIB_GCC=
14918 esac
14921 ## Ask GCC where to find libgcc.a.
14922 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14923 esac
14927 TOOLTIP_SUPPORT=
14928 WINDOW_SUPPORT=
14929 ## If we're using X11/GNUstep, define some consequences.
14930 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14932 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14935 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14937 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14938 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14940 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14941 test "$HAVE_X_WINDOWS" = "yes" && \
14942 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14952 #### Report on what we decided to do.
14953 #### Report GTK as a toolkit, even if it doesn't use Xt.
14954 #### It makes printing result more understandable as using GTK sets
14955 #### toolkit_scroll_bars to yes by default.
14956 if test "${HAVE_GTK}" = "yes"; then
14957 USE_X_TOOLKIT=GTK
14960 and_machfile=
14961 if test -n "$machfile"; then
14962 and_machfile=" and \`${machfile}'"
14965 echo "
14966 Configured for \`${canonical}'.
14968 Where should the build process find the source code? ${srcdir}
14969 What operating system and machine description files should Emacs use?
14970 \`${opsysfile}'${and_machfile}
14971 What compiler should emacs be built with? ${CC} ${CFLAGS}
14972 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14973 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14974 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14975 What window system should Emacs use? ${window_system}
14976 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14978 if test -n "${x_includes}"; then
14979 echo " Where do we find X Windows header files? ${x_includes}"
14980 else
14981 echo " Where do we find X Windows header files? Standard dirs"
14983 if test -n "${x_libraries}"; then
14984 echo " Where do we find X Windows libraries? ${x_libraries}"
14985 else
14986 echo " Where do we find X Windows libraries? Standard dirs"
14989 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14990 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14991 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14992 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14993 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14994 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14995 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14996 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14998 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14999 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
15000 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
15001 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
15002 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
15003 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
15005 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
15006 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
15007 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
15008 echo " Does Emacs use -lxft? ${HAVE_XFT}"
15010 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15011 echo
15013 if test $USE_XASSERTS = yes; then
15014 echo " Compiling with asserts turned on."
15015 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
15018 echo
15020 if test "$HAVE_NS" = "yes"; then
15021 echo
15022 echo "You must run \"make install\" in order to test the built application.
15023 The installed application will go to nextstep/Emacs.app and can be
15024 run or moved from there."
15025 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
15026 echo "The application will be fully self-contained."
15027 else
15028 echo "The lisp resources for the application will be installed under ${prefix}.
15029 You may need to run \"make install\" with sudo. The application will fail
15030 to run if these resources are not installed."
15032 echo
15036 # Remove any trailing slashes in these variables.
15037 test "${prefix}" != NONE &&
15038 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15039 test "${exec_prefix}" != NONE &&
15040 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15042 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"
15044 ac_config_commands="$ac_config_commands default"
15046 cat >confcache <<\_ACEOF
15047 # This file is a shell script that caches the results of configure
15048 # tests run on this system so they can be shared between configure
15049 # scripts and configure runs, see configure's option --config-cache.
15050 # It is not useful on other systems. If it contains results you don't
15051 # want to keep, you may remove or edit it.
15053 # config.status only pays attention to the cache file if you give it
15054 # the --recheck option to rerun configure.
15056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15058 # following values.
15060 _ACEOF
15062 # The following way of writing the cache mishandles newlines in values,
15063 # but we know of no workaround that is simple, portable, and efficient.
15064 # So, we kill variables containing newlines.
15065 # Ultrix sh set writes to stderr and can't be redirected directly,
15066 # and sets the high bit in the cache file unless we assign to the vars.
15068 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15069 eval ac_val=\$$ac_var
15070 case $ac_val in #(
15071 *${as_nl}*)
15072 case $ac_var in #(
15073 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15074 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15075 esac
15076 case $ac_var in #(
15077 _ | IFS | as_nl) ;; #(
15078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15079 *) { eval $ac_var=; unset $ac_var;} ;;
15080 esac ;;
15081 esac
15082 done
15084 (set) 2>&1 |
15085 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15086 *${as_nl}ac_space=\ *)
15087 # `set' does not quote correctly, so add quotes: double-quote
15088 # substitution turns \\\\ into \\, and sed turns \\ into \.
15089 sed -n \
15090 "s/'/'\\\\''/g;
15091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15092 ;; #(
15094 # `set' quotes correctly as required by POSIX, so do not add quotes.
15095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15097 esac |
15098 sort
15100 sed '
15101 /^ac_cv_env_/b end
15102 t clear
15103 :clear
15104 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15105 t end
15106 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15107 :end' >>confcache
15108 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15109 if test -w "$cache_file"; then
15110 if test "x$cache_file" != "x/dev/null"; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15112 $as_echo "$as_me: updating cache $cache_file" >&6;}
15113 if test ! -f "$cache_file" || test -h "$cache_file"; then
15114 cat confcache >"$cache_file"
15115 else
15116 case $cache_file in #(
15117 */* | ?:*)
15118 mv -f confcache "$cache_file"$$ &&
15119 mv -f "$cache_file"$$ "$cache_file" ;; #(
15121 mv -f confcache "$cache_file" ;;
15122 esac
15125 else
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15127 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15130 rm -f confcache
15132 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15133 # Let make expand exec_prefix.
15134 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15136 DEFS=-DHAVE_CONFIG_H
15138 ac_libobjs=
15139 ac_ltlibobjs=
15141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15142 # 1. Remove the extension, and $U if already installed.
15143 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15144 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15146 # will be set to the directory where LIBOBJS objects are built.
15147 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15148 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15149 done
15150 LIBOBJS=$ac_libobjs
15152 LTLIBOBJS=$ac_ltlibobjs
15157 : "${CONFIG_STATUS=./config.status}"
15158 ac_write_fail=0
15159 ac_clean_files_save=$ac_clean_files
15160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15162 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15163 as_write_fail=0
15164 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15165 #! $SHELL
15166 # Generated by $as_me.
15167 # Run this file to recreate the current configuration.
15168 # Compiler output produced by configure, useful for debugging
15169 # configure, is in config.log if it exists.
15171 debug=false
15172 ac_cs_recheck=false
15173 ac_cs_silent=false
15175 SHELL=\${CONFIG_SHELL-$SHELL}
15176 export SHELL
15177 _ASEOF
15178 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15179 ## -------------------- ##
15180 ## M4sh Initialization. ##
15181 ## -------------------- ##
15183 # Be more Bourne compatible
15184 DUALCASE=1; export DUALCASE # for MKS sh
15185 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15186 emulate sh
15187 NULLCMD=:
15188 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15189 # is contrary to our usage. Disable this feature.
15190 alias -g '${1+"$@"}'='"$@"'
15191 setopt NO_GLOB_SUBST
15192 else
15193 case `(set -o) 2>/dev/null` in #(
15194 *posix*) :
15195 set -o posix ;; #(
15196 *) :
15198 esac
15202 as_nl='
15204 export as_nl
15205 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15206 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15209 # Prefer a ksh shell builtin over an external printf program on Solaris,
15210 # but without wasting forks for bash or zsh.
15211 if test -z "$BASH_VERSION$ZSH_VERSION" \
15212 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15213 as_echo='print -r --'
15214 as_echo_n='print -rn --'
15215 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15216 as_echo='printf %s\n'
15217 as_echo_n='printf %s'
15218 else
15219 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15220 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15221 as_echo_n='/usr/ucb/echo -n'
15222 else
15223 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15224 as_echo_n_body='eval
15225 arg=$1;
15226 case $arg in #(
15227 *"$as_nl"*)
15228 expr "X$arg" : "X\\(.*\\)$as_nl";
15229 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15230 esac;
15231 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15233 export as_echo_n_body
15234 as_echo_n='sh -c $as_echo_n_body as_echo'
15236 export as_echo_body
15237 as_echo='sh -c $as_echo_body as_echo'
15240 # The user is always right.
15241 if test "${PATH_SEPARATOR+set}" != set; then
15242 PATH_SEPARATOR=:
15243 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15244 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15245 PATH_SEPARATOR=';'
15250 # IFS
15251 # We need space, tab and new line, in precisely that order. Quoting is
15252 # there to prevent editors from complaining about space-tab.
15253 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15254 # splitting by setting IFS to empty value.)
15255 IFS=" "" $as_nl"
15257 # Find who we are. Look in the path if we contain no directory separator.
15258 as_myself=
15259 case $0 in #((
15260 *[\\/]* ) as_myself=$0 ;;
15261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15262 for as_dir in $PATH
15264 IFS=$as_save_IFS
15265 test -z "$as_dir" && as_dir=.
15266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15267 done
15268 IFS=$as_save_IFS
15271 esac
15272 # We did not find ourselves, most probably we were run as `sh COMMAND'
15273 # in which case we are not to be found in the path.
15274 if test "x$as_myself" = x; then
15275 as_myself=$0
15277 if test ! -f "$as_myself"; then
15278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15279 exit 1
15282 # Unset variables that we do not need and which cause bugs (e.g. in
15283 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15284 # suppresses any "Segmentation fault" message there. '((' could
15285 # trigger a bug in pdksh 5.2.14.
15286 for as_var in BASH_ENV ENV MAIL MAILPATH
15287 do eval test x\${$as_var+set} = xset \
15288 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15289 done
15290 PS1='$ '
15291 PS2='> '
15292 PS4='+ '
15294 # NLS nuisances.
15295 LC_ALL=C
15296 export LC_ALL
15297 LANGUAGE=C
15298 export LANGUAGE
15300 # CDPATH.
15301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15304 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15305 # ----------------------------------------
15306 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15307 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15308 # script with STATUS, using 1 if that was 0.
15309 as_fn_error ()
15311 as_status=$1; test $as_status -eq 0 && as_status=1
15312 if test "$4"; then
15313 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15314 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15316 $as_echo "$as_me: error: $2" >&2
15317 as_fn_exit $as_status
15318 } # as_fn_error
15321 # as_fn_set_status STATUS
15322 # -----------------------
15323 # Set $? to STATUS, without forking.
15324 as_fn_set_status ()
15326 return $1
15327 } # as_fn_set_status
15329 # as_fn_exit STATUS
15330 # -----------------
15331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15332 as_fn_exit ()
15334 set +e
15335 as_fn_set_status $1
15336 exit $1
15337 } # as_fn_exit
15339 # as_fn_unset VAR
15340 # ---------------
15341 # Portably unset VAR.
15342 as_fn_unset ()
15344 { eval $1=; unset $1;}
15346 as_unset=as_fn_unset
15347 # as_fn_append VAR VALUE
15348 # ----------------------
15349 # Append the text in VALUE to the end of the definition contained in VAR. Take
15350 # advantage of any shell optimizations that allow amortized linear growth over
15351 # repeated appends, instead of the typical quadratic growth present in naive
15352 # implementations.
15353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15354 eval 'as_fn_append ()
15356 eval $1+=\$2
15358 else
15359 as_fn_append ()
15361 eval $1=\$$1\$2
15363 fi # as_fn_append
15365 # as_fn_arith ARG...
15366 # ------------------
15367 # Perform arithmetic evaluation on the ARGs, and store the result in the
15368 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15369 # must be portable across $(()) and expr.
15370 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15371 eval 'as_fn_arith ()
15373 as_val=$(( $* ))
15375 else
15376 as_fn_arith ()
15378 as_val=`expr "$@" || test $? -eq 1`
15380 fi # as_fn_arith
15383 if expr a : '\(a\)' >/dev/null 2>&1 &&
15384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15385 as_expr=expr
15386 else
15387 as_expr=false
15390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15391 as_basename=basename
15392 else
15393 as_basename=false
15396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15397 as_dirname=dirname
15398 else
15399 as_dirname=false
15402 as_me=`$as_basename -- "$0" ||
15403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15404 X"$0" : 'X\(//\)$' \| \
15405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15406 $as_echo X/"$0" |
15407 sed '/^.*\/\([^/][^/]*\)\/*$/{
15408 s//\1/
15411 /^X\/\(\/\/\)$/{
15412 s//\1/
15415 /^X\/\(\/\).*/{
15416 s//\1/
15419 s/.*/./; q'`
15421 # Avoid depending upon Character Ranges.
15422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15425 as_cr_digits='0123456789'
15426 as_cr_alnum=$as_cr_Letters$as_cr_digits
15428 ECHO_C= ECHO_N= ECHO_T=
15429 case `echo -n x` in #(((((
15430 -n*)
15431 case `echo 'xy\c'` in
15432 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15433 xy) ECHO_C='\c';;
15434 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15435 ECHO_T=' ';;
15436 esac;;
15438 ECHO_N='-n';;
15439 esac
15441 rm -f conf$$ conf$$.exe conf$$.file
15442 if test -d conf$$.dir; then
15443 rm -f conf$$.dir/conf$$.file
15444 else
15445 rm -f conf$$.dir
15446 mkdir conf$$.dir 2>/dev/null
15448 if (echo >conf$$.file) 2>/dev/null; then
15449 if ln -s conf$$.file conf$$ 2>/dev/null; then
15450 as_ln_s='ln -s'
15451 # ... but there are two gotchas:
15452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15454 # In both cases, we have to default to `cp -p'.
15455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15456 as_ln_s='cp -p'
15457 elif ln conf$$.file conf$$ 2>/dev/null; then
15458 as_ln_s=ln
15459 else
15460 as_ln_s='cp -p'
15462 else
15463 as_ln_s='cp -p'
15465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15466 rmdir conf$$.dir 2>/dev/null
15469 # as_fn_mkdir_p
15470 # -------------
15471 # Create "$as_dir" as a directory, including parents if necessary.
15472 as_fn_mkdir_p ()
15475 case $as_dir in #(
15476 -*) as_dir=./$as_dir;;
15477 esac
15478 test -d "$as_dir" || eval $as_mkdir_p || {
15479 as_dirs=
15480 while :; do
15481 case $as_dir in #(
15482 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15483 *) as_qdir=$as_dir;;
15484 esac
15485 as_dirs="'$as_qdir' $as_dirs"
15486 as_dir=`$as_dirname -- "$as_dir" ||
15487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15488 X"$as_dir" : 'X\(//\)[^/]' \| \
15489 X"$as_dir" : 'X\(//\)$' \| \
15490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15491 $as_echo X"$as_dir" |
15492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15493 s//\1/
15496 /^X\(\/\/\)[^/].*/{
15497 s//\1/
15500 /^X\(\/\/\)$/{
15501 s//\1/
15504 /^X\(\/\).*/{
15505 s//\1/
15508 s/.*/./; q'`
15509 test -d "$as_dir" && break
15510 done
15511 test -z "$as_dirs" || eval "mkdir $as_dirs"
15512 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15515 } # as_fn_mkdir_p
15516 if mkdir -p . 2>/dev/null; then
15517 as_mkdir_p='mkdir -p "$as_dir"'
15518 else
15519 test -d ./-p && rmdir ./-p
15520 as_mkdir_p=false
15523 if test -x / >/dev/null 2>&1; then
15524 as_test_x='test -x'
15525 else
15526 if ls -dL / >/dev/null 2>&1; then
15527 as_ls_L_option=L
15528 else
15529 as_ls_L_option=
15531 as_test_x='
15532 eval sh -c '\''
15533 if test -d "$1"; then
15534 test -d "$1/.";
15535 else
15536 case $1 in #(
15537 -*)set "./$1";;
15538 esac;
15539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15540 ???[sx]*):;;*)false;;esac;fi
15541 '\'' sh
15544 as_executable_p=$as_test_x
15546 # Sed expression to map a string onto a valid CPP name.
15547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15549 # Sed expression to map a string onto a valid variable name.
15550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15553 exec 6>&1
15554 ## ----------------------------------- ##
15555 ## Main body of $CONFIG_STATUS script. ##
15556 ## ----------------------------------- ##
15557 _ASEOF
15558 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561 # Save the log message, to keep $0 and so on meaningful, and to
15562 # report actual input values of CONFIG_FILES etc. instead of their
15563 # values after options handling.
15564 ac_log="
15565 This file was extended by emacs $as_me 24.0.50, which was
15566 generated by GNU Autoconf 2.68. Invocation command line was
15568 CONFIG_FILES = $CONFIG_FILES
15569 CONFIG_HEADERS = $CONFIG_HEADERS
15570 CONFIG_LINKS = $CONFIG_LINKS
15571 CONFIG_COMMANDS = $CONFIG_COMMANDS
15572 $ $0 $@
15574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15577 _ACEOF
15579 case $ac_config_files in *"
15580 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15581 esac
15583 case $ac_config_headers in *"
15584 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15585 esac
15588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15589 # Files that config.status was made for.
15590 config_files="$ac_config_files"
15591 config_headers="$ac_config_headers"
15592 config_commands="$ac_config_commands"
15594 _ACEOF
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597 ac_cs_usage="\
15598 \`$as_me' instantiates files and other configuration actions
15599 from templates according to the current configuration. Unless the files
15600 and actions are specified as TAGs, all are instantiated by default.
15602 Usage: $0 [OPTION]... [TAG]...
15604 -h, --help print this help, then exit
15605 -V, --version print version number and configuration settings, then exit
15606 --config print configuration, then exit
15607 -q, --quiet, --silent
15608 do not print progress messages
15609 -d, --debug don't remove temporary files
15610 --recheck update $as_me by reconfiguring in the same conditions
15611 --file=FILE[:TEMPLATE]
15612 instantiate the configuration file FILE
15613 --header=FILE[:TEMPLATE]
15614 instantiate the configuration header FILE
15616 Configuration files:
15617 $config_files
15619 Configuration headers:
15620 $config_headers
15622 Configuration commands:
15623 $config_commands
15625 Report bugs to the package provider."
15627 _ACEOF
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15630 ac_cs_version="\\
15631 emacs config.status 24.0.50
15632 configured by $0, generated by GNU Autoconf 2.68,
15633 with options \\"\$ac_cs_config\\"
15635 Copyright (C) 2010 Free Software Foundation, Inc.
15636 This config.status script is free software; the Free Software Foundation
15637 gives unlimited permission to copy, distribute and modify it."
15639 ac_pwd='$ac_pwd'
15640 srcdir='$srcdir'
15641 INSTALL='$INSTALL'
15642 test -n "\$AWK" || AWK=awk
15643 _ACEOF
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646 # The default lists apply if the user does not specify any file.
15647 ac_need_defaults=:
15648 while test $# != 0
15650 case $1 in
15651 --*=?*)
15652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15654 ac_shift=:
15656 --*=)
15657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15658 ac_optarg=
15659 ac_shift=:
15662 ac_option=$1
15663 ac_optarg=$2
15664 ac_shift=shift
15666 esac
15668 case $ac_option in
15669 # Handling of the options.
15670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15671 ac_cs_recheck=: ;;
15672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15673 $as_echo "$ac_cs_version"; exit ;;
15674 --config | --confi | --conf | --con | --co | --c )
15675 $as_echo "$ac_cs_config"; exit ;;
15676 --debug | --debu | --deb | --de | --d | -d )
15677 debug=: ;;
15678 --file | --fil | --fi | --f )
15679 $ac_shift
15680 case $ac_optarg in
15681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15682 '') as_fn_error $? "missing file argument" ;;
15683 esac
15684 as_fn_append CONFIG_FILES " '$ac_optarg'"
15685 ac_need_defaults=false;;
15686 --header | --heade | --head | --hea )
15687 $ac_shift
15688 case $ac_optarg in
15689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15690 esac
15691 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15692 ac_need_defaults=false;;
15693 --he | --h)
15694 # Conflict between --help and --header
15695 as_fn_error $? "ambiguous option: \`$1'
15696 Try \`$0 --help' for more information.";;
15697 --help | --hel | -h )
15698 $as_echo "$ac_cs_usage"; exit ;;
15699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15700 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15701 ac_cs_silent=: ;;
15703 # This is an error.
15704 -*) as_fn_error $? "unrecognized option: \`$1'
15705 Try \`$0 --help' for more information." ;;
15707 *) as_fn_append ac_config_targets " $1"
15708 ac_need_defaults=false ;;
15710 esac
15711 shift
15712 done
15714 ac_configure_extra_args=
15716 if $ac_cs_silent; then
15717 exec 6>/dev/null
15718 ac_configure_extra_args="$ac_configure_extra_args --silent"
15721 _ACEOF
15722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15723 if \$ac_cs_recheck; then
15724 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15725 shift
15726 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15727 CONFIG_SHELL='$SHELL'
15728 export CONFIG_SHELL
15729 exec "\$@"
15732 _ACEOF
15733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734 exec 5>>config.log
15736 echo
15737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15738 ## Running $as_me. ##
15739 _ASBOX
15740 $as_echo "$ac_log"
15741 } >&5
15743 _ACEOF
15744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15746 # INIT-COMMANDS
15748 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15750 _ACEOF
15752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15754 # Handling of arguments.
15755 for ac_config_target in $ac_config_targets
15757 case $ac_config_target in
15758 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15759 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15760 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15761 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15762 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15763 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15764 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15765 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15766 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15767 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15768 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15769 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15770 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15772 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15773 esac
15774 done
15777 # If the user did not use the arguments to specify the items to instantiate,
15778 # then the envvar interface is used. Set only those that are not.
15779 # We use the long form for the default assignment because of an extremely
15780 # bizarre bug on SunOS 4.1.3.
15781 if $ac_need_defaults; then
15782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15787 # Have a temporary directory for convenience. Make it in the build tree
15788 # simply because there is no reason against having it here, and in addition,
15789 # creating and moving files from /tmp can sometimes cause problems.
15790 # Hook for its removal unless debugging.
15791 # Note that there is a small window in which the directory will not be cleaned:
15792 # after its creation but before its name has been assigned to `$tmp'.
15793 $debug ||
15795 tmp= ac_tmp=
15796 trap 'exit_status=$?
15797 : "${ac_tmp:=$tmp}"
15798 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15800 trap 'as_fn_exit 1' 1 2 13 15
15802 # Create a (secure) tmp directory for tmp files.
15805 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15806 test -d "$tmp"
15807 } ||
15809 tmp=./conf$$-$RANDOM
15810 (umask 077 && mkdir "$tmp")
15811 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15812 ac_tmp=$tmp
15814 # Set up the scripts for CONFIG_FILES section.
15815 # No need to generate them if there are no CONFIG_FILES.
15816 # This happens for instance with `./config.status config.h'.
15817 if test -n "$CONFIG_FILES"; then
15819 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15820 ac_cs_awk_getline=:
15821 ac_cs_awk_pipe_init=
15822 ac_cs_awk_read_file='
15823 while ((getline aline < (F[key])) > 0)
15824 print(aline)
15825 close(F[key])'
15826 ac_cs_awk_pipe_fini=
15827 else
15828 ac_cs_awk_getline=false
15829 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15830 ac_cs_awk_read_file='
15831 print "|#_!!_#|"
15832 print "cat " F[key] " &&"
15833 '$ac_cs_awk_pipe_init
15834 # The final `:' finishes the AND list.
15835 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15837 ac_cr=`echo X | tr X '\015'`
15838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15839 # But we know of no other shell where ac_cr would be empty at this
15840 # point, so we can use a bashism as a fallback.
15841 if test "x$ac_cr" = x; then
15842 eval ac_cr=\$\'\\r\'
15844 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15846 ac_cs_awk_cr='\\r'
15847 else
15848 ac_cs_awk_cr=$ac_cr
15851 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15852 _ACEOF
15854 # Create commands to substitute file output variables.
15856 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15857 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15858 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15859 echo "_ACAWK" &&
15860 echo "_ACEOF"
15861 } >conf$$files.sh &&
15862 . ./conf$$files.sh ||
15863 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15864 rm -f conf$$files.sh
15867 echo "cat >conf$$subs.awk <<_ACEOF" &&
15868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15869 echo "_ACEOF"
15870 } >conf$$subs.sh ||
15871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15872 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15873 ac_delim='%!_!# '
15874 for ac_last_try in false false false false false :; do
15875 . ./conf$$subs.sh ||
15876 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15878 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15879 if test $ac_delim_n = $ac_delim_num; then
15880 break
15881 elif $ac_last_try; then
15882 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15883 else
15884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15886 done
15887 rm -f conf$$subs.sh
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15891 _ACEOF
15892 sed -n '
15894 s/^/S["/; s/!.*/"]=/
15897 s/^[^!]*!//
15898 :repl
15899 t repl
15900 s/'"$ac_delim"'$//
15901 t delim
15904 s/\(.\{148\}\)..*/\1/
15905 t more1
15906 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15909 b repl
15910 :more1
15911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15914 s/.\{148\}//
15915 t nl
15916 :delim
15918 s/\(.\{148\}\)..*/\1/
15919 t more2
15920 s/["\\]/\\&/g; s/^/"/; s/$/"/
15923 :more2
15924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15927 s/.\{148\}//
15928 t delim
15929 ' <conf$$subs.awk | sed '
15930 /^[^""]/{
15932 s/\n//
15934 ' >>$CONFIG_STATUS || ac_write_fail=1
15935 rm -f conf$$subs.awk
15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15937 _ACAWK
15938 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15939 for (key in S) S_is_set[key] = 1
15940 FS = "\a"
15941 \$ac_cs_awk_pipe_init
15944 line = $ 0
15945 nfields = split(line, field, "@")
15946 substed = 0
15947 len = length(field[1])
15948 for (i = 2; i < nfields; i++) {
15949 key = field[i]
15950 keylen = length(key)
15951 if (S_is_set[key]) {
15952 value = S[key]
15953 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15954 len += length(value) + length(field[++i])
15955 substed = 1
15956 } else
15957 len += 1 + keylen
15959 if (nfields == 3 && !substed) {
15960 key = field[2]
15961 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15962 \$ac_cs_awk_read_file
15963 next
15966 print line
15968 \$ac_cs_awk_pipe_fini
15969 _ACAWK
15970 _ACEOF
15971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15972 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15973 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15974 else
15976 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15977 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15978 _ACEOF
15980 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15981 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15982 # trailing colons and then remove the whole line if VPATH becomes empty
15983 # (actually we leave an empty line to preserve line numbers).
15984 if test "x$srcdir" = x.; then
15985 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15987 s///
15988 s/^/:/
15989 s/[ ]*$/:/
15990 s/:\$(srcdir):/:/g
15991 s/:\${srcdir}:/:/g
15992 s/:@srcdir@:/:/g
15993 s/^:*//
15994 s/:*$//
15996 s/\(=[ ]*\).*/\1/
15998 s/\n//
15999 s/^[^=]*=[ ]*$//
16003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004 fi # test -n "$CONFIG_FILES"
16006 # Set up the scripts for CONFIG_HEADERS section.
16007 # No need to generate them if there are no CONFIG_HEADERS.
16008 # This happens for instance with `./config.status Makefile'.
16009 if test -n "$CONFIG_HEADERS"; then
16010 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16011 BEGIN {
16012 _ACEOF
16014 # Transform confdefs.h into an awk script `defines.awk', embedded as
16015 # here-document in config.status, that substitutes the proper values into
16016 # config.h.in to produce config.h.
16018 # Create a delimiter string that does not exist in confdefs.h, to ease
16019 # handling of long lines.
16020 ac_delim='%!_!# '
16021 for ac_last_try in false false :; do
16022 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16023 if test -z "$ac_tt"; then
16024 break
16025 elif $ac_last_try; then
16026 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16027 else
16028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16030 done
16032 # For the awk script, D is an array of macro values keyed by name,
16033 # likewise P contains macro parameters if any. Preserve backslash
16034 # newline sequences.
16036 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16037 sed -n '
16038 s/.\{148\}/&'"$ac_delim"'/g
16039 t rset
16040 :rset
16041 s/^[ ]*#[ ]*define[ ][ ]*/ /
16042 t def
16044 :def
16045 s/\\$//
16046 t bsnl
16047 s/["\\]/\\&/g
16048 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16049 D["\1"]=" \3"/p
16050 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16052 :bsnl
16053 s/["\\]/\\&/g
16054 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16055 D["\1"]=" \3\\\\\\n"\\/p
16056 t cont
16057 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16058 t cont
16060 :cont
16062 s/.\{148\}/&'"$ac_delim"'/g
16063 t clear
16064 :clear
16065 s/\\$//
16066 t bsnlc
16067 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16069 :bsnlc
16070 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16071 b cont
16072 ' <confdefs.h | sed '
16073 s/'"$ac_delim"'/"\\\
16074 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16077 for (key in D) D_is_set[key] = 1
16078 FS = "\a"
16080 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16081 line = \$ 0
16082 split(line, arg, " ")
16083 if (arg[1] == "#") {
16084 defundef = arg[2]
16085 mac1 = arg[3]
16086 } else {
16087 defundef = substr(arg[1], 2)
16088 mac1 = arg[2]
16090 split(mac1, mac2, "(") #)
16091 macro = mac2[1]
16092 prefix = substr(line, 1, index(line, defundef) - 1)
16093 if (D_is_set[macro]) {
16094 # Preserve the white space surrounding the "#".
16095 print prefix "define", macro P[macro] D[macro]
16096 next
16097 } else {
16098 # Replace #undef with comments. This is necessary, for example,
16099 # in the case of _POSIX_SOURCE, which is predefined and required
16100 # on some systems where configure will not decide to define it.
16101 if (defundef == "undef") {
16102 print "/*", prefix defundef, macro, "*/"
16103 next
16107 { print }
16108 _ACAWK
16109 _ACEOF
16110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16111 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16112 fi # test -n "$CONFIG_HEADERS"
16115 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16116 shift
16117 for ac_tag
16119 case $ac_tag in
16120 :[FHLC]) ac_mode=$ac_tag; continue;;
16121 esac
16122 case $ac_mode$ac_tag in
16123 :[FHL]*:*);;
16124 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16125 :[FH]-) ac_tag=-:-;;
16126 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16127 esac
16128 ac_save_IFS=$IFS
16129 IFS=:
16130 set x $ac_tag
16131 IFS=$ac_save_IFS
16132 shift
16133 ac_file=$1
16134 shift
16136 case $ac_mode in
16137 :L) ac_source=$1;;
16138 :[FH])
16139 ac_file_inputs=
16140 for ac_f
16142 case $ac_f in
16143 -) ac_f="$ac_tmp/stdin";;
16144 *) # Look for the file first in the build tree, then in the source tree
16145 # (if the path is not absolute). The absolute path cannot be DOS-style,
16146 # because $ac_f cannot contain `:'.
16147 test -f "$ac_f" ||
16148 case $ac_f in
16149 [\\/$]*) false;;
16150 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16151 esac ||
16152 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16153 esac
16154 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16155 as_fn_append ac_file_inputs " '$ac_f'"
16156 done
16158 # Let's still pretend it is `configure' which instantiates (i.e., don't
16159 # use $as_me), people would be surprised to read:
16160 # /* config.h. Generated by config.status. */
16161 configure_input='Generated from '`
16162 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16163 `' by configure.'
16164 if test x"$ac_file" != x-; then
16165 configure_input="$ac_file. $configure_input"
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16167 $as_echo "$as_me: creating $ac_file" >&6;}
16169 # Neutralize special characters interpreted by sed in replacement strings.
16170 case $configure_input in #(
16171 *\&* | *\|* | *\\* )
16172 ac_sed_conf_input=`$as_echo "$configure_input" |
16173 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16174 *) ac_sed_conf_input=$configure_input;;
16175 esac
16177 case $ac_tag in
16178 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16180 esac
16182 esac
16184 ac_dir=`$as_dirname -- "$ac_file" ||
16185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16186 X"$ac_file" : 'X\(//\)[^/]' \| \
16187 X"$ac_file" : 'X\(//\)$' \| \
16188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16189 $as_echo X"$ac_file" |
16190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16191 s//\1/
16194 /^X\(\/\/\)[^/].*/{
16195 s//\1/
16198 /^X\(\/\/\)$/{
16199 s//\1/
16202 /^X\(\/\).*/{
16203 s//\1/
16206 s/.*/./; q'`
16207 as_dir="$ac_dir"; as_fn_mkdir_p
16208 ac_builddir=.
16210 case "$ac_dir" in
16211 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16213 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16214 # A ".." for each directory in $ac_dir_suffix.
16215 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16216 case $ac_top_builddir_sub in
16217 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16218 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16219 esac ;;
16220 esac
16221 ac_abs_top_builddir=$ac_pwd
16222 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16223 # for backward compatibility:
16224 ac_top_builddir=$ac_top_build_prefix
16226 case $srcdir in
16227 .) # We are building in place.
16228 ac_srcdir=.
16229 ac_top_srcdir=$ac_top_builddir_sub
16230 ac_abs_top_srcdir=$ac_pwd ;;
16231 [\\/]* | ?:[\\/]* ) # Absolute name.
16232 ac_srcdir=$srcdir$ac_dir_suffix;
16233 ac_top_srcdir=$srcdir
16234 ac_abs_top_srcdir=$srcdir ;;
16235 *) # Relative name.
16236 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16237 ac_top_srcdir=$ac_top_build_prefix$srcdir
16238 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16239 esac
16240 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16243 case $ac_mode in
16246 # CONFIG_FILE
16249 case $INSTALL in
16250 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16251 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16252 esac
16253 _ACEOF
16255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16256 # If the template does not know about datarootdir, expand it.
16257 # FIXME: This hack should be removed a few years after 2.60.
16258 ac_datarootdir_hack=; ac_datarootdir_seen=
16259 ac_sed_dataroot='
16260 /datarootdir/ {
16264 /@datadir@/p
16265 /@docdir@/p
16266 /@infodir@/p
16267 /@localedir@/p
16268 /@mandir@/p'
16269 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16270 *datarootdir*) ac_datarootdir_seen=yes;;
16271 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16273 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16274 _ACEOF
16275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16276 ac_datarootdir_hack='
16277 s&@datadir@&$datadir&g
16278 s&@docdir@&$docdir&g
16279 s&@infodir@&$infodir&g
16280 s&@localedir@&$localedir&g
16281 s&@mandir@&$mandir&g
16282 s&\\\${datarootdir}&$datarootdir&g' ;;
16283 esac
16284 _ACEOF
16286 # Neutralize VPATH when `$srcdir' = `.'.
16287 # Shell code in configure.ac might set extrasub.
16288 # FIXME: do we really want to maintain this feature?
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 ac_sed_extra="$ac_vpsub
16291 $extrasub
16292 _ACEOF
16293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16296 s|@configure_input@|$ac_sed_conf_input|;t t
16297 s&@top_builddir@&$ac_top_builddir_sub&;t t
16298 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16299 s&@srcdir@&$ac_srcdir&;t t
16300 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16301 s&@top_srcdir@&$ac_top_srcdir&;t t
16302 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16303 s&@builddir@&$ac_builddir&;t t
16304 s&@abs_builddir@&$ac_abs_builddir&;t t
16305 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16306 s&@INSTALL@&$ac_INSTALL&;t t
16307 $ac_datarootdir_hack
16309 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16310 if $ac_cs_awk_getline; then
16311 $AWK -f "$ac_tmp/subs.awk"
16312 else
16313 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16314 fi \
16315 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16318 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16320 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16322 which seems to be undefined. Please make sure it is defined" >&5
16323 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16324 which seems to be undefined. Please make sure it is defined" >&2;}
16326 rm -f "$ac_tmp/stdin"
16327 case $ac_file in
16328 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16329 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16330 esac \
16331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16335 # CONFIG_HEADER
16337 if test x"$ac_file" != x-; then
16339 $as_echo "/* $configure_input */" \
16340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16341 } >"$ac_tmp/config.h" \
16342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16343 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16345 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16346 else
16347 rm -f "$ac_file"
16348 mv "$ac_tmp/config.h" "$ac_file" \
16349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16351 else
16352 $as_echo "/* $configure_input */" \
16353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16354 || as_fn_error $? "could not create -" "$LINENO" 5
16358 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16359 $as_echo "$as_me: executing $ac_file commands" >&6;}
16361 esac
16364 case $ac_file$ac_mode in
16365 "default":C)
16367 ### Make the necessary directories, if they don't exist.
16368 for dir in etc lisp ; do
16369 test -d ${dir} || mkdir ${dir}
16370 done
16372 echo creating src/epaths.h
16373 ${MAKE-make} epaths-force
16375 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16376 echo creating src/.gdbinit
16377 echo source $srcdir/src/.gdbinit > src/.gdbinit
16382 esac
16383 done # for ac_tag
16386 as_fn_exit 0
16387 _ACEOF
16388 ac_clean_files=$ac_clean_files_save
16390 test $ac_write_fail = 0 ||
16391 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16394 # configure is writing to config.log, and then calls config.status.
16395 # config.status does its own redirection, appending to config.log.
16396 # Unfortunately, on DOS this fails, as config.log is still kept open
16397 # by configure, so config.status won't be able to write to it; its
16398 # output is simply discarded. So we exec the FD to /dev/null,
16399 # effectively closing config.log, so it can be properly (re)opened and
16400 # appended to by config.status. When coming back to configure, we
16401 # need to make the FD available again.
16402 if test "$no_create" != yes; then
16403 ac_cs_success=:
16404 ac_config_status_args=
16405 test "$silent" = yes &&
16406 ac_config_status_args="$ac_config_status_args --quiet"
16407 exec 5>/dev/null
16408 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16409 exec 5>>config.log
16410 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16411 # would make configure fail if this is the last instruction.
16412 $ac_cs_success || as_fn_exit 1
16414 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16416 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}