* lisp/calendar/appt.el (appt-check): Minor simplification.
[emacs.git] / configure
blob8c77569c485e8cf02e5e110d96bcf42282736af8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
8 # 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 DBUS_OBJ
690 DBUS_LIBS
691 DBUS_CFLAGS
692 GTK_OBJ
693 GTK_LIBS
694 GTK_CFLAGS
695 IMAGEMAGICK_LIBS
696 IMAGEMAGICK_CFLAGS
697 RSVG_LIBS
698 RSVG_CFLAGS
699 VMLIMIT_OBJ
700 GMALLOC_OBJ
701 HAVE_XSERVER
702 LIB_STANDARD
703 NS_SUPPORT
704 NS_OBJ
705 TEMACS_LDFLAGS2
706 LD_SWITCH_X_SITE_AUX_RPATH
707 LD_SWITCH_X_SITE_AUX
708 XMKMF
709 DEPFLAGS
710 MKDEPDIR
711 SET_MAKE
712 CFLAGS_SOUND
713 ALSA_LIBS
714 ALSA_CFLAGS
715 PKG_CONFIG
716 LIBSOUND
717 START_FILES
718 LIB_MATH
719 CRT_DIR
720 LIBS_SYSTEM
721 C_SWITCH_SYSTEM
722 UNEXEC_OBJ
723 C_SWITCH_MACHINE
724 LD_SWITCH_SYSTEM
725 CANNOT_DUMP
726 MAKEINFO
727 GZIP_PROG
728 INSTALL_INFO
729 RANLIB
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 C_WARNINGS_SWITCH
734 EGREP
735 GREP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 PROFILING_LDFLAGS
753 PROFILING_CFLAGS
754 MAINT
755 GZIP_INFO
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='deps_frag
795 ns_frag'
796 ac_user_opts='
797 enable_option_checking
798 with_pop
799 with_kerberos
800 with_kerberos5
801 with_hesiod
802 with_mmdf
803 with_mail_unlink
804 with_mailhost
805 with_sound
806 with_sync_input
807 with_x_toolkit
808 with_xpm
809 with_jpeg
810 with_tiff
811 with_gif
812 with_png
813 with_rsvg
814 with_xml2
815 with_imagemagick
816 with_xft
817 with_libotf
818 with_m17n_flt
819 with_toolkit_scroll_bars
820 with_xaw3d
821 with_xim
822 with_ns
823 with_gpm
824 with_dbus
825 with_gconf
826 with_selinux
827 with_gnutls
828 with_makeinfo
829 with_compress_info
830 with_pkg_config_prog
831 with_crt_dir
832 with_gnustep_conf
833 enable_ns_self_contained
834 enable_asserts
835 enable_maintainer_mode
836 enable_locallisppath
837 enable_checking
838 enable_use_lisp_union_type
839 enable_profiling
840 enable_autodepend
841 enable_largefile
842 with_x
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
853 XMKMF'
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
904 ac_prev=
905 ac_dashdash=
906 for ac_option
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
915 case $ac_option in
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) as_fn_error "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information."
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 esac
1261 done
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error "missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error "pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1347 /^X\(\/\/\)$/{
1348 s//\1/
1351 /^X\(\/\).*/{
1352 s//\1/
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1360 else
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1450 cat <<\_ACEOF
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 X features:
1458 --x-includes=DIR X include files are in DIR
1459 --x-libraries=DIR X library files are in DIR
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1470 esac
1471 cat <<\_ACEOF
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-ns-self-contained
1478 disable self contained build under NeXTstep
1479 --enable-asserts compile code with asserts enabled
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483 --enable-locallisppath=PATH
1484 directories Emacs should search for lisp files
1485 specific to this site
1486 --enable-checking[=LIST]
1487 enable expensive run-time checks. With LIST, enable
1488 only specific categories of checks. Categories are:
1489 all,yes,no. Flags are: stringbytes, stringoverrun,
1490 stringfreelist, xmallocoverrun, conslist
1491 --enable-use-lisp-union-type
1492 use a union for the Lisp_Object data type. This is
1493 only useful for development for catching certain
1494 types of bugs.
1495 --enable-profiling build emacs with profiling support. This might not
1496 work on all platforms
1497 --enable-autodepend automatically generate dependencies to .h-files.
1498 Requires GNU Make and Gcc. Enabled if GNU Make and
1499 Gcc is found
1500 --disable-largefile omit support for large files
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --without-pop don't support POP mail retrieval with movemail
1506 --with-kerberos support Kerberos-authenticated POP
1507 --with-kerberos5 support Kerberos version 5 authenticated POP
1508 --with-hesiod support Hesiod to get the POP server host
1509 --with-mmdf support MMDF mailboxes
1510 --with-mail-unlink unlink, rather than empty, mail spool after reading
1511 --with-mailhost=HOSTNAME
1512 string giving default POP mail host
1513 --without-sound don't compile with sound support
1514 --without-sync-input process async input synchronously
1515 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1516 lucid or athena, motif, no)
1517 --without-xpm don't compile with XPM image support
1518 --without-jpeg don't compile with JPEG image support
1519 --without-tiff don't compile with TIFF image support
1520 --without-gif don't compile with GIF image support
1521 --without-png don't compile with PNG image support
1522 --without-rsvg don't compile with SVG image support
1523 --without-xml2 don't compile with XML parsing support
1524 --without-imagemagick don't compile with ImageMagick image support
1525 --without-xft don't use XFT for anti aliased fonts
1526 --without-libotf don't use libotf for OpenType font support
1527 --without-m17n-flt don't use m17n-flt for text shaping
1528 --without-toolkit-scroll-bars
1529 don't use Motif or Xaw3d scroll bars
1530 --without-xaw3d don't use Xaw3d
1531 --without-xim don't use X11 XIM
1532 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1533 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1534 console
1535 --without-dbus don't compile with D-Bus support
1536 --without-gconf don't compile with GConf support
1537 --without-selinux don't compile with SELinux support
1538 --without-gnutls don't use -lgnutls for SSL/TLS support
1539 --without-makeinfo don't require makeinfo for building manuals
1540 --without-compress-info don't compress the installed Info pages
1541 --with-pkg-config-prog=PATH
1542 path to pkg-config for finding GTK and librsvg
1543 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1544 /usr/lib, or /usr/lib64 on some platforms.
1545 --with-gnustep-conf=PATH
1546 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1547 or /etc/GNUstep/GNUstep.conf
1548 --with-x use the X Window System
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1558 CPP C preprocessor
1559 XMKMF Path to xmkmf, Makefile generator for X Window System
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to the package provider.
1565 _ACEOF
1566 ac_status=$?
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 continue
1575 ac_builddir=.
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1593 case $srcdir in
1594 .) # We are building in place.
1595 ac_srcdir=.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1602 *) # Relative name.
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1617 else
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 fi || ac_status=$?
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1621 done
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626 cat <<\_ACEOF
1627 emacs configure 24.0.50
1628 generated by GNU Autoconf 2.65
1630 Copyright (C) 2009 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633 _ACEOF
1634 exit
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext
1648 if { { ac_try="$ac_compile"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1672 ac_retval=1
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=1
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_cpp ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } >/dev/null && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=1
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_cpp
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1766 # accordingly.
1767 ac_fn_c_check_header_mongrel ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 else
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1790 else
1791 ac_header_compiler=no
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1806 else
1807 ac_header_preproc=no
1809 rm -f conftest.err conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1815 yes:no: )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821 no:yes:* )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 esac
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=\$ac_header_compiler"
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_check_header_mongrel
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=$ac_status
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_run
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 } # ac_fn_c_check_header_compile
1922 # ac_fn_c_check_decl LINENO SYMBOL VAR
1923 # ------------------------------------
1924 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1925 ac_fn_c_check_decl ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1929 $as_echo_n "checking whether $2 is declared... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1937 main ()
1939 #ifndef $2
1940 (void) $2;
1941 #endif
1944 return 0;
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 eval "$3=yes"
1949 else
1950 eval "$3=no"
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_decl
1961 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1962 # ----------------------------------------------
1963 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1964 ac_fn_c_check_header_preproc ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_c_try_cpp "$LINENO"; then :
1977 eval "$3=yes"
1978 else
1979 eval "$3=no"
1981 rm -f conftest.err conftest.$ac_ext
1983 eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_header_preproc
1990 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1991 # ----------------------------------------------------
1992 # Tries to find if the field MEMBER exists in type AGGR, after including
1993 # INCLUDES, setting cache variable VAR accordingly.
1994 ac_fn_c_check_member ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1998 $as_echo_n "checking for $2.$3... " >&6; }
1999 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2006 main ()
2008 static $2 ac_aggr;
2009 if (ac_aggr.$3)
2010 return 0;
2012 return 0;
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 eval "$4=yes"
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 main ()
2024 static $2 ac_aggr;
2025 if (sizeof ac_aggr.$3)
2026 return 0;
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$4=yes"
2033 else
2034 eval "$4=no"
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 eval ac_res=\$$4
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 } # ac_fn_c_check_member
2047 # ac_fn_c_check_func LINENO FUNC VAR
2048 # ----------------------------------
2049 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2050 ac_fn_c_check_func ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2062 #define $2 innocuous_$2
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char $2 (); below.
2066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2067 <limits.h> exists even on freestanding compilers. */
2069 #ifdef __STDC__
2070 # include <limits.h>
2071 #else
2072 # include <assert.h>
2073 #endif
2075 #undef $2
2077 /* Override any GCC internal prototype to avoid an error.
2078 Use char because int might match the return type of a GCC
2079 builtin and then its argument prototype would still apply. */
2080 #ifdef __cplusplus
2081 extern "C"
2082 #endif
2083 char $2 ();
2084 /* The GNU C library defines this for functions which it implements
2085 to always fail with ENOSYS. Some functions are actually named
2086 something starting with __ and the normal name is an alias. */
2087 #if defined __stub_$2 || defined __stub___$2
2088 choke me
2089 #endif
2092 main ()
2094 return $2 ();
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_link "$LINENO"; then :
2100 eval "$3=yes"
2101 else
2102 eval "$3=no"
2104 rm -f core conftest.err conftest.$ac_objext \
2105 conftest$ac_exeext conftest.$ac_ext
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_c_check_func
2114 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115 # -------------------------------------------
2116 # Tests whether TYPE exists after having included INCLUDES, setting cache
2117 # variable VAR accordingly.
2118 ac_fn_c_check_type ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 eval "$3=no"
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 if (sizeof ($2))
2134 return 0;
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 if (sizeof (($2)))
2147 return 0;
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2154 else
2155 eval "$3=yes"
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 } # ac_fn_c_check_type
2167 cat >config.log <<_ACEOF
2168 This file contains any messages produced by compilers while
2169 running configure, to aid debugging if configure makes a mistake.
2171 It was created by emacs $as_me 24.0.50, which was
2172 generated by GNU Autoconf 2.65. Invocation command line was
2174 $ $0 $@
2176 _ACEOF
2177 exec 5>>config.log
2179 cat <<_ASUNAME
2180 ## --------- ##
2181 ## Platform. ##
2182 ## --------- ##
2184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2191 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2193 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2194 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2196 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2197 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2198 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2199 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2201 _ASUNAME
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 $as_echo "PATH: $as_dir"
2209 done
2210 IFS=$as_save_IFS
2212 } >&5
2214 cat >&5 <<_ACEOF
2217 ## ----------- ##
2218 ## Core tests. ##
2219 ## ----------- ##
2221 _ACEOF
2224 # Keep a trace of the command line.
2225 # Strip out --no-create and --no-recursion so they do not pile up.
2226 # Strip out --silent because we don't want to record it for future runs.
2227 # Also quote any args containing shell meta-characters.
2228 # Make two passes to allow for proper duplicate-argument suppression.
2229 ac_configure_args=
2230 ac_configure_args0=
2231 ac_configure_args1=
2232 ac_must_keep_next=false
2233 for ac_pass in 1 2
2235 for ac_arg
2237 case $ac_arg in
2238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2240 | -silent | --silent | --silen | --sile | --sil)
2241 continue ;;
2242 *\'*)
2243 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 esac
2245 case $ac_pass in
2246 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 as_fn_append ac_configure_args1 " '$ac_arg'"
2249 if test $ac_must_keep_next = true; then
2250 ac_must_keep_next=false # Got value, back to normal.
2251 else
2252 case $ac_arg in
2253 *=* | --config-cache | -C | -disable-* | --disable-* \
2254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2256 | -with-* | --with-* | -without-* | --without-* | --x)
2257 case "$ac_configure_args0 " in
2258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2259 esac
2261 -* ) ac_must_keep_next=true ;;
2262 esac
2264 as_fn_append ac_configure_args " '$ac_arg'"
2266 esac
2267 done
2268 done
2269 { ac_configure_args0=; unset ac_configure_args0;}
2270 { ac_configure_args1=; unset ac_configure_args1;}
2272 # When interrupted or exit'd, cleanup temporary files, and complete
2273 # config.log. We remove comments because anyway the quotes in there
2274 # would cause problems or look ugly.
2275 # WARNING: Use '\'' to represent an apostrophe within the trap.
2276 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2277 trap 'exit_status=$?
2278 # Save into config.log some information that might help in debugging.
2280 echo
2282 cat <<\_ASBOX
2283 ## ---------------- ##
2284 ## Cache variables. ##
2285 ## ---------------- ##
2286 _ASBOX
2287 echo
2288 # The following way of writing the cache mishandles newlines in values,
2290 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2291 eval ac_val=\$$ac_var
2292 case $ac_val in #(
2293 *${as_nl}*)
2294 case $ac_var in #(
2295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2297 esac
2298 case $ac_var in #(
2299 _ | IFS | as_nl) ;; #(
2300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2301 *) { eval $ac_var=; unset $ac_var;} ;;
2302 esac ;;
2303 esac
2304 done
2305 (set) 2>&1 |
2306 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2307 *${as_nl}ac_space=\ *)
2308 sed -n \
2309 "s/'\''/'\''\\\\'\'''\''/g;
2310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2311 ;; #(
2313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2315 esac |
2316 sort
2318 echo
2320 cat <<\_ASBOX
2321 ## ----------------- ##
2322 ## Output variables. ##
2323 ## ----------------- ##
2324 _ASBOX
2325 echo
2326 for ac_var in $ac_subst_vars
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2336 if test -n "$ac_subst_files"; then
2337 cat <<\_ASBOX
2338 ## ------------------- ##
2339 ## File substitutions. ##
2340 ## ------------------- ##
2341 _ASBOX
2342 echo
2343 for ac_var in $ac_subst_files
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2354 if test -s confdefs.h; then
2355 cat <<\_ASBOX
2356 ## ----------- ##
2357 ## confdefs.h. ##
2358 ## ----------- ##
2359 _ASBOX
2360 echo
2361 cat confdefs.h
2362 echo
2364 test "$ac_signal" != 0 &&
2365 $as_echo "$as_me: caught signal $ac_signal"
2366 $as_echo "$as_me: exit $exit_status"
2367 } >&5
2368 rm -f core *.core core.conftest.* &&
2369 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370 exit $exit_status
2372 for ac_signal in 1 2 13 15; do
2373 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374 done
2375 ac_signal=0
2377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378 rm -f -r conftest* confdefs.h
2380 $as_echo "/* confdefs.h */" > confdefs.h
2382 # Predefined preprocessor variables.
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_NAME "$PACKAGE_NAME"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_STRING "$PACKAGE_STRING"
2398 _ACEOF
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402 _ACEOF
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_URL "$PACKAGE_URL"
2406 _ACEOF
2409 # Let the site file select an alternate cache file if it wants to.
2410 # Prefer an explicitly selected file to automatically selected ones.
2411 ac_site_file1=NONE
2412 ac_site_file2=NONE
2413 if test -n "$CONFIG_SITE"; then
2414 ac_site_file1=$CONFIG_SITE
2415 elif test "x$prefix" != xNONE; then
2416 ac_site_file1=$prefix/share/config.site
2417 ac_site_file2=$prefix/etc/config.site
2418 else
2419 ac_site_file1=$ac_default_prefix/share/config.site
2420 ac_site_file2=$ac_default_prefix/etc/config.site
2422 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424 test "x$ac_site_file" = xNONE && continue
2425 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's/^/| /' "$ac_site_file" >&5
2429 . "$ac_site_file"
2431 done
2433 if test -r "$cache_file"; then
2434 # Some versions of bash will fail to source /dev/null (special files
2435 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2436 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2438 $as_echo "$as_me: loading cache $cache_file" >&6;}
2439 case $cache_file in
2440 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2441 *) . "./$cache_file";;
2442 esac
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2446 $as_echo "$as_me: creating cache $cache_file" >&6;}
2447 >$cache_file
2450 as_fn_append ac_header_list " stdlib.h"
2451 as_fn_append ac_header_list " unistd.h"
2452 as_fn_append ac_header_list " sys/param.h"
2453 as_fn_append ac_header_list " sys/time.h"
2454 as_fn_append ac_func_list " alarm"
2455 # Check that the precious variables saved in the cache have kept the same
2456 # value.
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2464 set,)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,set)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,);;
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2491 fi;;
2492 esac
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2495 case $ac_new_val in
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2498 esac
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 esac
2504 done
2505 if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2516 ac_ext=c
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2527 test "$program_prefix" != NONE &&
2528 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE &&
2531 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $.
2533 # By default was `s,x,x', remove it if useless.
2534 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2535 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538 lispdir='${datadir}/emacs/${version}/lisp'
2539 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2540 '${datadir}/emacs/site-lisp'
2541 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2542 etcdir='${datadir}/emacs/${version}/etc'
2543 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2544 docdir='${datadir}/emacs/${version}/etc'
2545 gamedir='${localstatedir}/games/emacs'
2547 gameuser=games
2552 # Check whether --with-pop was given.
2553 if test "${with_pop+set}" = set; then :
2554 withval=$with_pop;
2555 else
2556 with_pop=yes
2559 if test "$with_pop" = yes; then
2560 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2565 # Check whether --with-kerberos was given.
2566 if test "${with_kerberos+set}" = set; then :
2567 withval=$with_kerberos;
2568 else
2569 with_kerberos=no
2572 if test "$with_kerberos" != no; then
2573 $as_echo "#define KERBEROS 1" >>confdefs.h
2578 # Check whether --with-kerberos5 was given.
2579 if test "${with_kerberos5+set}" = set; then :
2580 withval=$with_kerberos5;
2581 else
2582 with_kerberos5=no
2585 if test "${with_kerberos5}" != no; then
2586 if test "${with_kerberos}" = no; then
2587 with_kerberos=yes
2588 $as_echo "#define KERBEROS 1" >>confdefs.h
2592 $as_echo "#define KERBEROS5 1" >>confdefs.h
2597 # Check whether --with-hesiod was given.
2598 if test "${with_hesiod+set}" = set; then :
2599 withval=$with_hesiod;
2600 else
2601 with_hesiod=no
2604 if test "$with_hesiod" != no; then
2606 $as_echo "#define HESIOD 1" >>confdefs.h
2611 # Check whether --with-mmdf was given.
2612 if test "${with_mmdf+set}" = set; then :
2613 withval=$with_mmdf;
2614 else
2615 with_mmdf=no
2618 if test "$with_mmdf" != no; then
2620 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2625 # Check whether --with-mail-unlink was given.
2626 if test "${with_mail_unlink+set}" = set; then :
2627 withval=$with_mail_unlink;
2628 else
2629 with_mail_unlink=no
2632 if test "$with_mail_unlink" != no; then
2634 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2639 # Check whether --with-mailhost was given.
2640 if test "${with_mailhost+set}" = set; then :
2641 withval=$with_mailhost;
2642 cat >>confdefs.h <<_ACEOF
2643 #define MAILHOST "$withval"
2644 _ACEOF
2650 # Check whether --with-sound was given.
2651 if test "${with_sound+set}" = set; then :
2652 withval=$with_sound;
2653 else
2654 with_sound=yes
2659 # Check whether --with-sync-input was given.
2660 if test "${with_sync_input+set}" = set; then :
2661 withval=$with_sync_input;
2662 else
2663 with_sync_input=yes
2666 if test "$with_sync_input" = yes; then
2668 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2673 # Check whether --with-x-toolkit was given.
2674 if test "${with_x_toolkit+set}" = set; then :
2675 withval=$with_x_toolkit; case "${withval}" in
2676 y | ye | yes ) val=gtk ;;
2677 n | no ) val=no ;;
2678 l | lu | luc | luci | lucid ) val=lucid ;;
2679 a | at | ath | athe | athen | athena ) val=athena ;;
2680 m | mo | mot | moti | motif ) val=motif ;;
2681 g | gt | gtk ) val=gtk ;;
2682 gtk3 ) val=gtk3 ;;
2684 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2685 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2686 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2688 esac
2689 with_x_toolkit=$val
2695 # Check whether --with-xpm was given.
2696 if test "${with_xpm+set}" = set; then :
2697 withval=$with_xpm;
2698 else
2699 with_xpm=yes
2703 # Check whether --with-jpeg was given.
2704 if test "${with_jpeg+set}" = set; then :
2705 withval=$with_jpeg;
2706 else
2707 with_jpeg=yes
2711 # Check whether --with-tiff was given.
2712 if test "${with_tiff+set}" = set; then :
2713 withval=$with_tiff;
2714 else
2715 with_tiff=yes
2719 # Check whether --with-gif was given.
2720 if test "${with_gif+set}" = set; then :
2721 withval=$with_gif;
2722 else
2723 with_gif=yes
2727 # Check whether --with-png was given.
2728 if test "${with_png+set}" = set; then :
2729 withval=$with_png;
2730 else
2731 with_png=yes
2735 # Check whether --with-rsvg was given.
2736 if test "${with_rsvg+set}" = set; then :
2737 withval=$with_rsvg;
2738 else
2739 with_rsvg=yes
2743 # Check whether --with-xml2 was given.
2744 if test "${with_xml2+set}" = set; then :
2745 withval=$with_xml2;
2746 else
2747 with_xml2=yes
2751 # Check whether --with-imagemagick was given.
2752 if test "${with_imagemagick+set}" = set; then :
2753 withval=$with_imagemagick;
2754 else
2755 with_imagemagick=yes
2760 # Check whether --with-xft was given.
2761 if test "${with_xft+set}" = set; then :
2762 withval=$with_xft;
2763 else
2764 with_xft=yes
2768 # Check whether --with-libotf was given.
2769 if test "${with_libotf+set}" = set; then :
2770 withval=$with_libotf;
2771 else
2772 with_libotf=yes
2776 # Check whether --with-m17n-flt was given.
2777 if test "${with_m17n_flt+set}" = set; then :
2778 withval=$with_m17n_flt;
2779 else
2780 with_m17n_flt=yes
2785 # Check whether --with-toolkit-scroll-bars was given.
2786 if test "${with_toolkit_scroll_bars+set}" = set; then :
2787 withval=$with_toolkit_scroll_bars;
2788 else
2789 with_toolkit_scroll_bars=yes
2793 # Check whether --with-xaw3d was given.
2794 if test "${with_xaw3d+set}" = set; then :
2795 withval=$with_xaw3d;
2796 else
2797 with_xaw3d=yes
2801 # Check whether --with-xim was given.
2802 if test "${with_xim+set}" = set; then :
2803 withval=$with_xim;
2804 else
2805 with_xim=yes
2809 # Check whether --with-ns was given.
2810 if test "${with_ns+set}" = set; then :
2811 withval=$with_ns;
2812 else
2813 with_ns=no
2818 # Check whether --with-gpm was given.
2819 if test "${with_gpm+set}" = set; then :
2820 withval=$with_gpm;
2821 else
2822 with_gpm=yes
2826 # Check whether --with-dbus was given.
2827 if test "${with_dbus+set}" = set; then :
2828 withval=$with_dbus;
2829 else
2830 with_dbus=yes
2834 # Check whether --with-gconf was given.
2835 if test "${with_gconf+set}" = set; then :
2836 withval=$with_gconf;
2837 else
2838 with_gconf=yes
2842 # Check whether --with-selinux was given.
2843 if test "${with_selinux+set}" = set; then :
2844 withval=$with_selinux;
2845 else
2846 with_selinux=yes
2850 # Check whether --with-gnutls was given.
2851 if test "${with_gnutls+set}" = set; then :
2852 withval=$with_gnutls;
2853 else
2854 with_gnutls=yes
2858 ## For the times when you want to build Emacs but don't have
2859 ## a suitable makeinfo, and can live without the manuals.
2861 # Check whether --with-makeinfo was given.
2862 if test "${with_makeinfo+set}" = set; then :
2863 withval=$with_makeinfo;
2864 else
2865 with_makeinfo=yes
2869 ## This is an option because I do not know if all info/man support
2870 ## compressed files, nor how to test if they do so.
2872 # Check whether --with-compress-info was given.
2873 if test "${with_compress_info+set}" = set; then :
2874 withval=$with_compress_info;
2875 else
2876 with_compress_info=yes
2879 if test $with_compress_info = yes; then
2880 GZIP_INFO=yes
2881 else
2882 GZIP_INFO=
2887 # Check whether --with-pkg-config-prog was given.
2888 if test "${with_pkg_config_prog+set}" = set; then :
2889 withval=$with_pkg_config_prog;
2892 if test "X${with_pkg_config_prog}" != X; then
2893 if test "${with_pkg_config_prog}" != yes; then
2894 PKG_CONFIG="${with_pkg_config_prog}"
2898 CRT_DIR=
2900 # Check whether --with-crt-dir was given.
2901 if test "${with_crt_dir+set}" = set; then :
2902 withval=$with_crt_dir;
2905 CRT_DIR="${with_crt_dir}"
2908 # Check whether --with-gnustep-conf was given.
2909 if test "${with_gnustep_conf+set}" = set; then :
2910 withval=$with_gnustep_conf;
2913 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2914 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2915 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2916 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2918 # Check whether --enable-ns-self-contained was given.
2919 if test "${enable_ns_self_contained+set}" = set; then :
2920 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2921 else
2922 EN_NS_SELF_CONTAINED=yes
2926 # Check whether --enable-asserts was given.
2927 if test "${enable_asserts+set}" = set; then :
2928 enableval=$enable_asserts; USE_XASSERTS=$enableval
2929 else
2930 USE_XASSERTS=no
2934 # Check whether --enable-maintainer-mode was given.
2935 if test "${enable_maintainer_mode+set}" = set; then :
2936 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2937 else
2938 USE_MAINTAINER_MODE=no
2941 if test $USE_MAINTAINER_MODE = yes; then
2942 MAINT=
2943 else
2944 MAINT=#
2948 # Check whether --enable-locallisppath was given.
2949 if test "${enable_locallisppath+set}" = set; then :
2950 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2951 locallisppath=
2952 elif test "${enableval}" != "yes"; then
2953 locallisppath=${enableval}
2958 # Check whether --enable-checking was given.
2959 if test "${enable_checking+set}" = set; then :
2960 enableval=$enable_checking; ac_checking_flags="${enableval}"
2963 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2964 for check in $ac_checking_flags
2966 case $check in
2967 # these set all the flags to specific states
2968 yes) ac_enable_checking=1 ;;
2969 no) ac_enable_checking= ;
2970 ac_gc_check_stringbytes= ;
2971 ac_gc_check_string_overrun= ;
2972 ac_gc_check_string_free_list= ;
2973 ac_xmalloc_overrun= ;
2974 ac_gc_check_cons_list= ;;
2975 all) ac_enable_checking=1 ;
2976 ac_gc_check_stringbytes=1 ;
2977 ac_gc_check_string_overrun=1 ;
2978 ac_gc_check_string_free_list=1 ;
2979 ac_xmalloc_overrun=1 ;
2980 ac_gc_check_cons_list=1 ;;
2981 # these enable particular checks
2982 stringbytes) ac_gc_check_stringbytes=1 ;;
2983 stringoverrun) ac_gc_check_string_overrun=1 ;;
2984 stringfreelist) ac_gc_check_string_free_list=1 ;;
2985 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2986 conslist) ac_gc_check_cons_list=1 ;;
2987 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2988 esac
2989 done
2990 IFS="$ac_save_IFS"
2992 if test x$ac_enable_checking != x ; then
2994 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2997 if test x$ac_gc_check_stringbytes != x ; then
2999 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3002 if test x$ac_gc_check_stringoverrun != x ; then
3004 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3007 if test x$ac_gc_check_string_free_list != x ; then
3009 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3012 if test x$ac_xmalloc_overrun != x ; then
3014 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3017 if test x$ac_gc_check_cons_list != x ; then
3019 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3023 # Check whether --enable-use-lisp-union-type was given.
3024 if test "${enable_use_lisp_union_type+set}" = set; then :
3025 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3027 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3034 # Check whether --enable-profiling was given.
3035 if test "${enable_profiling+set}" = set; then :
3036 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3039 if test x$ac_enable_profiling != x ; then
3040 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3041 PROFILING_LDFLAGS="-pg"
3042 else
3043 PROFILING_CFLAGS=
3044 PROFILING_LDFLAGS=
3049 # Check whether --enable-autodepend was given.
3050 if test "${enable_autodepend+set}" = set; then :
3051 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3052 else
3053 ac_enable_autodepend=yes
3057 #### Make srcdir absolute, if it isn't already. It's important to
3058 #### avoid running the path through pwd unnecessarily, since pwd can
3059 #### give you automounter prefixes, which can go away. We do all this
3060 #### so Emacs can find its files when run uninstalled.
3061 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3062 unset CDPATH
3063 case "${srcdir}" in
3064 /* ) ;;
3066 ## We may be able to use the $PWD environment variable to make this
3067 ## absolute. But sometimes PWD is inaccurate.
3068 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3069 ## but that tested only for a well-formed and valid PWD,
3070 ## it did not object when PWD was well-formed and valid but just wrong.
3071 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3072 then
3073 srcdir="$PWD"
3074 else
3075 srcdir="`(cd ${srcdir}; pwd)`"
3078 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3079 esac
3081 #### Check if the source directory already has a configured system in it.
3082 if test `pwd` != `(cd ${srcdir} && pwd)` \
3083 && test -f "${srcdir}/src/config.h" ; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3085 as a build directory right now; it has been configured in its own
3086 right. To configure in another directory as well, you MUST
3087 use GNU make. If you do not have GNU make, then you must
3088 now do \`make distclean' in ${srcdir},
3089 and then run $0 again." >&5
3090 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3091 as a build directory right now; it has been configured in its own
3092 right. To configure in another directory as well, you MUST
3093 use GNU make. If you do not have GNU make, then you must
3094 now do \`make distclean' in ${srcdir},
3095 and then run $0 again." >&2;}
3098 #### Given the configuration name, set machfile and opsysfile to the
3099 #### names of the m/*.h and s/*.h files we should use.
3101 ### Canonicalize the configuration name.
3103 ac_aux_dir=
3104 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3105 for ac_t in install-sh install.sh shtool; do
3106 if test -f "$ac_dir/$ac_t"; then
3107 ac_aux_dir=$ac_dir
3108 ac_install_sh="$ac_aux_dir/$ac_t -c"
3109 break 2
3111 done
3112 done
3113 if test -z "$ac_aux_dir"; then
3114 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3117 # These three variables are undocumented and unsupported,
3118 # and are intended to be withdrawn in a future Autoconf release.
3119 # They can cause serious problems if a builder's source tree is in a directory
3120 # whose full name contains unusual characters.
3121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3126 # Make sure we can run config.sub.
3127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3128 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3131 $as_echo_n "checking build system type... " >&6; }
3132 if test "${ac_cv_build+set}" = set; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 ac_build_alias=$build_alias
3136 test "x$ac_build_alias" = x &&
3137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3138 test "x$ac_build_alias" = x &&
3139 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3141 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3145 $as_echo "$ac_cv_build" >&6; }
3146 case $ac_cv_build in
3147 *-*-*) ;;
3148 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3149 esac
3150 build=$ac_cv_build
3151 ac_save_IFS=$IFS; IFS='-'
3152 set x $ac_cv_build
3153 shift
3154 build_cpu=$1
3155 build_vendor=$2
3156 shift; shift
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3159 build_os=$*
3160 IFS=$ac_save_IFS
3161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3165 $as_echo_n "checking host system type... " >&6; }
3166 if test "${ac_cv_host+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test "x$host_alias" = x; then
3170 ac_cv_host=$ac_cv_build
3171 else
3172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3173 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3178 $as_echo "$ac_cv_host" >&6; }
3179 case $ac_cv_host in
3180 *-*-*) ;;
3181 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3182 esac
3183 host=$ac_cv_host
3184 ac_save_IFS=$IFS; IFS='-'
3185 set x $ac_cv_host
3186 shift
3187 host_cpu=$1
3188 host_vendor=$2
3189 shift; shift
3190 # Remember, the first character of IFS is used to create $*,
3191 # except with old shells:
3192 host_os=$*
3193 IFS=$ac_save_IFS
3194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3197 canonical=$host
3198 configuration=${host_alias-${build_alias-$host}}
3202 ### If you add support for a new configuration, add code to this
3203 ### switch statement to recognize your configuration name and select
3204 ### the appropriate operating system and machine description files.
3206 ### You would hope that you could choose an m/*.h file pretty much
3207 ### based on the machine portion of the configuration name, and an s/*.h
3208 ### file based on the operating system portion. However, it turns out
3209 ### that each m/*.h file is pretty manufacturer-specific - for
3210 ### example mips.h is MIPS
3211 ### So we basically have to have a special case for each
3212 ### configuration name.
3214 ### As far as handling version numbers on operating systems is
3215 ### concerned, make sure things will fail in a fixable way. If
3216 ### /etc/MACHINES doesn't say anything about version numbers, be
3217 ### prepared to handle anything reasonably. If version numbers
3218 ### matter, be sure /etc/MACHINES says something about it.
3220 machine='' opsys='' unported=no
3221 case "${canonical}" in
3223 ## FreeBSD ports
3224 *-*-freebsd* )
3225 opsys=freebsd
3226 case "${canonical}" in
3227 alpha*) machine=alpha ;;
3228 amd64-*|x86_64-*) machine=amdx86-64 ;;
3229 arm*) machine=arm ;;
3230 ia64-*) machine=ia64 ;;
3231 i[3456]86-*) machine=intel386 ;;
3232 powerpc-*) machine=macppc ;;
3233 sparc-*) machine=sparc ;;
3234 sparc64-*) machine=sparc ;;
3235 esac
3238 ## FreeBSD kernel + glibc based userland
3239 *-*-kfreebsd*gnu* )
3240 opsys=gnu-kfreebsd
3241 case "${canonical}" in
3242 alpha*) machine=alpha ;;
3243 amd64-*|x86_64-*) machine=amdx86-64 ;;
3244 ia64-*) machine=ia64 ;;
3245 i[3456]86-*) machine=intel386 ;;
3246 powerpc-*) machine=macppc ;;
3247 sparc-*) machine=sparc ;;
3248 sparc64-*) machine=sparc ;;
3249 esac
3252 ## NetBSD ports
3253 *-*-netbsd* )
3254 opsys=netbsd
3255 case "${canonical}" in
3256 alpha*) machine=alpha ;;
3257 x86_64-*) machine=amdx86-64 ;;
3258 arm-*) machine=arm ;;
3259 hppa-*) machine=hp800 ;;
3260 i[3456]86-*) machine=intel386 ;;
3261 m68k-*) machine=m68k ;;
3262 powerpc-*) machine=macppc ;;
3263 mips-*) machine=mips ;;
3264 mipse[bl]-*) machine=mips ;;
3265 sparc*-) machine=sparc ;;
3266 vax-*) machine=vax ;;
3267 esac
3270 ## OpenBSD ports
3271 *-*-openbsd* )
3272 opsys=openbsd
3273 case "${canonical}" in
3274 alpha*) machine=alpha ;;
3275 x86_64-*) machine=amdx86-64 ;;
3276 arm-*) machine=arm ;;
3277 hppa-*) machine=hp800 ;;
3278 i386-*) machine=intel386 ;;
3279 powerpc-*) machine=macppc ;;
3280 sparc*) machine=sparc ;;
3281 vax-*) machine=vax ;;
3282 esac
3285 alpha*-*-linux-gnu* )
3286 machine=alpha opsys=gnu-linux
3289 arm*-*-linux-gnu* )
3290 machine=arm opsys=gnu-linux
3293 ## Apple Darwin / Mac OS X
3294 *-apple-darwin* )
3295 case "${canonical}" in
3296 i[3456]86-* ) machine=intel386 ;;
3297 powerpc-* ) machine=macppc ;;
3298 x86_64-* ) machine=amdx86-64 ;;
3299 * ) unported=yes ;;
3300 esac
3301 opsys=darwin
3302 # Define CPP as follows to make autoconf work correctly.
3303 CPP="${CC-cc} -E -no-cpp-precomp"
3304 # Use fink packages if available.
3305 if test -d /sw/include && test -d /sw/lib; then
3306 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3307 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3308 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3312 ## HP 9000 series 700 and 800, running HP/UX
3313 hppa*-hp-hpux10.2* )
3314 machine=hp800 opsys=hpux10-20
3316 hppa*-hp-hpux1[1-9]* )
3317 machine=hp800 opsys=hpux11
3318 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3321 hppa*-*-linux-gnu* )
3322 machine=hp800 opsys=gnu-linux
3325 ## IBM machines
3326 s390-*-linux-gnu* )
3327 machine=ibms390 opsys=gnu-linux
3329 s390x-*-linux-gnu* )
3330 machine=ibms390x opsys=gnu-linux
3332 rs6000-ibm-aix4.[23]* )
3333 machine=ibmrs6000 opsys=aix4-2
3335 powerpc-ibm-aix4.[23]* )
3336 machine=ibmrs6000 opsys=aix4-2
3338 rs6000-ibm-aix[56]* )
3339 machine=ibmrs6000 opsys=aix4-2
3341 powerpc-ibm-aix[56]* )
3342 machine=ibmrs6000 opsys=aix4-2
3345 ## Macintosh PowerPC
3346 powerpc*-*-linux-gnu* )
3347 machine=macppc opsys=gnu-linux
3350 ## Silicon Graphics machines
3351 ## Iris 4D
3352 mips-sgi-irix6.5 )
3353 machine=iris4d opsys=irix6-5
3354 # Without defining _LANGUAGE_C, things get masked out in the headers
3355 # so that, for instance, grepping for `free' in stdlib.h fails and
3356 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3357 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3358 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3361 ## Suns
3362 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3363 machine=sparc opsys=gnu-linux
3366 *-sun-solaris* \
3367 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3368 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3369 case "${canonical}" in
3370 i[3456]86-*-* ) machine=intel386 ;;
3371 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3372 sparc* ) machine=sparc ;;
3373 * ) unported=yes ;;
3374 esac
3375 case "${canonical}" in
3376 *-sunos5.6* | *-solaris2.6* )
3377 opsys=sol2-6
3378 NON_GNU_CPP=/usr/ccs/lib/cpp
3379 RANLIB="ar -ts"
3381 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3382 opsys=sol2-6
3383 emacs_check_sunpro_c=yes
3384 NON_GNU_CPP=/usr/ccs/lib/cpp
3386 *-sunos5* | *-solaris* )
3387 opsys=sol2-10
3388 emacs_check_sunpro_c=yes
3389 NON_GNU_CPP=/usr/ccs/lib/cpp
3391 esac
3392 ## Watch out for a compiler that we know will not work.
3393 case "${canonical}" in
3394 *-solaris* | *-sunos5* )
3395 if [ "x$CC" = x/usr/ucb/cc ]; then
3396 ## /usr/ucb/cc doesn't work;
3397 ## we should find some other compiler that does work.
3398 unset CC
3401 *) ;;
3402 esac
3405 ## IA-64
3406 ia64*-*-linux* )
3407 machine=ia64 opsys=gnu-linux
3410 ## Intel 386 machines where we don't care about the manufacturer.
3411 i[3456]86-*-* )
3412 machine=intel386
3413 case "${canonical}" in
3414 *-cygwin ) opsys=cygwin ;;
3415 *-darwin* ) opsys=darwin
3416 CPP="${CC-cc} -E -no-cpp-precomp"
3418 *-linux-gnu* ) opsys=gnu-linux ;;
3419 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3420 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3421 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3422 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3423 esac
3426 ## m68k Linux-based GNU system
3427 m68k-*-linux-gnu* )
3428 machine=m68k opsys=gnu-linux
3431 ## Mips Linux-based GNU system
3432 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3433 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3434 machine=mips opsys=gnu-linux
3437 ## AMD x86-64 Linux-based GNU system
3438 x86_64-*-linux-gnu* )
3439 machine=amdx86-64 opsys=gnu-linux
3442 ## Tensilica Xtensa Linux-based GNU system
3443 xtensa*-*-linux-gnu* )
3444 machine=xtensa opsys=gnu-linux
3447 ## SuperH Linux-based GNU system
3448 sh[34]*-*-linux-gnu* )
3449 machine=sh3 opsys=gnu-linux
3453 unported=yes
3455 esac
3457 ### If the code above didn't choose an operating system, just choose
3458 ### an operating system based on the configuration name. You really
3459 ### only want to use this when you have no idea what the right
3460 ### operating system is; if you know what operating systems a machine
3461 ### runs, it's cleaner to make it explicit in the case statement
3462 ### above.
3463 if test x"${opsys}" = x; then
3464 case "${canonical}" in
3465 *-gnu* ) opsys=gnu ;;
3467 unported=yes
3469 esac
3474 if test $unported = yes; then
3475 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3476 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3479 machfile="m/${machine}.h"
3480 opsysfile="s/${opsys}.h"
3483 #### Choose a compiler.
3484 test -n "$CC" && cc_specified=yes
3486 # Save the value of CFLAGS that the user specified.
3487 SPECIFIED_CFLAGS="$CFLAGS"
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3518 IFS=$as_save_IFS
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3534 ac_ct_CC=$CC
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x; then
3572 CC=""
3573 else
3574 case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580 CC=$ac_ct_CC
3582 else
3583 CC="$ac_cv_prog_CC"
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3648 continue
3650 ac_cv_prog_CC="cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3661 shift
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3666 shift
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3710 IFS=$as_save_IFS
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3725 done
3727 if test -z "$CC"; then
3728 ac_ct_CC=$CC
3729 for ac_prog in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3752 done
3753 done
3754 IFS=$as_save_IFS
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3769 done
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780 CC=$ac_ct_CC
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797 { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 ac_status=$?
3806 if test -s conftest.err; then
3807 sed '10a\
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3812 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3815 done
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3821 main ()
3825 return 0;
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3834 $as_echo_n "checking whether the C compiler works... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 esac
3847 done
3848 rm -f $ac_rmfiles
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3872 [ab].out )
3873 # We found the default executable, but exeext='' is most
3874 # certainly right.
3875 break;;
3876 *.* )
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878 then :; else
3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3885 # actually working.
3886 break;;
3888 break;;
3889 esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3893 else
3894 ac_file=''
3896 if test -z "$ac_file"; then :
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909 $as_echo "yes" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3912 $as_echo_n "checking for C compiler default output file name... " >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3914 $as_echo "$ac_file" >&6; }
3915 ac_exeext=$ac_cv_exeext
3917 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3918 ac_clean_files=$ac_clean_files_save
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3920 $as_echo_n "checking for suffix of executables... " >&6; }
3921 if { { ac_try="$ac_link"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_link") 2>&5
3929 ac_status=$?
3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; then :
3932 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3933 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3934 # work properly (i.e., refer to `conftest.exe'), while it won't with
3935 # `rm'.
3936 for ac_file in conftest.exe conftest conftest.*; do
3937 test -f "$ac_file" || continue
3938 case $ac_file in
3939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3941 break;;
3942 * ) break;;
3943 esac
3944 done
3945 else
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error "cannot compute suffix of executables: cannot compile and link
3949 See \`config.log' for more details." "$LINENO" 5; }
3951 rm -f conftest conftest$ac_cv_exeext
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3953 $as_echo "$ac_cv_exeext" >&6; }
3955 rm -f conftest.$ac_ext
3956 EXEEXT=$ac_cv_exeext
3957 ac_exeext=$EXEEXT
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <stdio.h>
3962 main ()
3964 FILE *f = fopen ("conftest.out", "w");
3965 return ferror (f) || fclose (f) != 0;
3968 return 0;
3970 _ACEOF
3971 ac_clean_files="$ac_clean_files conftest.out"
3972 # Check that the compiler produces executables we can run. If not, either
3973 # the compiler is broken, or we cross compile.
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3975 $as_echo_n "checking whether we are cross compiling... " >&6; }
3976 if test "$cross_compiling" != yes; then
3977 { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3985 ac_status=$?
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }
3988 if { ac_try='./conftest$ac_cv_exeext'
3989 { { case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 $as_echo "$ac_try_echo"; } >&5
3995 (eval "$ac_try") 2>&5
3996 ac_status=$?
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }; }; then
3999 cross_compiling=no
4000 else
4001 if test "$cross_compiling" = maybe; then
4002 cross_compiling=yes
4003 else
4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006 as_fn_error "cannot run C compiled programs.
4007 If you meant to cross compile, use \`--host'.
4008 See \`config.log' for more details." "$LINENO" 5; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4013 $as_echo "$cross_compiling" >&6; }
4015 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4016 ac_clean_files=$ac_clean_files_save
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4018 $as_echo_n "checking for suffix of object files... " >&6; }
4019 if test "${ac_cv_objext+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4026 main ()
4030 return 0;
4032 _ACEOF
4033 rm -f conftest.o conftest.obj
4034 if { { ac_try="$ac_compile"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_compile") 2>&5
4042 ac_status=$?
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }; then :
4045 for ac_file in conftest.o conftest.obj conftest.*; do
4046 test -f "$ac_file" || continue;
4047 case $ac_file in
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4050 break;;
4051 esac
4052 done
4053 else
4054 $as_echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error "cannot compute suffix of object files: cannot compile
4060 See \`config.log' for more details." "$LINENO" 5; }
4062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4065 $as_echo "$ac_cv_objext" >&6; }
4066 OBJEXT=$ac_cv_objext
4067 ac_objext=$OBJEXT
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4069 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4070 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4079 #ifndef __GNUC__
4080 choke me
4081 #endif
4084 return 0;
4086 _ACEOF
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_compiler_gnu=yes
4089 else
4090 ac_compiler_gnu=no
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4097 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4098 if test $ac_compiler_gnu = yes; then
4099 GCC=yes
4100 else
4101 GCC=
4103 ac_test_CFLAGS=${CFLAGS+set}
4104 ac_save_CFLAGS=$CFLAGS
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4106 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4107 if test "${ac_cv_prog_cc_g+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 ac_save_c_werror_flag=$ac_c_werror_flag
4111 ac_c_werror_flag=yes
4112 ac_cv_prog_cc_g=no
4113 CFLAGS="-g"
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4118 main ()
4122 return 0;
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_prog_cc_g=yes
4127 else
4128 CFLAGS=""
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4133 main ()
4137 return 0;
4139 _ACEOF
4140 if ac_fn_c_try_compile "$LINENO"; then :
4142 else
4143 ac_c_werror_flag=$ac_save_c_werror_flag
4144 CFLAGS="-g"
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4149 main ()
4153 return 0;
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_cv_prog_cc_g=yes
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_c_werror_flag=$ac_save_c_werror_flag
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4167 $as_echo "$ac_cv_prog_cc_g" >&6; }
4168 if test "$ac_test_CFLAGS" = set; then
4169 CFLAGS=$ac_save_CFLAGS
4170 elif test $ac_cv_prog_cc_g = yes; then
4171 if test "$GCC" = yes; then
4172 CFLAGS="-g -O2"
4173 else
4174 CFLAGS="-g"
4176 else
4177 if test "$GCC" = yes; then
4178 CFLAGS="-O2"
4179 else
4180 CFLAGS=
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4184 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4185 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 ac_cv_prog_cc_c89=no
4189 ac_save_CC=$CC
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #include <stdarg.h>
4193 #include <stdio.h>
4194 #include <sys/types.h>
4195 #include <sys/stat.h>
4196 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4197 struct buf { int x; };
4198 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4199 static char *e (p, i)
4200 char **p;
4201 int i;
4203 return p[i];
4205 static char *f (char * (*g) (char **, int), char **p, ...)
4207 char *s;
4208 va_list v;
4209 va_start (v,p);
4210 s = g (p, va_arg (v,int));
4211 va_end (v);
4212 return s;
4215 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4216 function prototypes and stuff, but not '\xHH' hex character constants.
4217 These don't provoke an error unfortunately, instead are silently treated
4218 as 'x'. The following induces an error, until -std is added to get
4219 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4220 array size at least. It's necessary to write '\x00'==0 to get something
4221 that's true only with -std. */
4222 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4224 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4225 inside strings and character constants. */
4226 #define FOO(x) 'x'
4227 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4229 int test (int i, double x);
4230 struct s1 {int (*f) (int a);};
4231 struct s2 {int (*f) (double a);};
4232 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4233 int argc;
4234 char **argv;
4236 main ()
4238 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4240 return 0;
4242 _ACEOF
4243 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4244 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4246 CC="$ac_save_CC $ac_arg"
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_prog_cc_c89=$ac_arg
4250 rm -f core conftest.err conftest.$ac_objext
4251 test "x$ac_cv_prog_cc_c89" != "xno" && break
4252 done
4253 rm -f conftest.$ac_ext
4254 CC=$ac_save_CC
4257 # AC_CACHE_VAL
4258 case "x$ac_cv_prog_cc_c89" in
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4261 $as_echo "none needed" >&6; } ;;
4262 xno)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4264 $as_echo "unsupported" >&6; } ;;
4266 CC="$CC $ac_cv_prog_cc_c89"
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4268 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4269 esac
4270 if test "x$ac_cv_prog_cc_c89" != xno; then :
4274 ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 # On Suns, sometimes $CPP names a directory.
4282 if test -n "$CPP" && test -d "$CPP"; then
4283 CPP=
4286 ## If not using gcc, and on Solaris, and no CPP specified, see if
4287 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4288 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4289 test x"$CPP" = x; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4291 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4293 if test "${emacs_cv_sunpro_c+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4300 main ()
4302 #ifndef __SUNPRO_C
4303 fail;
4304 #endif
4307 return 0;
4309 _ACEOF
4310 if ac_fn_c_try_link "$LINENO"; then :
4311 emacs_cv_sunpro_c=yes
4312 else
4313 emacs_cv_sunpro_c=no
4315 rm -f core conftest.err conftest.$ac_objext \
4316 conftest$ac_exeext conftest.$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4320 $as_echo "$emacs_cv_sunpro_c" >&6; }
4322 if test x"$emacs_cv_sunpro_c" = xyes; then
4323 NON_GNU_CPP="$CC -E -Xs"
4327 #### Some systems specify a CPP to use unless we are using GCC.
4328 #### Now that we know whether we are using GCC, we can decide whether
4329 #### to use that one.
4330 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4331 then
4332 CPP="$NON_GNU_CPP"
4335 #### Some systems specify a CC to use unless we are using GCC.
4336 #### Now that we know whether we are using GCC, we can decide whether
4337 #### to use that one.
4338 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4339 test x$cc_specified != xyes
4340 then
4341 CC="$NON_GNU_CC"
4344 if test x$GCC = xyes; then
4345 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4346 else
4347 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4350 ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4356 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4359 CPP=
4361 if test -z "$CPP"; then
4362 if test "${ac_cv_prog_CPP+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 # Double quotes because CPP needs to be expanded
4366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4368 ac_preproc_ok=false
4369 for ac_c_preproc_warn_flag in '' yes
4371 # Use a header file that comes with gcc, so configuring glibc
4372 # with a fresh cross-compiler works.
4373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374 # <limits.h> exists even on freestanding compilers.
4375 # On the NeXT, cc -E runs the code through the compiler's parser,
4376 # not just through cpp. "Syntax error" is here to catch this case.
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379 #ifdef __STDC__
4380 # include <limits.h>
4381 #else
4382 # include <assert.h>
4383 #endif
4384 Syntax error
4385 _ACEOF
4386 if ac_fn_c_try_cpp "$LINENO"; then :
4388 else
4389 # Broken: fails on valid input.
4390 continue
4392 rm -f conftest.err conftest.$ac_ext
4394 # OK, works on sane cases. Now check whether nonexistent headers
4395 # can be detected and how.
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <ac_nonexistent.h>
4399 _ACEOF
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4401 # Broken: success on invalid input.
4402 continue
4403 else
4404 # Passes both tests.
4405 ac_preproc_ok=:
4406 break
4408 rm -f conftest.err conftest.$ac_ext
4410 done
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then :
4414 break
4417 done
4418 ac_cv_prog_CPP=$CPP
4421 CPP=$ac_cv_prog_CPP
4422 else
4423 ac_cv_prog_CPP=$CPP
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4426 $as_echo "$CPP" >&6; }
4427 ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #ifdef __STDC__
4439 # include <limits.h>
4440 #else
4441 # include <assert.h>
4442 #endif
4443 Syntax error
4444 _ACEOF
4445 if ac_fn_c_try_cpp "$LINENO"; then :
4447 else
4448 # Broken: fails on valid input.
4449 continue
4451 rm -f conftest.err conftest.$ac_ext
4453 # OK, works on sane cases. Now check whether nonexistent headers
4454 # can be detected and how.
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457 #include <ac_nonexistent.h>
4458 _ACEOF
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4460 # Broken: success on invalid input.
4461 continue
4462 else
4463 # Passes both tests.
4464 ac_preproc_ok=:
4465 break
4467 rm -f conftest.err conftest.$ac_ext
4469 done
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.err conftest.$ac_ext
4472 if $ac_preproc_ok; then :
4474 else
4475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4478 See \`config.log' for more details." "$LINENO" 5; }
4481 ac_ext=c
4482 ac_cpp='$CPP $CPPFLAGS'
4483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490 if test "${ac_cv_path_GREP+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test -z "$GREP"; then
4494 ac_path_GREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_prog in grep ggrep; do
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506 # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4508 *GNU*)
4509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4511 ac_count=0
4512 $as_echo_n 0123456789 >"conftest.in"
4513 while :
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 $as_echo 'GREP' >> "conftest.nl"
4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521 as_fn_arith $ac_count + 1 && ac_count=$as_val
4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_GREP="$ac_path_GREP"
4525 ac_path_GREP_max=$ac_count
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4529 done
4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 esac
4533 $ac_path_GREP_found && break 3
4534 done
4535 done
4536 done
4537 IFS=$as_save_IFS
4538 if test -z "$ac_cv_path_GREP"; then
4539 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4541 else
4542 ac_cv_path_GREP=$GREP
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547 $as_echo "$ac_cv_path_GREP" >&6; }
4548 GREP="$ac_cv_path_GREP"
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552 $as_echo_n "checking for egrep... " >&6; }
4553 if test "${ac_cv_path_EGREP+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557 then ac_cv_path_EGREP="$GREP -E"
4558 else
4559 if test -z "$EGREP"; then
4560 ac_path_EGREP_found=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_prog in egrep; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4571 # Check for GNU ac_path_EGREP and select it if it is found.
4572 # Check for GNU $ac_path_EGREP
4573 case `"$ac_path_EGREP" --version 2>&1` in
4574 *GNU*)
4575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4577 ac_count=0
4578 $as_echo_n 0123456789 >"conftest.in"
4579 while :
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo 'EGREP' >> "conftest.nl"
4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587 as_fn_arith $ac_count + 1 && ac_count=$as_val
4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_EGREP="$ac_path_EGREP"
4591 ac_path_EGREP_max=$ac_count
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4595 done
4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597 esac
4599 $ac_path_EGREP_found && break 3
4600 done
4601 done
4602 done
4603 IFS=$as_save_IFS
4604 if test -z "$ac_cv_path_EGREP"; then
4605 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607 else
4608 ac_cv_path_EGREP=$EGREP
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614 $as_echo "$ac_cv_path_EGREP" >&6; }
4615 EGREP="$ac_cv_path_EGREP"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4619 $as_echo_n "checking for ANSI C header files... " >&6; }
4620 if test "${ac_cv_header_stdc+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4625 #include <stdlib.h>
4626 #include <stdarg.h>
4627 #include <string.h>
4628 #include <float.h>
4631 main ()
4635 return 0;
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639 ac_cv_header_stdc=yes
4640 else
4641 ac_cv_header_stdc=no
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 if test $ac_cv_header_stdc = yes; then
4646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <string.h>
4651 _ACEOF
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "memchr" >/dev/null 2>&1; then :
4655 else
4656 ac_cv_header_stdc=no
4658 rm -f conftest*
4662 if test $ac_cv_header_stdc = yes; then
4663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <stdlib.h>
4668 _ACEOF
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 $EGREP "free" >/dev/null 2>&1; then :
4672 else
4673 ac_cv_header_stdc=no
4675 rm -f conftest*
4679 if test $ac_cv_header_stdc = yes; then
4680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4681 if test "$cross_compiling" = yes; then :
4683 else
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #include <ctype.h>
4687 #include <stdlib.h>
4688 #if ((' ' & 0x0FF) == 0x020)
4689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4691 #else
4692 # define ISLOWER(c) \
4693 (('a' <= (c) && (c) <= 'i') \
4694 || ('j' <= (c) && (c) <= 'r') \
4695 || ('s' <= (c) && (c) <= 'z'))
4696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4697 #endif
4699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4701 main ()
4703 int i;
4704 for (i = 0; i < 256; i++)
4705 if (XOR (islower (i), ISLOWER (i))
4706 || toupper (i) != TOUPPER (i))
4707 return 2;
4708 return 0;
4710 _ACEOF
4711 if ac_fn_c_try_run "$LINENO"; then :
4713 else
4714 ac_cv_header_stdc=no
4716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4717 conftest.$ac_objext conftest.beam conftest.$ac_ext
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4723 $as_echo "$ac_cv_header_stdc" >&6; }
4724 if test $ac_cv_header_stdc = yes; then
4726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4732 inttypes.h stdint.h unistd.h
4733 do :
4734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4737 eval as_val=\$$as_ac_Header
4738 if test "x$as_val" = x""yes; then :
4739 cat >>confdefs.h <<_ACEOF
4740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4741 _ACEOF
4745 done
4749 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4750 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4751 MINIX=yes
4752 else
4753 MINIX=
4757 if test "$MINIX" = yes; then
4759 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4762 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4765 $as_echo "#define _MINIX 1" >>confdefs.h
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4771 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4772 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4778 # define __EXTENSIONS__ 1
4779 $ac_includes_default
4781 main ()
4785 return 0;
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_safe_to_define___extensions__=yes
4790 else
4791 ac_cv_safe_to_define___extensions__=no
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4796 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4797 test $ac_cv_safe_to_define___extensions__ = yes &&
4798 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4800 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4802 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4804 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4806 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4810 ### Use -Wno-pointer-sign if the compiler supports it
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4812 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4813 SAVE_CFLAGS="$CFLAGS"
4814 CFLAGS="$CFLAGS -Wno-pointer-sign"
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4819 main ()
4823 return 0;
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 has_option=yes
4828 else
4829 has_option=no
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 if test $has_option = yes; then
4833 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4836 $as_echo "$has_option" >&6; }
4837 CFLAGS="$SAVE_CFLAGS"
4838 unset has_option
4839 unset SAVE_CFLAGS
4841 ### Use -Wdeclaration-after-statement if the compiler supports it
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4843 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4844 SAVE_CFLAGS="$CFLAGS"
4845 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4850 main ()
4854 return 0;
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 has_option=yes
4859 else
4860 has_option=no
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 if test $has_option = yes; then
4864 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4867 $as_echo "$has_option" >&6; }
4868 CFLAGS="$SAVE_CFLAGS"
4869 unset has_option
4870 unset SAVE_CFLAGS
4872 ### Use -Wold-style-definition if the compiler supports it
4873 # This can be removed when conversion to standard C is finished.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4875 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4876 SAVE_CFLAGS="$CFLAGS"
4877 CFLAGS="$CFLAGS -Wold-style-definition"
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4882 main ()
4886 return 0;
4888 _ACEOF
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 has_option=yes
4891 else
4892 has_option=no
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 if test $has_option = yes; then
4896 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4899 $as_echo "$has_option" >&6; }
4900 CFLAGS="$SAVE_CFLAGS"
4901 unset has_option
4902 unset SAVE_CFLAGS
4904 ### Use -Wimplicit-function-declaration if the compiler supports it
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4906 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4907 SAVE_CFLAGS="$CFLAGS"
4908 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4913 main ()
4917 return 0;
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 has_option=yes
4922 else
4923 has_option=no
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 if test $has_option = yes; then
4927 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4930 $as_echo "$has_option" >&6; }
4931 CFLAGS="$SAVE_CFLAGS"
4932 unset has_option
4933 unset SAVE_CFLAGS
4938 #### Some other nice autoconf tests.
4940 ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4946 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4947 # On Suns, sometimes $CPP names a directory.
4948 if test -n "$CPP" && test -d "$CPP"; then
4949 CPP=
4951 if test -z "$CPP"; then
4952 if test "${ac_cv_prog_CPP+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 # Double quotes because CPP needs to be expanded
4956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4958 ac_preproc_ok=false
4959 for ac_c_preproc_warn_flag in '' yes
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #ifdef __STDC__
4970 # include <limits.h>
4971 #else
4972 # include <assert.h>
4973 #endif
4974 Syntax error
4975 _ACEOF
4976 if ac_fn_c_try_cpp "$LINENO"; then :
4978 else
4979 # Broken: fails on valid input.
4980 continue
4982 rm -f conftest.err conftest.$ac_ext
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4989 _ACEOF
4990 if ac_fn_c_try_cpp "$LINENO"; then :
4991 # Broken: success on invalid input.
4992 continue
4993 else
4994 # Passes both tests.
4995 ac_preproc_ok=:
4996 break
4998 rm -f conftest.err conftest.$ac_ext
5000 done
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.err conftest.$ac_ext
5003 if $ac_preproc_ok; then :
5004 break
5007 done
5008 ac_cv_prog_CPP=$CPP
5011 CPP=$ac_cv_prog_CPP
5012 else
5013 ac_cv_prog_CPP=$CPP
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5016 $as_echo "$CPP" >&6; }
5017 ac_preproc_ok=false
5018 for ac_c_preproc_warn_flag in '' yes
5020 # Use a header file that comes with gcc, so configuring glibc
5021 # with a fresh cross-compiler works.
5022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 # <limits.h> exists even on freestanding compilers.
5024 # On the NeXT, cc -E runs the code through the compiler's parser,
5025 # not just through cpp. "Syntax error" is here to catch this case.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #ifdef __STDC__
5029 # include <limits.h>
5030 #else
5031 # include <assert.h>
5032 #endif
5033 Syntax error
5034 _ACEOF
5035 if ac_fn_c_try_cpp "$LINENO"; then :
5037 else
5038 # Broken: fails on valid input.
5039 continue
5041 rm -f conftest.err conftest.$ac_ext
5043 # OK, works on sane cases. Now check whether nonexistent headers
5044 # can be detected and how.
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #include <ac_nonexistent.h>
5048 _ACEOF
5049 if ac_fn_c_try_cpp "$LINENO"; then :
5050 # Broken: success on invalid input.
5051 continue
5052 else
5053 # Passes both tests.
5054 ac_preproc_ok=:
5055 break
5057 rm -f conftest.err conftest.$ac_ext
5059 done
5060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061 rm -f conftest.err conftest.$ac_ext
5062 if $ac_preproc_ok; then :
5064 else
5065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5067 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5068 See \`config.log' for more details." "$LINENO" 5; }
5071 ac_ext=c
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077 # Find a good install program. We prefer a C program (faster),
5078 # so one script is as good as another. But avoid the broken or
5079 # incompatible versions:
5080 # SysV /etc/install, /usr/sbin/install
5081 # SunOS /usr/etc/install
5082 # IRIX /sbin/install
5083 # AIX /bin/install
5084 # AmigaOS /C/install, which installs bootblocks on floppy discs
5085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5088 # OS/2's system install, which has a completely different semantic
5089 # ./install, which can be erroneously created by make from ./install.sh.
5090 # Reject install programs that cannot install multiple files.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5092 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5093 if test -z "$INSTALL"; then
5094 if test "${ac_cv_path_install+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 # Account for people who put trailing slashes in PATH elements.
5103 case $as_dir/ in #((
5104 ./ | .// | /[cC]/* | \
5105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5106 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5107 /usr/ucb/* ) ;;
5109 # OSF1 and SCO ODT 3.0 have their own names for install.
5110 # Don't use installbsd from OSF since it installs stuff as root
5111 # by default.
5112 for ac_prog in ginstall scoinst install; do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5115 if test $ac_prog = install &&
5116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5117 # AIX install. It has an incompatible calling convention.
5119 elif test $ac_prog = install &&
5120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5121 # program-specific install script used by HP pwplus--don't use.
5123 else
5124 rm -rf conftest.one conftest.two conftest.dir
5125 echo one > conftest.one
5126 echo two > conftest.two
5127 mkdir conftest.dir
5128 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5129 test -s conftest.one && test -s conftest.two &&
5130 test -s conftest.dir/conftest.one &&
5131 test -s conftest.dir/conftest.two
5132 then
5133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5134 break 3
5138 done
5139 done
5141 esac
5143 done
5144 IFS=$as_save_IFS
5146 rm -rf conftest.one conftest.two conftest.dir
5149 if test "${ac_cv_path_install+set}" = set; then
5150 INSTALL=$ac_cv_path_install
5151 else
5152 # As a last resort, use the slow shell script. Don't cache a
5153 # value for INSTALL within a source directory, because that will
5154 # break other packages using the cache if that directory is
5155 # removed, or if the value is a relative name.
5156 INSTALL=$ac_install_sh
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5160 $as_echo "$INSTALL" >&6; }
5162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5163 # It thinks the first close brace ends the variable substitution.
5164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5170 if test "x$RANLIB" = x; then
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$RANLIB"; then
5180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 RANLIB=$ac_cv_prog_RANLIB
5200 if test -n "$RANLIB"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5202 $as_echo "$RANLIB" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5210 if test -z "$ac_cv_prog_RANLIB"; then
5211 ac_ct_RANLIB=$RANLIB
5212 # Extract the first word of "ranlib", so it can be a program name with args.
5213 set dummy ranlib; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$ac_ct_RANLIB"; then
5220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_RANLIB="ranlib"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5240 if test -n "$ac_ct_RANLIB"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5242 $as_echo "$ac_ct_RANLIB" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5248 if test "x$ac_ct_RANLIB" = x; then
5249 RANLIB=":"
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257 RANLIB=$ac_ct_RANLIB
5259 else
5260 RANLIB="$ac_cv_prog_RANLIB"
5265 ## Although we're running on an amd64 kernel, we're actually compiling for
5266 ## the x86 architecture. The user should probably have provided an
5267 ## explicit --build to `configure', but if everything else than the kernel
5268 ## is running in i386 mode, we can help them out.
5269 if test "$machine" = "amdx86-64"; then
5270 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5271 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5275 if test "$ac_cv_have_decl_i386" = "yes"; then
5276 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5277 machine=intel386
5278 machfile="m/${machine}.h"
5282 # Extract the first word of "install-info", so it can be a program name with args.
5283 set dummy install-info; ac_word=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 case $INSTALL_INFO in
5290 [\\/]* | ?:[\\/]*)
5291 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5310 esac
5312 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5313 if test -n "$INSTALL_INFO"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5315 $as_echo "$INSTALL_INFO" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 # Extract the first word of "install-info", so it can be a program name with args.
5323 set dummy install-info; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 case $INSTALL_INFO in
5330 [\\/]* | ?:[\\/]*)
5331 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in /usr/sbin
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5345 done
5346 done
5347 IFS=$as_save_IFS
5350 esac
5352 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5353 if test -n "$INSTALL_INFO"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5355 $as_echo "$INSTALL_INFO" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 # Extract the first word of "install-info", so it can be a program name with args.
5363 set dummy install-info; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 case $INSTALL_INFO in
5370 [\\/]* | ?:[\\/]*)
5371 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in /sbin
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5387 IFS=$as_save_IFS
5389 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5391 esac
5393 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5394 if test -n "$INSTALL_INFO"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5396 $as_echo "$INSTALL_INFO" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 # Extract the first word of "gzip", so it can be a program name with args.
5404 set dummy gzip; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 case $GZIP_PROG in
5411 [\\/]* | ?:[\\/]*)
5412 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5426 done
5427 done
5428 IFS=$as_save_IFS
5431 esac
5433 GZIP_PROG=$ac_cv_path_GZIP_PROG
5434 if test -n "$GZIP_PROG"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5436 $as_echo "$GZIP_PROG" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5445 ## Need makeinfo >= 4.6 (?) to build the manuals.
5446 # Extract the first word of "makeinfo", so it can be a program name with args.
5447 set dummy makeinfo; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 case $MAKEINFO in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5469 done
5470 done
5471 IFS=$as_save_IFS
5473 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5475 esac
5477 MAKEINFO=$ac_cv_path_MAKEINFO
5478 if test -n "$MAKEINFO"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5480 $as_echo "$MAKEINFO" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5487 if test "$MAKEINFO" != "no" && \
5488 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
5489 MAKEINFO=no
5492 ## Makeinfo is unusual. For a released Emacs, the manuals are
5493 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5494 ## therefore in the category of "special tools" not normally required, which
5495 ## configure does not have to check for (eg autoconf itself).
5496 ## In a Bazaar checkout on the other hand, the manuals are not included.
5497 ## So makeinfo is a requirement to build from Bazaar, and configure
5498 ## should test for it as it does for any other build requirement.
5499 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5500 ## with pre-built manuals, from a Bazaar checkout.
5501 if test "$MAKEINFO" = "no"; then
5502 if test "x${with_makeinfo}" = "xno"; then
5503 MAKEINFO=off
5504 elif test ! -e $srcdir/info/emacs; then
5505 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5506 source tree does not seem to have pre-built manuals in the \`info' directory.
5507 Either install a suitable version of makeinfo, or re-run configure
5508 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5513 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5514 then
5515 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5518 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5519 then
5520 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5524 late_LDFLAGS=$LDFLAGS
5525 if test "$GCC" = yes; then
5526 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5527 else
5528 LDFLAGS="$LDFLAGS -znocombreloc"
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5532 $as_echo_n "checking for -znocombreloc... " >&6; }
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 main(){return 0;}
5536 _ACEOF
5537 if ac_fn_c_try_link "$LINENO"; then :
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 else
5541 LDFLAGS=$late_LDFLAGS
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5545 rm -f core conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
5549 # The value of CPP is a quoted variable reference, so we need to do this
5550 # to get its actual value...
5551 CPP=`eval "echo $CPP"`
5554 CANNOT_DUMP=no
5555 case "$opsys" in
5556 your-opsys-here)
5557 CANNOT_DUMP=yes
5559 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5562 esac
5566 UNEXEC_OBJ=unexelf.o
5567 case "$opsys" in
5568 # MSDOS uses unexcoff.o
5569 # MSWindows uses unexw32.o
5570 aix4-2)
5571 UNEXEC_OBJ=unexaix.o
5573 cygwin)
5574 UNEXEC_OBJ=unexcw.o
5576 darwin)
5577 UNEXEC_OBJ=unexmacosx.o
5579 hpux10-20 | hpux11)
5580 UNEXEC_OBJ=unexhp9k800.o
5582 sol2-10)
5583 # Use the Solaris dldump() function, called from unexsol.c, to dump
5584 # emacs, instead of the generic ELF dump code found in unexelf.c.
5585 # The resulting binary has a complete symbol table, and is better
5586 # for debugging and other observability tools (debuggers, pstack, etc).
5588 # If you encounter a problem using dldump(), please consider sending
5589 # a message to the OpenSolaris tools-linking mailing list:
5590 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5592 # It is likely that dldump() works with older Solaris too, but this has
5593 # not been tested, so for now this change is for Solaris 10 or newer.
5594 UNEXEC_OBJ=unexsol.o
5596 esac
5598 LD_SWITCH_SYSTEM=
5599 case "$opsys" in
5600 freebsd)
5601 ## Let `ld' find image libs and similar things in /usr/local/lib.
5602 ## The system compiler, GCC, has apparently been modified to not
5603 ## look there, contrary to what a stock GCC would do.
5604 LD_SWITCH_SYSTEM=-L/usr/local/lib
5607 gnu-linux)
5608 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5609 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5612 netbsd)
5613 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5616 openbsd)
5617 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5618 ## otherwise Emacs dumps core on elf systems.
5619 LD_SWITCH_SYSTEM="-Z"
5621 esac
5624 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5626 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5627 ## which has not been defined yet. When this was handled with cpp,
5628 ## it was expanded to null when configure sourced the s/*.h file.
5629 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5630 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5631 ## (or somesuch), but because it is supposed to go at the _front_
5632 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5633 ## Compare with the gnu-linux case below, which added to the end
5634 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5635 ## LD_SWITCH_SYSTEM_TEMACS.
5636 case "$opsys" in
5637 netbsd|openbsd)
5638 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5639 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5640 esac
5643 C_SWITCH_MACHINE=
5644 if test "$machine" = "alpha"; then
5645 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5646 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5650 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5651 ## With ELF, make sure that all common symbols get allocated to in the
5652 ## data section. Otherwise, the dump of temacs may miss variables in
5653 ## the shared library that have been initialized. For example, with
5654 ## GNU libc, __malloc_initialized would normally be resolved to the
5655 ## shared library's .bss section, which is fatal.
5656 if test "x$GCC" = "xyes"; then
5657 C_SWITCH_MACHINE="-fno-common"
5658 else
5659 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5661 else
5662 UNEXEC_OBJ=unexalpha.o
5669 C_SWITCH_SYSTEM=
5670 ## Some programs in src produce warnings saying certain subprograms
5671 ## are too complex and need a MAXMEM value greater than 2000 for
5672 ## additional optimization. --nils@exp-math.uni-essen.de
5673 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5674 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5675 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5676 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5680 LIBS_SYSTEM=
5681 case "$opsys" in
5682 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5683 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5685 freebsd) LIBS_SYSTEM="-lutil" ;;
5687 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5689 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5691 ## Motif needs -lgen.
5692 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5693 esac
5697 ### Make sure subsequent tests use flags consistent with the build flags.
5699 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5700 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5701 else
5702 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5707 # Check whether --enable-largefile was given.
5708 if test "${enable_largefile+set}" = set; then :
5709 enableval=$enable_largefile;
5712 if test "$enable_largefile" != no; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5715 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5716 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 ac_cv_sys_largefile_CC=no
5720 if test "$GCC" != yes; then
5721 ac_save_CC=$CC
5722 while :; do
5723 # IRIX 6.2 and later do not support large files by default,
5724 # so use the C compiler's -n32 option if that helps.
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5735 ? 1 : -1];
5737 main ()
5741 return 0;
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"; then :
5745 break
5747 rm -f core conftest.err conftest.$ac_objext
5748 CC="$CC -n32"
5749 if ac_fn_c_try_compile "$LINENO"; then :
5750 ac_cv_sys_largefile_CC=' -n32'; break
5752 rm -f core conftest.err conftest.$ac_objext
5753 break
5754 done
5755 CC=$ac_save_CC
5756 rm -f conftest.$ac_ext
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5760 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5761 if test "$ac_cv_sys_largefile_CC" != no; then
5762 CC=$CC$ac_cv_sys_largefile_CC
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5766 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5767 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 while :; do
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5774 /* Check that off_t can represent 2**63 - 1 correctly.
5775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5776 since some C++ compilers masquerading as C compilers
5777 incorrectly reject 9223372036854775807. */
5778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5780 && LARGE_OFF_T % 2147483647 == 1)
5781 ? 1 : -1];
5783 main ()
5787 return 0;
5789 _ACEOF
5790 if ac_fn_c_try_compile "$LINENO"; then :
5791 ac_cv_sys_file_offset_bits=no; break
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #define _FILE_OFFSET_BITS 64
5797 #include <sys/types.h>
5798 /* Check that off_t can represent 2**63 - 1 correctly.
5799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5800 since some C++ compilers masquerading as C compilers
5801 incorrectly reject 9223372036854775807. */
5802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5804 && LARGE_OFF_T % 2147483647 == 1)
5805 ? 1 : -1];
5807 main ()
5811 return 0;
5813 _ACEOF
5814 if ac_fn_c_try_compile "$LINENO"; then :
5815 ac_cv_sys_file_offset_bits=64; break
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 ac_cv_sys_file_offset_bits=unknown
5819 break
5820 done
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5823 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5824 case $ac_cv_sys_file_offset_bits in #(
5825 no | unknown) ;;
5827 cat >>confdefs.h <<_ACEOF
5828 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5829 _ACEOF
5831 esac
5832 rm -rf conftest*
5833 if test $ac_cv_sys_file_offset_bits = unknown; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5835 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5836 if test "${ac_cv_sys_large_files+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 while :; do
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <sys/types.h>
5843 /* Check that off_t can represent 2**63 - 1 correctly.
5844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5845 since some C++ compilers masquerading as C compilers
5846 incorrectly reject 9223372036854775807. */
5847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5849 && LARGE_OFF_T % 2147483647 == 1)
5850 ? 1 : -1];
5852 main ()
5856 return 0;
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"; then :
5860 ac_cv_sys_large_files=no; break
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #define _LARGE_FILES 1
5866 #include <sys/types.h>
5867 /* Check that off_t can represent 2**63 - 1 correctly.
5868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5869 since some C++ compilers masquerading as C compilers
5870 incorrectly reject 9223372036854775807. */
5871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5873 && LARGE_OFF_T % 2147483647 == 1)
5874 ? 1 : -1];
5876 main ()
5880 return 0;
5882 _ACEOF
5883 if ac_fn_c_try_compile "$LINENO"; then :
5884 ac_cv_sys_large_files=1; break
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 ac_cv_sys_large_files=unknown
5888 break
5889 done
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5892 $as_echo "$ac_cv_sys_large_files" >&6; }
5893 case $ac_cv_sys_large_files in #(
5894 no | unknown) ;;
5896 cat >>confdefs.h <<_ACEOF
5897 #define _LARGE_FILES $ac_cv_sys_large_files
5898 _ACEOF
5900 esac
5901 rm -rf conftest*
5907 ## If user specified a crt-dir, use that unconditionally.
5908 if test "X$CRT_DIR" = "X"; then
5910 case "$canonical" in
5911 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5912 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5913 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5914 ## For anything else (eg /usr/lib32), it is up the user to specify
5915 ## the location (bug#5655).
5916 ## Test for crtn.o, not just the directory, because sometimes the
5917 ## directory exists but does not have the relevant files (bug#1287).
5918 ## FIXME better to test for binary compatibility somehow.
5919 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5922 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5923 esac
5925 case "$opsys" in
5926 hpux10-20) CRT_DIR=/lib ;;
5927 esac
5929 ## Default is /usr/lib.
5930 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5932 else
5934 ## Some platforms don't use any of these files, so it is not
5935 ## appropriate to put this test outside the if block.
5936 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5937 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5943 LIB_MATH=-lm
5944 LIB_STANDARD=
5945 START_FILES=
5947 case $opsys in
5948 cygwin )
5949 LIB_MATH=
5950 START_FILES='pre-crt0.o'
5952 darwin )
5953 ## Adding -lm confuses the dynamic linker, so omit it.
5954 LIB_MATH=
5955 START_FILES='pre-crt0.o'
5957 freebsd )
5958 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5959 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5961 gnu-linux | gnu-kfreebsd )
5962 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5963 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5965 hpux10-20 | hpux11 )
5966 LIB_STANDARD=-lc
5967 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5969 netbsd | openbsd )
5970 if test -f $CRT_DIR/crti.o; then
5971 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5972 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5973 else
5974 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5975 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5978 esac
5986 if test "${with_sound}" != "no"; then
5987 # Sound support for GNU/Linux and the free BSDs.
5988 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5989 do :
5990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5992 eval as_val=\$$as_ac_Header
5993 if test "x$as_val" = x""yes; then :
5994 cat >>confdefs.h <<_ACEOF
5995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996 _ACEOF
5997 have_sound_header=yes
6000 done
6002 # Emulation library used on NetBSD.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6004 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6005 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 ac_check_lib_save_LIBS=$LIBS
6009 LIBS="-lossaudio $LIBS"
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6013 /* Override any GCC internal prototype to avoid an error.
6014 Use char because int might match the return type of a GCC
6015 builtin and then its argument prototype would still apply. */
6016 #ifdef __cplusplus
6017 extern "C"
6018 #endif
6019 char _oss_ioctl ();
6021 main ()
6023 return _oss_ioctl ();
6025 return 0;
6027 _ACEOF
6028 if ac_fn_c_try_link "$LINENO"; then :
6029 ac_cv_lib_ossaudio__oss_ioctl=yes
6030 else
6031 ac_cv_lib_ossaudio__oss_ioctl=no
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6035 LIBS=$ac_check_lib_save_LIBS
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6038 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6039 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6040 LIBSOUND=-lossaudio
6041 else
6042 LIBSOUND=
6047 ALSA_REQUIRED=1.0.0
6048 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6050 succeeded=no
6052 # Extract the first word of "pkg-config", so it can be a program name with args.
6053 set dummy pkg-config; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 case $PKG_CONFIG in
6060 [\\/]* | ?:[\\/]*)
6061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6075 done
6076 done
6077 IFS=$as_save_IFS
6079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6081 esac
6083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6084 if test -n "$PKG_CONFIG"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6086 $as_echo "$PKG_CONFIG" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6094 if test "$PKG_CONFIG" = "no" ; then
6095 HAVE_ALSA=no
6096 else
6097 PKG_CONFIG_MIN_VERSION=0.9.0
6098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6100 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6102 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6104 $as_echo "yes" >&6; }
6105 succeeded=yes
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6108 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6109 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6111 $as_echo "$ALSA_CFLAGS" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6114 $as_echo_n "checking ALSA_LIBS... " >&6; }
6115 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6117 $as_echo "$ALSA_LIBS" >&6; }
6118 else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 ALSA_CFLAGS=""
6122 ALSA_LIBS=""
6123 ## If we have a custom action on failure, don't print errors, but
6124 ## do set a variable so people can do so.
6125 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6131 else
6132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6137 if test $succeeded = yes; then
6138 HAVE_ALSA=yes
6139 else
6140 HAVE_ALSA=no
6143 if test $HAVE_ALSA = yes; then
6144 SAVE_CFLAGS="$CFLAGS"
6145 SAVE_LDFLAGS="$LDFLAGS"
6146 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6147 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 #include <asoundlib.h>
6152 main ()
6154 snd_lib_error_set_handler (0);
6156 return 0;
6158 _ACEOF
6159 if ac_fn_c_try_compile "$LINENO"; then :
6160 emacs_alsa_normal=yes
6161 else
6162 emacs_alsa_normal=no
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 if test "$emacs_alsa_normal" != yes; then
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 #include <alsa/asoundlib.h>
6170 main ()
6172 snd_lib_error_set_handler (0);
6174 return 0;
6176 _ACEOF
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 emacs_alsa_subdir=yes
6179 else
6180 emacs_alsa_subdir=no
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 if test "$emacs_alsa_subdir" != yes; then
6184 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6186 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6189 CFLAGS="$SAVE_CFLAGS"
6190 LDFLAGS="$SAVE_LDFLAGS"
6191 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6192 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6194 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6198 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6199 case "$opsys" in
6200 gnu-linux|freebsd|netbsd)
6202 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6205 esac
6211 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6212 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6213 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6214 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6215 sys/utsname.h pwd.h utmp.h dirent.h util.h
6216 do :
6217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6219 eval as_val=\$$as_ac_Header
6220 if test "x$as_val" = x""yes; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6223 _ACEOF
6227 done
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6231 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <sys/personality.h>
6236 main ()
6238 personality (PER_LINUX32)
6240 return 0;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 emacs_cv_personality_linux32=yes
6245 else
6246 emacs_cv_personality_linux32=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6250 $as_echo "$emacs_cv_personality_linux32" >&6; }
6252 if test $emacs_cv_personality_linux32 = yes; then
6254 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6258 for ac_header in term.h
6259 do :
6260 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6261 if test "x$ac_cv_header_term_h" = x""yes; then :
6262 cat >>confdefs.h <<_ACEOF
6263 #define HAVE_TERM_H 1
6264 _ACEOF
6268 done
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6271 $as_echo_n "checking for ANSI C header files... " >&6; }
6272 if test "${ac_cv_header_stdc+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <stdlib.h>
6278 #include <stdarg.h>
6279 #include <string.h>
6280 #include <float.h>
6283 main ()
6287 return 0;
6289 _ACEOF
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291 ac_cv_header_stdc=yes
6292 else
6293 ac_cv_header_stdc=no
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 if test $ac_cv_header_stdc = yes; then
6298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <string.h>
6303 _ACEOF
6304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6305 $EGREP "memchr" >/dev/null 2>&1; then :
6307 else
6308 ac_cv_header_stdc=no
6310 rm -f conftest*
6314 if test $ac_cv_header_stdc = yes; then
6315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318 #include <stdlib.h>
6320 _ACEOF
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 $EGREP "free" >/dev/null 2>&1; then :
6324 else
6325 ac_cv_header_stdc=no
6327 rm -f conftest*
6331 if test $ac_cv_header_stdc = yes; then
6332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6333 if test "$cross_compiling" = yes; then :
6335 else
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 #include <ctype.h>
6339 #include <stdlib.h>
6340 #if ((' ' & 0x0FF) == 0x020)
6341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6343 #else
6344 # define ISLOWER(c) \
6345 (('a' <= (c) && (c) <= 'i') \
6346 || ('j' <= (c) && (c) <= 'r') \
6347 || ('s' <= (c) && (c) <= 'z'))
6348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6349 #endif
6351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6353 main ()
6355 int i;
6356 for (i = 0; i < 256; i++)
6357 if (XOR (islower (i), ISLOWER (i))
6358 || toupper (i) != TOUPPER (i))
6359 return 2;
6360 return 0;
6362 _ACEOF
6363 if ac_fn_c_try_run "$LINENO"; then :
6365 else
6366 ac_cv_header_stdc=no
6368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6369 conftest.$ac_objext conftest.beam conftest.$ac_ext
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6375 $as_echo "$ac_cv_header_stdc" >&6; }
6376 if test $ac_cv_header_stdc = yes; then
6378 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6383 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6384 if test "${ac_cv_header_time+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 #include <sys/types.h>
6390 #include <sys/time.h>
6391 #include <time.h>
6394 main ()
6396 if ((struct tm *) 0)
6397 return 0;
6399 return 0;
6401 _ACEOF
6402 if ac_fn_c_try_compile "$LINENO"; then :
6403 ac_cv_header_time=yes
6404 else
6405 ac_cv_header_time=no
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6410 $as_echo "$ac_cv_header_time" >&6; }
6411 if test $ac_cv_header_time = yes; then
6413 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6417 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6418 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6419 ac_have_decl=1
6420 else
6421 ac_have_decl=0
6424 cat >>confdefs.h <<_ACEOF
6425 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6426 _ACEOF
6428 if test $ac_cv_have_decl_sys_siglist != yes; then
6429 # For Tru64, at least:
6430 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6431 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6432 ac_have_decl=1
6433 else
6434 ac_have_decl=0
6437 cat >>confdefs.h <<_ACEOF
6438 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6439 _ACEOF
6441 if test $ac_cv_have_decl___sys_siglist = yes; then
6443 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6448 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6449 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <sys/wait.h>
6456 #ifndef WEXITSTATUS
6457 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6458 #endif
6459 #ifndef WIFEXITED
6460 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6461 #endif
6464 main ()
6466 int s;
6467 wait (&s);
6468 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6470 return 0;
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 ac_cv_header_sys_wait_h=yes
6475 else
6476 ac_cv_header_sys_wait_h=no
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6481 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6482 if test $ac_cv_header_sys_wait_h = yes; then
6484 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6490 $as_echo_n "checking for struct utimbuf... " >&6; }
6491 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 #ifdef TIME_WITH_SYS_TIME
6497 #include <sys/time.h>
6498 #include <time.h>
6499 #else
6500 #ifdef HAVE_SYS_TIME_H
6501 #include <sys/time.h>
6502 #else
6503 #include <time.h>
6504 #endif
6505 #endif
6506 #ifdef HAVE_UTIME_H
6507 #include <utime.h>
6508 #endif
6510 main ()
6512 static struct utimbuf x; x.actime = x.modtime;
6514 return 0;
6516 _ACEOF
6517 if ac_fn_c_try_compile "$LINENO"; then :
6518 emacs_cv_struct_utimbuf=yes
6519 else
6520 emacs_cv_struct_utimbuf=no
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6525 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6526 if test $emacs_cv_struct_utimbuf = yes; then
6528 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6533 $as_echo_n "checking return type of signal handlers... " >&6; }
6534 if test "${ac_cv_type_signal+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <sys/types.h>
6540 #include <signal.h>
6543 main ()
6545 return *(signal (0, 0)) (0) == 1;
6547 return 0;
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 ac_cv_type_signal=int
6552 else
6553 ac_cv_type_signal=void
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6558 $as_echo "$ac_cv_type_signal" >&6; }
6560 cat >>confdefs.h <<_ACEOF
6561 #define RETSIGTYPE $ac_cv_type_signal
6562 _ACEOF
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6567 $as_echo_n "checking for speed_t... " >&6; }
6568 if test "${emacs_cv_speed_t+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #include <termios.h>
6575 main ()
6577 speed_t x = 1;
6579 return 0;
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 emacs_cv_speed_t=yes
6584 else
6585 emacs_cv_speed_t=no
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6590 $as_echo "$emacs_cv_speed_t" >&6; }
6591 if test $emacs_cv_speed_t = yes; then
6593 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6598 $as_echo_n "checking for struct timeval... " >&6; }
6599 if test "${emacs_cv_struct_timeval+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #ifdef TIME_WITH_SYS_TIME
6605 #include <sys/time.h>
6606 #include <time.h>
6607 #else
6608 #ifdef HAVE_SYS_TIME_H
6609 #include <sys/time.h>
6610 #else
6611 #include <time.h>
6612 #endif
6613 #endif
6615 main ()
6617 static struct timeval x; x.tv_sec = x.tv_usec;
6619 return 0;
6621 _ACEOF
6622 if ac_fn_c_try_compile "$LINENO"; then :
6623 emacs_cv_struct_timeval=yes
6624 else
6625 emacs_cv_struct_timeval=no
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6630 $as_echo "$emacs_cv_struct_timeval" >&6; }
6631 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6632 if test $emacs_cv_struct_timeval = yes; then
6634 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6639 $as_echo_n "checking for struct exception... " >&6; }
6640 if test "${emacs_cv_struct_exception+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 #include <math.h>
6647 main ()
6649 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6651 return 0;
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 emacs_cv_struct_exception=yes
6656 else
6657 emacs_cv_struct_exception=no
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6662 $as_echo "$emacs_cv_struct_exception" >&6; }
6663 HAVE_EXCEPTION=$emacs_cv_struct_exception
6664 if test $emacs_cv_struct_exception != yes; then
6666 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6670 for ac_header in sys/socket.h
6671 do :
6672 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6673 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6674 cat >>confdefs.h <<_ACEOF
6675 #define HAVE_SYS_SOCKET_H 1
6676 _ACEOF
6680 done
6682 for ac_header in net/if.h
6683 do :
6684 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6685 #if HAVE_SYS_SOCKET_H
6686 #include <sys/socket.h>
6687 #endif
6689 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6690 cat >>confdefs.h <<_ACEOF
6691 #define HAVE_NET_IF_H 1
6692 _ACEOF
6696 done
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6700 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6701 if test "${ac_cv_struct_tm+set}" = set; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 #include <sys/types.h>
6707 #include <time.h>
6710 main ()
6712 struct tm tm;
6713 int *p = &tm.tm_sec;
6714 return !p;
6716 return 0;
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 ac_cv_struct_tm=time.h
6721 else
6722 ac_cv_struct_tm=sys/time.h
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6727 $as_echo "$ac_cv_struct_tm" >&6; }
6728 if test $ac_cv_struct_tm = sys/time.h; then
6730 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6734 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6735 #include <$ac_cv_struct_tm>
6738 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6740 cat >>confdefs.h <<_ACEOF
6741 #define HAVE_STRUCT_TM_TM_ZONE 1
6742 _ACEOF
6747 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6749 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6751 else
6752 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6754 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6755 ac_have_decl=1
6756 else
6757 ac_have_decl=0
6760 cat >>confdefs.h <<_ACEOF
6761 #define HAVE_DECL_TZNAME $ac_have_decl
6762 _ACEOF
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6765 $as_echo_n "checking for tzname... " >&6; }
6766 if test "${ac_cv_var_tzname+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 #include <time.h>
6772 #if !HAVE_DECL_TZNAME
6773 extern char *tzname[];
6774 #endif
6777 main ()
6779 return tzname[0][0];
6781 return 0;
6783 _ACEOF
6784 if ac_fn_c_try_link "$LINENO"; then :
6785 ac_cv_var_tzname=yes
6786 else
6787 ac_cv_var_tzname=no
6789 rm -f core conftest.err conftest.$ac_objext \
6790 conftest$ac_exeext conftest.$ac_ext
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6793 $as_echo "$ac_cv_var_tzname" >&6; }
6794 if test $ac_cv_var_tzname = yes; then
6796 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6801 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6803 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6805 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6809 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6810 #if HAVE_SYS_SOCKET_H
6811 #include <sys/socket.h>
6812 #endif
6813 #if HAVE_NET_IF_H
6814 #include <net/if.h>
6815 #endif
6817 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6819 cat >>confdefs.h <<_ACEOF
6820 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6821 _ACEOF
6825 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6826 #if HAVE_SYS_SOCKET_H
6827 #include <sys/socket.h>
6828 #endif
6829 #if HAVE_NET_IF_H
6830 #include <net/if.h>
6831 #endif
6833 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6835 cat >>confdefs.h <<_ACEOF
6836 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6837 _ACEOF
6841 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6842 #if HAVE_SYS_SOCKET_H
6843 #include <sys/socket.h>
6844 #endif
6845 #if HAVE_NET_IF_H
6846 #include <net/if.h>
6847 #endif
6849 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6853 _ACEOF
6857 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6858 #if HAVE_SYS_SOCKET_H
6859 #include <sys/socket.h>
6860 #endif
6861 #if HAVE_NET_IF_H
6862 #include <net/if.h>
6863 #endif
6865 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6867 cat >>confdefs.h <<_ACEOF
6868 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6869 _ACEOF
6873 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6874 #if HAVE_SYS_SOCKET_H
6875 #include <sys/socket.h>
6876 #endif
6877 #if HAVE_NET_IF_H
6878 #include <net/if.h>
6879 #endif
6881 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6883 cat >>confdefs.h <<_ACEOF
6884 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6885 _ACEOF
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6893 $as_echo_n "checking for function prototypes... " >&6; }
6894 if test "$ac_cv_prog_cc_c89" != no; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896 $as_echo "yes" >&6; }
6898 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6901 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6909 $as_echo_n "checking for working volatile... " >&6; }
6910 if test "${ac_cv_c_volatile+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6917 main ()
6920 volatile int x;
6921 int * volatile y = (int *) 0;
6922 return !x && !y;
6924 return 0;
6926 _ACEOF
6927 if ac_fn_c_try_compile "$LINENO"; then :
6928 ac_cv_c_volatile=yes
6929 else
6930 ac_cv_c_volatile=no
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6935 $as_echo "$ac_cv_c_volatile" >&6; }
6936 if test $ac_cv_c_volatile = no; then
6938 $as_echo "#define volatile /**/" >>confdefs.h
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6943 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6944 if test "${ac_cv_c_const+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6951 main ()
6953 /* FIXME: Include the comments suggested by Paul. */
6954 #ifndef __cplusplus
6955 /* Ultrix mips cc rejects this. */
6956 typedef int charset[2];
6957 const charset cs;
6958 /* SunOS 4.1.1 cc rejects this. */
6959 char const *const *pcpcc;
6960 char **ppc;
6961 /* NEC SVR4.0.2 mips cc rejects this. */
6962 struct point {int x, y;};
6963 static struct point const zero = {0,0};
6964 /* AIX XL C 1.02.0.0 rejects this.
6965 It does not let you subtract one const X* pointer from another in
6966 an arm of an if-expression whose if-part is not a constant
6967 expression */
6968 const char *g = "string";
6969 pcpcc = &g + (g ? g-g : 0);
6970 /* HPUX 7.0 cc rejects these. */
6971 ++pcpcc;
6972 ppc = (char**) pcpcc;
6973 pcpcc = (char const *const *) ppc;
6974 { /* SCO 3.2v4 cc rejects this. */
6975 char *t;
6976 char const *s = 0 ? (char *) 0 : (char const *) 0;
6978 *t++ = 0;
6979 if (s) return 0;
6981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6982 int x[] = {25, 17};
6983 const int *foo = &x[0];
6984 ++foo;
6986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6987 typedef const int *iptr;
6988 iptr p = 0;
6989 ++p;
6991 { /* AIX XL C 1.02.0.0 rejects this saying
6992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6993 struct s { int j; const int *ap[3]; };
6994 struct s *b; b->j = 5;
6996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6997 const int foo = 10;
6998 if (!foo) return 0;
7000 return !cs[0] && !zero.x;
7001 #endif
7004 return 0;
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008 ac_cv_c_const=yes
7009 else
7010 ac_cv_c_const=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7015 $as_echo "$ac_cv_c_const" >&6; }
7016 if test $ac_cv_c_const = no; then
7018 $as_echo "#define const /**/" >>confdefs.h
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7023 $as_echo_n "checking for void * support... " >&6; }
7024 if test "${emacs_cv_void_star+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7031 main ()
7033 void * foo;
7035 return 0;
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039 emacs_cv_void_star=yes
7040 else
7041 emacs_cv_void_star=no
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7046 $as_echo "$emacs_cv_void_star" >&6; }
7047 if test $emacs_cv_void_star = yes; then
7048 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7050 else
7051 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7056 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7057 if test "${ac_cv_c_bigendian+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 ac_cv_c_bigendian=unknown
7061 # See if we're dealing with a universal compiler.
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #ifndef __APPLE_CC__
7065 not a universal capable compiler
7066 #endif
7067 typedef int dummy;
7069 _ACEOF
7070 if ac_fn_c_try_compile "$LINENO"; then :
7072 # Check for potential -arch flags. It is not universal unless
7073 # there are at least two -arch flags with different values.
7074 ac_arch=
7075 ac_prev=
7076 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7077 if test -n "$ac_prev"; then
7078 case $ac_word in
7079 i?86 | x86_64 | ppc | ppc64)
7080 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7081 ac_arch=$ac_word
7082 else
7083 ac_cv_c_bigendian=universal
7084 break
7087 esac
7088 ac_prev=
7089 elif test "x$ac_word" = "x-arch"; then
7090 ac_prev=arch
7092 done
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 if test $ac_cv_c_bigendian = unknown; then
7096 # See if sys/param.h defines the BYTE_ORDER macro.
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #include <sys/types.h>
7100 #include <sys/param.h>
7103 main ()
7105 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7106 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7107 && LITTLE_ENDIAN)
7108 bogus endian macros
7109 #endif
7112 return 0;
7114 _ACEOF
7115 if ac_fn_c_try_compile "$LINENO"; then :
7116 # It does; now see whether it defined to BIG_ENDIAN or not.
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7120 #include <sys/param.h>
7123 main ()
7125 #if BYTE_ORDER != BIG_ENDIAN
7126 not big endian
7127 #endif
7130 return 0;
7132 _ACEOF
7133 if ac_fn_c_try_compile "$LINENO"; then :
7134 ac_cv_c_bigendian=yes
7135 else
7136 ac_cv_c_bigendian=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 if test $ac_cv_c_bigendian = unknown; then
7143 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #include <limits.h>
7149 main ()
7151 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7152 bogus endian macros
7153 #endif
7156 return 0;
7158 _ACEOF
7159 if ac_fn_c_try_compile "$LINENO"; then :
7160 # It does; now see whether it defined to _BIG_ENDIAN or not.
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <limits.h>
7166 main ()
7168 #ifndef _BIG_ENDIAN
7169 not big endian
7170 #endif
7173 return 0;
7175 _ACEOF
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 ac_cv_c_bigendian=yes
7178 else
7179 ac_cv_c_bigendian=no
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 if test $ac_cv_c_bigendian = unknown; then
7186 # Compile a test program.
7187 if test "$cross_compiling" = yes; then :
7188 # Try to guess by grepping values from an object file.
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 short int ascii_mm[] =
7192 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7193 short int ascii_ii[] =
7194 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7195 int use_ascii (int i) {
7196 return ascii_mm[i] + ascii_ii[i];
7198 short int ebcdic_ii[] =
7199 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7200 short int ebcdic_mm[] =
7201 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7202 int use_ebcdic (int i) {
7203 return ebcdic_mm[i] + ebcdic_ii[i];
7205 extern int foo;
7208 main ()
7210 return use_ascii (foo) == use_ebcdic (foo);
7212 return 0;
7214 _ACEOF
7215 if ac_fn_c_try_compile "$LINENO"; then :
7216 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7217 ac_cv_c_bigendian=yes
7219 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7220 if test "$ac_cv_c_bigendian" = unknown; then
7221 ac_cv_c_bigendian=no
7222 else
7223 # finding both strings is unlikely to happen, but who knows?
7224 ac_cv_c_bigendian=unknown
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 $ac_includes_default
7234 main ()
7237 /* Are we little or big endian? From Harbison&Steele. */
7238 union
7240 long int l;
7241 char c[sizeof (long int)];
7242 } u;
7243 u.l = 1;
7244 return u.c[sizeof (long int) - 1] == 1;
7247 return 0;
7249 _ACEOF
7250 if ac_fn_c_try_run "$LINENO"; then :
7251 ac_cv_c_bigendian=no
7252 else
7253 ac_cv_c_bigendian=yes
7255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7256 conftest.$ac_objext conftest.beam conftest.$ac_ext
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7262 $as_echo "$ac_cv_c_bigendian" >&6; }
7263 case $ac_cv_c_bigendian in #(
7264 yes)
7265 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7266 ;; #(
7268 ;; #(
7269 universal)
7271 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7273 ;; #(
7275 as_fn_error "unknown endianness
7276 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7277 esac
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7281 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7282 set x ${MAKE-make}
7283 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7284 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 cat >conftest.make <<\_ACEOF
7288 SHELL = /bin/sh
7289 all:
7290 @echo '@@@%%%=$(MAKE)=@@@%%%'
7291 _ACEOF
7292 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7293 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7294 *@@@%%%=?*=@@@%%%*)
7295 eval ac_cv_prog_make_${ac_make}_set=yes;;
7297 eval ac_cv_prog_make_${ac_make}_set=no;;
7298 esac
7299 rm -f conftest.make
7301 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7303 $as_echo "yes" >&6; }
7304 SET_MAKE=
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 SET_MAKE="MAKE=${MAKE-make}"
7312 DEPFLAGS=
7313 MKDEPDIR=":"
7314 deps_frag=deps.mk
7315 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7317 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7318 HAVE_GNU_MAKE=no
7319 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7320 if test "x$testval" != x; then
7321 HAVE_GNU_MAKE=yes
7322 else
7323 ac_enable_autodepend=no
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7326 $as_echo "$HAVE_GNU_MAKE" >&6; }
7327 if test $HAVE_GNU_MAKE = yes; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7329 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7330 SAVE_CFLAGS="$CFLAGS"
7331 CFLAGS="$CFLAGS -MMD -MF deps.d"
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7336 main ()
7340 return 0;
7342 _ACEOF
7343 if ac_fn_c_try_compile "$LINENO"; then :
7345 else
7346 ac_enable_autodepend=no
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 CFLAGS="$SAVE_CFLAGS"
7350 test -f deps.d || ac_enable_autodepend=no
7351 rm -rf deps.d
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7353 $as_echo "$ac_enable_autodepend" >&6; }
7355 if test $ac_enable_autodepend = yes; then
7356 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7357 ## In parallel builds, another make might create depdir between
7358 ## the first test and mkdir, so stick another test on the end.
7359 ## Or use mkinstalldirs? mkdir -p is not portable.
7360 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7361 deps_frag=autodeps.mk
7364 deps_frag=$srcdir/src/$deps_frag
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7371 $as_echo_n "checking for long file names... " >&6; }
7372 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 ac_cv_sys_long_file_names=yes
7376 # Test for long file names in all the places we know might matter:
7377 # . the current directory, where building will happen
7378 # $prefix/lib where we will be installing things
7379 # $exec_prefix/lib likewise
7380 # $TMPDIR if set, where it might want to write temporary files
7381 # /tmp where it might want to write temporary files
7382 # /var/tmp likewise
7383 # /usr/tmp likewise
7384 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7385 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7386 # in the usual case where exec_prefix is '${prefix}'.
7387 case $ac_dir in #(
7388 . | /* | ?:[\\/]*) ;; #(
7389 *) continue;;
7390 esac
7391 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7392 ac_xdir=$ac_dir/cf$$
7393 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7394 ac_tf1=$ac_xdir/conftest9012345
7395 ac_tf2=$ac_xdir/conftest9012346
7396 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7397 ac_cv_sys_long_file_names=no
7398 rm -f -r "$ac_xdir" 2>/dev/null
7399 test $ac_cv_sys_long_file_names = no && break
7400 done
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7403 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7404 if test $ac_cv_sys_long_file_names = yes; then
7406 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7411 #### Choose a window system.
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7414 $as_echo_n "checking for X... " >&6; }
7417 # Check whether --with-x was given.
7418 if test "${with_x+set}" = set; then :
7419 withval=$with_x;
7422 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7423 if test "x$with_x" = xno; then
7424 # The user explicitly disabled X.
7425 have_x=disabled
7426 else
7427 case $x_includes,$x_libraries in #(
7428 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7429 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 # One or both of the vars are not set, and there is no cached value.
7433 ac_x_includes=no ac_x_libraries=no
7434 rm -f -r conftest.dir
7435 if mkdir conftest.dir; then
7436 cd conftest.dir
7437 cat >Imakefile <<'_ACEOF'
7438 incroot:
7439 @echo incroot='${INCROOT}'
7440 usrlibdir:
7441 @echo usrlibdir='${USRLIBDIR}'
7442 libdir:
7443 @echo libdir='${LIBDIR}'
7444 _ACEOF
7445 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7447 for ac_var in incroot usrlibdir libdir; do
7448 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7449 done
7450 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7451 for ac_extension in a so sl dylib la dll; do
7452 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7453 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7454 ac_im_usrlibdir=$ac_im_libdir; break
7456 done
7457 # Screen out bogus values from the imake configuration. They are
7458 # bogus both because they are the default anyway, and because
7459 # using them would break gcc on systems where it needs fixed includes.
7460 case $ac_im_incroot in
7461 /usr/include) ac_x_includes= ;;
7462 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7463 esac
7464 case $ac_im_usrlibdir in
7465 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7466 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7467 esac
7469 cd ..
7470 rm -f -r conftest.dir
7473 # Standard set of common directories for X headers.
7474 # Check X11 before X11Rn because it is often a symlink to the current release.
7475 ac_x_header_dirs='
7476 /usr/X11/include
7477 /usr/X11R7/include
7478 /usr/X11R6/include
7479 /usr/X11R5/include
7480 /usr/X11R4/include
7482 /usr/include/X11
7483 /usr/include/X11R7
7484 /usr/include/X11R6
7485 /usr/include/X11R5
7486 /usr/include/X11R4
7488 /usr/local/X11/include
7489 /usr/local/X11R7/include
7490 /usr/local/X11R6/include
7491 /usr/local/X11R5/include
7492 /usr/local/X11R4/include
7494 /usr/local/include/X11
7495 /usr/local/include/X11R7
7496 /usr/local/include/X11R6
7497 /usr/local/include/X11R5
7498 /usr/local/include/X11R4
7500 /usr/X386/include
7501 /usr/x386/include
7502 /usr/XFree86/include/X11
7504 /usr/include
7505 /usr/local/include
7506 /usr/unsupported/include
7507 /usr/athena/include
7508 /usr/local/x11r5/include
7509 /usr/lpp/Xamples/include
7511 /usr/openwin/include
7512 /usr/openwin/share/include'
7514 if test "$ac_x_includes" = no; then
7515 # Guess where to find include files, by looking for Xlib.h.
7516 # First, try using that file with no special directory specified.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <X11/Xlib.h>
7520 _ACEOF
7521 if ac_fn_c_try_cpp "$LINENO"; then :
7522 # We can compile using X headers with no special include directory.
7523 ac_x_includes=
7524 else
7525 for ac_dir in $ac_x_header_dirs; do
7526 if test -r "$ac_dir/X11/Xlib.h"; then
7527 ac_x_includes=$ac_dir
7528 break
7530 done
7532 rm -f conftest.err conftest.$ac_ext
7533 fi # $ac_x_includes = no
7535 if test "$ac_x_libraries" = no; then
7536 # Check for the libraries.
7537 # See if we find them without any special options.
7538 # Don't add to $LIBS permanently.
7539 ac_save_LIBS=$LIBS
7540 LIBS="-lX11 $LIBS"
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <X11/Xlib.h>
7545 main ()
7547 XrmInitialize ()
7549 return 0;
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"; then :
7553 LIBS=$ac_save_LIBS
7554 # We can link X programs with no special library path.
7555 ac_x_libraries=
7556 else
7557 LIBS=$ac_save_LIBS
7558 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7560 # Don't even attempt the hair of trying to link an X program!
7561 for ac_extension in a so sl dylib la dll; do
7562 if test -r "$ac_dir/libX11.$ac_extension"; then
7563 ac_x_libraries=$ac_dir
7564 break 2
7566 done
7567 done
7569 rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7571 fi # $ac_x_libraries = no
7573 case $ac_x_includes,$ac_x_libraries in #(
7574 no,* | *,no | *\'*)
7575 # Didn't find X, or a directory has "'" in its name.
7576 ac_cv_have_x="have_x=no";; #(
7578 # Record where we found X for the cache.
7579 ac_cv_have_x="have_x=yes\
7580 ac_x_includes='$ac_x_includes'\
7581 ac_x_libraries='$ac_x_libraries'"
7582 esac
7584 ;; #(
7585 *) have_x=yes;;
7586 esac
7587 eval "$ac_cv_have_x"
7588 fi # $with_x != no
7590 if test "$have_x" != yes; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7592 $as_echo "$have_x" >&6; }
7593 no_x=yes
7594 else
7595 # If each of the values was on the command line, it overrides each guess.
7596 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7597 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7598 # Update the cache value to reflect the command line values.
7599 ac_cv_have_x="have_x=yes\
7600 ac_x_includes='$x_includes'\
7601 ac_x_libraries='$x_libraries'"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7603 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7606 if test "$no_x" = yes; then
7607 window_system=none
7608 else
7609 window_system=x11
7612 ## Workaround for bug in autoconf <= 2.62.
7613 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7614 ## No need to do anything special for these standard directories.
7615 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7617 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7621 LD_SWITCH_X_SITE_AUX=
7622 LD_SWITCH_X_SITE_AUX_RPATH=
7623 if test "${x_libraries}" != NONE; then
7624 if test -n "${x_libraries}"; then
7625 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7626 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7627 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7629 x_default_search_path=""
7630 x_search_path=${x_libraries}
7631 if test -z "${x_search_path}"; then
7632 x_search_path=/usr/lib
7634 for x_library in `echo ${x_search_path}: | \
7635 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7636 x_search_path="\
7637 ${x_library}/X11/%L/%T/%N%C%S:\
7638 ${x_library}/X11/%l/%T/%N%C%S:\
7639 ${x_library}/X11/%T/%N%C%S:\
7640 ${x_library}/X11/%L/%T/%N%S:\
7641 ${x_library}/X11/%l/%T/%N%S:\
7642 ${x_library}/X11/%T/%N%S"
7643 if test x"${x_default_search_path}" = x; then
7644 x_default_search_path=${x_search_path}
7645 else
7646 x_default_search_path="${x_search_path}:${x_default_search_path}"
7648 done
7653 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7654 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7657 if test x"${x_includes}" = x; then
7658 bitmapdir=/usr/include/X11/bitmaps
7659 else
7660 # accumulate include directories that have X11 bitmap subdirectories
7661 bmd_acc="dummyval"
7662 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7663 if test -d "${bmd}/X11/bitmaps"; then
7664 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7666 if test -d "${bmd}/bitmaps"; then
7667 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7669 done
7670 if test ${bmd_acc} != "dummyval"; then
7671 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7675 HAVE_NS=no
7676 NS_IMPL_COCOA=no
7677 NS_IMPL_GNUSTEP=no
7678 tmp_CPPFLAGS="$CPPFLAGS"
7679 tmp_CFLAGS="$CFLAGS"
7680 CPPFLAGS="$CPPFLAGS -x objective-c"
7681 CFLAGS="$CFLAGS -x objective-c"
7682 TEMACS_LDFLAGS2="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7683 if test "${with_ns}" != no; then
7684 if test "${opsys}" = darwin; then
7685 NS_IMPL_COCOA=yes
7686 ns_appdir=`pwd`/nextstep/Emacs.app/
7687 ns_appbindir=${ns_appdir}Contents/MacOS/
7688 ns_appresdir=${ns_appdir}Contents/Resources
7689 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7690 elif test -f $GNUSTEP_CONFIG_FILE; then
7691 NS_IMPL_GNUSTEP=yes
7692 ns_appdir=`pwd`/nextstep/Emacs.app/
7693 ns_appbindir=${ns_appdir}
7694 ns_appresdir=${ns_appdir}Resources
7695 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7696 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7697 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7698 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7699 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7700 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7701 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7702 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7703 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7704 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7705 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7706 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7707 LIB_STANDARD=
7708 START_FILES=
7709 TEMACS_LDFLAGS2=
7711 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7712 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7713 HAVE_NS=yes
7714 else
7715 as_fn_error "\`--with-ns' was specified, but the include
7716 files are missing or cannot be compiled." "$LINENO" 5
7720 NS_HAVE_NSINTEGER=yes
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #include <Foundation/NSObjCRuntime.h>
7725 main ()
7727 NSInteger i;
7729 return 0;
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733 ns_have_nsinteger=yes
7734 else
7735 ns_have_nsinteger=no
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 if test $ns_have_nsinteger = no; then
7739 NS_HAVE_NSINTEGER=no
7744 ns_frag=/dev/null
7745 NS_OBJ=
7746 NS_SUPPORT=
7747 if test "${HAVE_NS}" = yes; then
7748 window_system=nextstep
7749 with_xft=no
7750 # set up packaging dirs
7751 exec_prefix=${ns_appbindir}
7752 libexecdir=${ns_appbindir}/libexec
7753 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7754 prefix=${ns_appresdir}
7756 ns_frag=$srcdir/src/ns.mk
7757 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7758 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7760 CFLAGS="$tmp_CFLAGS"
7761 CPPFLAGS="$tmp_CPPFLAGS"
7767 case "${window_system}" in
7768 x11 )
7769 HAVE_X_WINDOWS=yes
7770 HAVE_X11=yes
7771 case "${with_x_toolkit}" in
7772 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7773 motif ) USE_X_TOOLKIT=MOTIF ;;
7774 gtk ) with_gtk=yes
7775 USE_X_TOOLKIT=none ;;
7776 gtk3 ) with_gtk3=yes
7777 USE_X_TOOLKIT=none ;;
7778 no ) USE_X_TOOLKIT=none ;;
7779 * ) USE_X_TOOLKIT=maybe ;;
7780 esac
7782 nextstep | none )
7783 HAVE_X_WINDOWS=no
7784 HAVE_X11=no
7785 USE_X_TOOLKIT=none
7787 esac
7789 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7790 # Extract the first word of "X", so it can be a program name with args.
7791 set dummy X; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$HAVE_XSERVER"; then
7798 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_HAVE_XSERVER="true"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7815 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7818 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7819 if test -n "$HAVE_XSERVER"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7821 $as_echo "$HAVE_XSERVER" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 if test "$HAVE_XSERVER" = true ||
7829 test -n "$DISPLAY" ||
7830 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7831 as_fn_error "You seem to be running X, but no X development libraries
7832 were found. You should install the relevant development files for X
7833 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7834 sure you have development files for image handling, i.e.
7835 tiff, gif, jpeg, png and xpm.
7836 If you are sure you want Emacs compiled without X window support, pass
7837 --without-x
7838 to configure." "$LINENO" 5
7842 ### If we're using X11, we should use the X menu package.
7843 HAVE_MENUS=no
7844 case ${HAVE_X11} in
7845 yes ) HAVE_MENUS=yes ;;
7846 esac
7848 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7849 # Assume not, until told otherwise.
7850 GNU_MALLOC=yes
7851 doug_lea_malloc=yes
7852 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7853 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7855 else
7856 doug_lea_malloc=no
7859 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7860 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7862 else
7863 doug_lea_malloc=no
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7867 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7868 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 extern void (* __after_morecore_hook)();
7875 main ()
7877 __after_morecore_hook = 0
7879 return 0;
7881 _ACEOF
7882 if ac_fn_c_try_link "$LINENO"; then :
7883 emacs_cv_var___after_morecore_hook=yes
7884 else
7885 emacs_cv_var___after_morecore_hook=no
7887 rm -f core conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7891 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7892 if test $emacs_cv_var___after_morecore_hook = no; then
7893 doug_lea_malloc=no
7897 system_malloc=no
7898 case "$opsys" in
7899 ## darwin ld insists on the use of malloc routines in the System framework.
7900 darwin|sol2-10) system_malloc=yes ;;
7901 esac
7903 if test "${system_malloc}" = "yes"; then
7905 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7907 GNU_MALLOC=no
7908 GNU_MALLOC_reason="
7909 (The GNU allocators don't work with this system configuration.)"
7910 GMALLOC_OBJ=
7911 VMLIMIT_OBJ=
7912 else
7913 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7914 VMLIMIT_OBJ=vm-limit.o
7919 if test "$doug_lea_malloc" = "yes" ; then
7920 if test "$GNU_MALLOC" = yes ; then
7921 GNU_MALLOC_reason="
7922 (Using Doug Lea's new malloc from the GNU C Library.)"
7925 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7928 ## Use mmap directly for allocating larger buffers.
7929 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7930 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7931 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7932 case "$opsys" in
7933 gnu*) REL_ALLOC=no ;;
7934 esac
7937 if test x"${REL_ALLOC}" = x; then
7938 REL_ALLOC=${GNU_MALLOC}
7941 use_mmap_for_buffers=no
7942 case "$opsys" in
7943 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7944 esac
7949 for ac_header in $ac_header_list
7950 do :
7951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7954 eval as_val=\$$as_ac_Header
7955 if test "x$as_val" = x""yes; then :
7956 cat >>confdefs.h <<_ACEOF
7957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7958 _ACEOF
7962 done
7971 for ac_func in getpagesize
7972 do :
7973 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7974 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_GETPAGESIZE 1
7977 _ACEOF
7980 done
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7983 $as_echo_n "checking for working mmap... " >&6; }
7984 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 if test "$cross_compiling" = yes; then :
7988 ac_cv_func_mmap_fixed_mapped=no
7989 else
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992 $ac_includes_default
7993 /* malloc might have been renamed as rpl_malloc. */
7994 #undef malloc
7996 /* Thanks to Mike Haertel and Jim Avera for this test.
7997 Here is a matrix of mmap possibilities:
7998 mmap private not fixed
7999 mmap private fixed at somewhere currently unmapped
8000 mmap private fixed at somewhere already mapped
8001 mmap shared not fixed
8002 mmap shared fixed at somewhere currently unmapped
8003 mmap shared fixed at somewhere already mapped
8004 For private mappings, we should verify that changes cannot be read()
8005 back from the file, nor mmap's back from the file at a different
8006 address. (There have been systems where private was not correctly
8007 implemented like the infamous i386 svr4.0, and systems where the
8008 VM page cache was not coherent with the file system buffer cache
8009 like early versions of FreeBSD and possibly contemporary NetBSD.)
8010 For shared mappings, we should conversely verify that changes get
8011 propagated back to all the places they're supposed to be.
8013 Grep wants private fixed already mapped.
8014 The main things grep needs to know about mmap are:
8015 * does it exist and is it safe to write into the mmap'd area
8016 * how to use it (BSD variants) */
8018 #include <fcntl.h>
8019 #include <sys/mman.h>
8021 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8022 char *malloc ();
8023 #endif
8025 /* This mess was copied from the GNU getpagesize.h. */
8026 #ifndef HAVE_GETPAGESIZE
8027 # ifdef _SC_PAGESIZE
8028 # define getpagesize() sysconf(_SC_PAGESIZE)
8029 # else /* no _SC_PAGESIZE */
8030 # ifdef HAVE_SYS_PARAM_H
8031 # include <sys/param.h>
8032 # ifdef EXEC_PAGESIZE
8033 # define getpagesize() EXEC_PAGESIZE
8034 # else /* no EXEC_PAGESIZE */
8035 # ifdef NBPG
8036 # define getpagesize() NBPG * CLSIZE
8037 # ifndef CLSIZE
8038 # define CLSIZE 1
8039 # endif /* no CLSIZE */
8040 # else /* no NBPG */
8041 # ifdef NBPC
8042 # define getpagesize() NBPC
8043 # else /* no NBPC */
8044 # ifdef PAGESIZE
8045 # define getpagesize() PAGESIZE
8046 # endif /* PAGESIZE */
8047 # endif /* no NBPC */
8048 # endif /* no NBPG */
8049 # endif /* no EXEC_PAGESIZE */
8050 # else /* no HAVE_SYS_PARAM_H */
8051 # define getpagesize() 8192 /* punt totally */
8052 # endif /* no HAVE_SYS_PARAM_H */
8053 # endif /* no _SC_PAGESIZE */
8055 #endif /* no HAVE_GETPAGESIZE */
8058 main ()
8060 char *data, *data2, *data3;
8061 const char *cdata2;
8062 int i, pagesize;
8063 int fd, fd2;
8065 pagesize = getpagesize ();
8067 /* First, make a file with some known garbage in it. */
8068 data = (char *) malloc (pagesize);
8069 if (!data)
8070 return 1;
8071 for (i = 0; i < pagesize; ++i)
8072 *(data + i) = rand ();
8073 umask (0);
8074 fd = creat ("conftest.mmap", 0600);
8075 if (fd < 0)
8076 return 2;
8077 if (write (fd, data, pagesize) != pagesize)
8078 return 3;
8079 close (fd);
8081 /* Next, check that the tail of a page is zero-filled. File must have
8082 non-zero length, otherwise we risk SIGBUS for entire page. */
8083 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8084 if (fd2 < 0)
8085 return 4;
8086 cdata2 = "";
8087 if (write (fd2, cdata2, 1) != 1)
8088 return 5;
8089 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8090 if (data2 == MAP_FAILED)
8091 return 6;
8092 for (i = 0; i < pagesize; ++i)
8093 if (*(data2 + i))
8094 return 7;
8095 close (fd2);
8096 if (munmap (data2, pagesize))
8097 return 8;
8099 /* Next, try to mmap the file at a fixed address which already has
8100 something else allocated at it. If we can, also make sure that
8101 we see the same garbage. */
8102 fd = open ("conftest.mmap", O_RDWR);
8103 if (fd < 0)
8104 return 9;
8105 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8106 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8107 return 10;
8108 for (i = 0; i < pagesize; ++i)
8109 if (*(data + i) != *(data2 + i))
8110 return 11;
8112 /* Finally, make sure that changes to the mapped area do not
8113 percolate back to the file as seen by read(). (This is a bug on
8114 some variants of i386 svr4.0.) */
8115 for (i = 0; i < pagesize; ++i)
8116 *(data2 + i) = *(data2 + i) + 1;
8117 data3 = (char *) malloc (pagesize);
8118 if (!data3)
8119 return 12;
8120 if (read (fd, data3, pagesize) != pagesize)
8121 return 13;
8122 for (i = 0; i < pagesize; ++i)
8123 if (*(data + i) != *(data3 + i))
8124 return 14;
8125 close (fd);
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_run "$LINENO"; then :
8130 ac_cv_func_mmap_fixed_mapped=yes
8131 else
8132 ac_cv_func_mmap_fixed_mapped=no
8134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8135 conftest.$ac_objext conftest.beam conftest.$ac_ext
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8140 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8141 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8143 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8146 rm -f conftest.mmap conftest.txt
8148 if test $use_mmap_for_buffers = yes; then
8150 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8152 REL_ALLOC=no
8155 LIBS="$LIBS_SYSTEM $LIBS"
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8158 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8159 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 ac_check_lib_save_LIBS=$LIBS
8163 LIBS="-ldnet $LIBS"
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8167 /* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
8170 #ifdef __cplusplus
8171 extern "C"
8172 #endif
8173 char dnet_ntoa ();
8175 main ()
8177 return dnet_ntoa ();
8179 return 0;
8181 _ACEOF
8182 if ac_fn_c_try_link "$LINENO"; then :
8183 ac_cv_lib_dnet_dnet_ntoa=yes
8184 else
8185 ac_cv_lib_dnet_dnet_ntoa=no
8187 rm -f core conftest.err conftest.$ac_objext \
8188 conftest$ac_exeext conftest.$ac_ext
8189 LIBS=$ac_check_lib_save_LIBS
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8192 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8193 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8194 cat >>confdefs.h <<_ACEOF
8195 #define HAVE_LIBDNET 1
8196 _ACEOF
8198 LIBS="-ldnet $LIBS"
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8204 $as_echo_n "checking for main in -lXbsd... " >&6; }
8205 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 ac_check_lib_save_LIBS=$LIBS
8209 LIBS="-lXbsd $LIBS"
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8215 main ()
8217 return main ();
8219 return 0;
8221 _ACEOF
8222 if ac_fn_c_try_link "$LINENO"; then :
8223 ac_cv_lib_Xbsd_main=yes
8224 else
8225 ac_cv_lib_Xbsd_main=no
8227 rm -f core conftest.err conftest.$ac_objext \
8228 conftest$ac_exeext conftest.$ac_ext
8229 LIBS=$ac_check_lib_save_LIBS
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8232 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8233 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8234 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8239 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8240 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 ac_check_lib_save_LIBS=$LIBS
8244 LIBS="-lpthreads $LIBS"
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8248 /* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
8251 #ifdef __cplusplus
8252 extern "C"
8253 #endif
8254 char cma_open ();
8256 main ()
8258 return cma_open ();
8260 return 0;
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 ac_cv_lib_pthreads_cma_open=yes
8265 else
8266 ac_cv_lib_pthreads_cma_open=no
8268 rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 LIBS=$ac_check_lib_save_LIBS
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8273 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8274 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8275 cat >>confdefs.h <<_ACEOF
8276 #define HAVE_LIBPTHREADS 1
8277 _ACEOF
8279 LIBS="-lpthreads $LIBS"
8284 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8285 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8286 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8287 ## added to LIBS in configure would never contain the pthreads part,
8288 ## but the value used in Makefiles might. FIXME?
8290 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8291 ## be harmless on older versions of X where it happens to exist.
8292 test "$opsys" = "aix4-2" && \
8293 test $ac_cv_lib_pthreads_cma_open = yes && \
8294 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8297 case ${host_os} in
8298 aix*)
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8300 $as_echo_n "checking for -bbigtoc option... " >&6; }
8301 if test "${gdb_cv_bigtoc+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8305 case $GCC in
8306 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8307 *) gdb_cv_bigtoc=-bbigtoc ;;
8308 esac
8310 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8315 main ()
8317 int i;
8319 return 0;
8321 _ACEOF
8322 if ac_fn_c_try_link "$LINENO"; then :
8324 else
8325 gdb_cv_bigtoc=
8327 rm -f core conftest.err conftest.$ac_objext \
8328 conftest$ac_exeext conftest.$ac_ext
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8332 $as_echo "$gdb_cv_bigtoc" >&6; }
8334 esac
8336 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8337 # used for the tests that follow. We set them back to REAL_CFLAGS and
8338 # REAL_CPPFLAGS later on.
8340 REAL_CFLAGS="$CFLAGS"
8341 REAL_CPPFLAGS="$CPPFLAGS"
8343 if test "${HAVE_X11}" = "yes"; then
8344 DEFS="$C_SWITCH_X_SITE $DEFS"
8345 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8346 LIBS="-lX11 $LIBS"
8347 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8348 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8350 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8351 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8352 # but it's more convenient here to set LD_RUN_PATH
8353 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8354 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8355 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8356 export LD_RUN_PATH
8359 if test "${opsys}" = "gnu-linux"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8361 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8366 main ()
8368 XOpenDisplay ("foo");
8370 return 0;
8372 _ACEOF
8373 if ac_fn_c_try_link "$LINENO"; then :
8374 xlinux_first_failure=no
8375 else
8376 xlinux_first_failure=yes
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 if test "${xlinux_first_failure}" = "yes"; then
8381 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8382 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8383 OLD_CPPFLAGS="$CPPFLAGS"
8384 OLD_LIBS="$LIBS"
8385 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8386 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8387 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8388 LIBS="$LIBS -b i486-linuxaout"
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8393 main ()
8395 XOpenDisplay ("foo");
8397 return 0;
8399 _ACEOF
8400 if ac_fn_c_try_link "$LINENO"; then :
8401 xlinux_second_failure=no
8402 else
8403 xlinux_second_failure=yes
8405 rm -f core conftest.err conftest.$ac_objext \
8406 conftest$ac_exeext conftest.$ac_ext
8407 if test "${xlinux_second_failure}" = "yes"; then
8408 # If we get the same failure with -b, there is no use adding -b.
8409 # So take it out. This plays safe.
8410 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8411 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8412 CPPFLAGS="$OLD_CPPFLAGS"
8413 LIBS="$OLD_LIBS"
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 else
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8418 $as_echo "yes" >&6; }
8420 else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8426 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8427 # header files included from there.
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8429 $as_echo_n "checking for Xkb... " >&6; }
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <X11/Xlib.h>
8433 #include <X11/XKBlib.h>
8435 main ()
8437 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8439 return 0;
8441 _ACEOF
8442 if ac_fn_c_try_link "$LINENO"; then :
8443 emacs_xkb=yes
8444 else
8445 emacs_xkb=no
8447 rm -f core conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8450 $as_echo "$emacs_xkb" >&6; }
8451 if test $emacs_xkb = yes; then
8453 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8457 for ac_func in XrmSetDatabase XScreenResourceString \
8458 XScreenNumberOfScreen XSetWMProtocols
8459 do :
8460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8461 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8462 eval as_val=\$$as_ac_var
8463 if test "x$as_val" = x""yes; then :
8464 cat >>confdefs.h <<_ACEOF
8465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8466 _ACEOF
8469 done
8473 if test "${window_system}" = "x11"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8475 $as_echo_n "checking X11 version 6... " >&6; }
8476 if test "${emacs_cv_x11_version_6+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <X11/Xlib.h>
8483 main ()
8485 #if XlibSpecificationRelease < 6
8486 fail;
8487 #endif
8490 return 0;
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"; then :
8494 emacs_cv_x11_version_6=yes
8495 else
8496 emacs_cv_x11_version_6=no
8498 rm -f core conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8502 if test $emacs_cv_x11_version_6 = yes; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8504 $as_echo "6 or newer" >&6; }
8506 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8509 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8511 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8512 ## XIM support.
8513 case "$opsys" in
8514 sol2-*) : ;;
8516 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8519 esac
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8522 $as_echo "before 6" >&6; }
8527 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8528 HAVE_RSVG=no
8529 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8530 if test "${with_rsvg}" != "no"; then
8531 RSVG_REQUIRED=2.11.0
8532 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8535 succeeded=no
8537 # Extract the first word of "pkg-config", so it can be a program name with args.
8538 set dummy pkg-config; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 case $PKG_CONFIG in
8545 [\\/]* | ?:[\\/]*)
8546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8560 done
8561 done
8562 IFS=$as_save_IFS
8564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8566 esac
8568 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8569 if test -n "$PKG_CONFIG"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8571 $as_echo "$PKG_CONFIG" >&6; }
8572 else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8579 if test "$PKG_CONFIG" = "no" ; then
8581 else
8582 PKG_CONFIG_MIN_VERSION=0.9.0
8583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8585 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8587 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8589 $as_echo "yes" >&6; }
8590 succeeded=yes
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8593 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8594 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8596 $as_echo "$RSVG_CFLAGS" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8599 $as_echo_n "checking RSVG_LIBS... " >&6; }
8600 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8602 $as_echo "$RSVG_LIBS" >&6; }
8603 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 RSVG_CFLAGS=""
8607 RSVG_LIBS=""
8608 ## If we have a custom action on failure, don't print errors, but
8609 ## do set a variable so people can do so.
8610 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8616 else
8617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8622 if test $succeeded = yes; then
8623 HAVE_RSVG=yes
8624 else
8631 if test $HAVE_RSVG = yes; then
8633 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8635 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8636 LIBS="$RSVG_LIBS $LIBS"
8641 HAVE_IMAGEMAGICK=no
8642 if test "${with_imagemagick}" != "no"; then
8643 IMAGEMAGICK_MODULE="Wand"
8645 succeeded=no
8647 # Extract the first word of "pkg-config", so it can be a program name with args.
8648 set dummy pkg-config; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 case $PKG_CONFIG in
8655 [\\/]* | ?:[\\/]*)
8656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8670 done
8671 done
8672 IFS=$as_save_IFS
8674 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8676 esac
8678 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8679 if test -n "$PKG_CONFIG"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8681 $as_echo "$PKG_CONFIG" >&6; }
8682 else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8689 if test "$PKG_CONFIG" = "no" ; then
8691 else
8692 PKG_CONFIG_MIN_VERSION=0.9.0
8693 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8695 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8697 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8699 $as_echo "yes" >&6; }
8700 succeeded=yes
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8703 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8704 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8706 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8709 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8710 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8712 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 IMAGEMAGICK_CFLAGS=""
8717 IMAGEMAGICK_LIBS=""
8718 ## If we have a custom action on failure, don't print errors, but
8719 ## do set a variable so people can do so.
8720 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8726 else
8727 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8728 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8732 if test $succeeded = yes; then
8733 HAVE_IMAGEMAGICK=yes
8734 else
8741 if test $HAVE_IMAGEMAGICK = yes; then
8743 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8745 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8746 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8747 for ac_func in MagickExportImagePixels
8748 do :
8749 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8750 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8751 cat >>confdefs.h <<_ACEOF
8752 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8753 _ACEOF
8756 done
8762 HAVE_GTK=no
8763 if test "${with_gtk3}" = "yes"; then
8764 GLIB_REQUIRED=2.6
8765 GTK_REQUIRED=2.90
8766 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8769 succeeded=no
8771 # Extract the first word of "pkg-config", so it can be a program name with args.
8772 set dummy pkg-config; ac_word=$2
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774 $as_echo_n "checking for $ac_word... " >&6; }
8775 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 case $PKG_CONFIG in
8779 [\\/]* | ?:[\\/]*)
8780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8790 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8794 done
8795 done
8796 IFS=$as_save_IFS
8798 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8800 esac
8802 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8803 if test -n "$PKG_CONFIG"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8805 $as_echo "$PKG_CONFIG" >&6; }
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 if test "$PKG_CONFIG" = "no" ; then
8814 pkg_check_gtk=no
8815 else
8816 PKG_CONFIG_MIN_VERSION=0.9.0
8817 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8819 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8821 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8823 $as_echo "yes" >&6; }
8824 succeeded=yes
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8827 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8828 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8830 $as_echo "$GTK_CFLAGS" >&6; }
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8833 $as_echo_n "checking GTK_LIBS... " >&6; }
8834 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8836 $as_echo "$GTK_LIBS" >&6; }
8837 else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 GTK_CFLAGS=""
8841 GTK_LIBS=""
8842 ## If we have a custom action on failure, don't print errors, but
8843 ## do set a variable so people can do so.
8844 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8850 else
8851 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8852 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8856 if test $succeeded = yes; then
8857 pkg_check_gtk=yes
8858 else
8859 pkg_check_gtk=no
8862 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8863 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8867 if test "$pkg_check_gtk" != "yes"; then
8868 HAVE_GTK=no
8869 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8870 GLIB_REQUIRED=2.6
8871 GTK_REQUIRED=2.6
8872 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8875 succeeded=no
8877 # Extract the first word of "pkg-config", so it can be a program name with args.
8878 set dummy pkg-config; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 case $PKG_CONFIG in
8885 [\\/]* | ?:[\\/]*)
8886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 break 2
8900 done
8901 done
8902 IFS=$as_save_IFS
8904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8906 esac
8908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8909 if test -n "$PKG_CONFIG"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8911 $as_echo "$PKG_CONFIG" >&6; }
8912 else
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8919 if test "$PKG_CONFIG" = "no" ; then
8920 pkg_check_gtk=no
8921 else
8922 PKG_CONFIG_MIN_VERSION=0.9.0
8923 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8925 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8927 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8929 $as_echo "yes" >&6; }
8930 succeeded=yes
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8933 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8934 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8936 $as_echo "$GTK_CFLAGS" >&6; }
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8939 $as_echo_n "checking GTK_LIBS... " >&6; }
8940 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8942 $as_echo "$GTK_LIBS" >&6; }
8943 else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8946 GTK_CFLAGS=""
8947 GTK_LIBS=""
8948 ## If we have a custom action on failure, don't print errors, but
8949 ## do set a variable so people can do so.
8950 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8956 else
8957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8962 if test $succeeded = yes; then
8963 pkg_check_gtk=yes
8964 else
8965 pkg_check_gtk=no
8968 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8969 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8974 GTK_OBJ=
8975 if test x"$pkg_check_gtk" = xyes; then
8979 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8980 CFLAGS="$CFLAGS $GTK_CFLAGS"
8981 LIBS="$GTK_LIBS $LIBS"
8982 GTK_COMPILES=no
8983 for ac_func in gtk_main
8984 do :
8985 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8986 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8987 cat >>confdefs.h <<_ACEOF
8988 #define HAVE_GTK_MAIN 1
8989 _ACEOF
8990 GTK_COMPILES=yes
8992 done
8994 if test "${GTK_COMPILES}" != "yes"; then
8995 if test "$USE_X_TOOLKIT" != "maybe"; then
8996 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8998 else
8999 HAVE_GTK=yes
9001 $as_echo "#define USE_GTK 1" >>confdefs.h
9003 GTK_OBJ=gtkutil.o
9004 USE_X_TOOLKIT=none
9005 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9007 else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9009 closing open displays. This is no problem if you just use
9010 one display, but if you use more than one and close one of them
9011 Emacs may crash." >&5
9012 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9013 closing open displays. This is no problem if you just use
9014 one display, but if you use more than one and close one of them
9015 Emacs may crash." >&2;}
9016 sleep 3
9024 if test "${HAVE_GTK}" = "yes"; then
9026 if test "$with_toolkit_scroll_bars" != no; then
9027 with_toolkit_scroll_bars=yes
9030 HAVE_GTK_FILE_SELECTION=no
9031 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9032 #include <gtk/gtk.h>
9034 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9035 HAVE_GTK_FILE_SELECTION=yes
9036 else
9037 HAVE_GTK_FILE_SELECTION=no
9040 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9041 for ac_func in gtk_file_selection_new
9042 do :
9043 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9044 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9045 cat >>confdefs.h <<_ACEOF
9046 #define HAVE_GTK_FILE_SELECTION_NEW 1
9047 _ACEOF
9050 done
9054 HAVE_GTK_AND_PTHREAD=no
9055 for ac_header in pthread.h
9056 do :
9057 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9058 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9059 cat >>confdefs.h <<_ACEOF
9060 #define HAVE_PTHREAD_H 1
9061 _ACEOF
9065 done
9067 if test "$ac_cv_header_pthread_h"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9069 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9070 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 ac_check_lib_save_LIBS=$LIBS
9074 LIBS="-lpthread $LIBS"
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9078 /* Override any GCC internal prototype to avoid an error.
9079 Use char because int might match the return type of a GCC
9080 builtin and then its argument prototype would still apply. */
9081 #ifdef __cplusplus
9082 extern "C"
9083 #endif
9084 char pthread_self ();
9086 main ()
9088 return pthread_self ();
9090 return 0;
9092 _ACEOF
9093 if ac_fn_c_try_link "$LINENO"; then :
9094 ac_cv_lib_pthread_pthread_self=yes
9095 else
9096 ac_cv_lib_pthread_pthread_self=no
9098 rm -f core conftest.err conftest.$ac_objext \
9099 conftest$ac_exeext conftest.$ac_ext
9100 LIBS=$ac_check_lib_save_LIBS
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9103 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9104 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9105 HAVE_GTK_AND_PTHREAD=yes
9109 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9110 case "${canonical}" in
9111 *-hpux*) ;;
9112 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9113 esac
9115 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9119 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9120 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9121 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9122 gtk_orientable_set_orientation
9123 do :
9124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9125 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9126 eval as_val=\$$as_ac_var
9127 if test "x$as_val" = x""yes; then :
9128 cat >>confdefs.h <<_ACEOF
9129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9130 _ACEOF
9133 done
9138 HAVE_DBUS=no
9139 DBUS_OBJ=
9140 if test "${with_dbus}" = "yes"; then
9142 succeeded=no
9144 # Extract the first word of "pkg-config", so it can be a program name with args.
9145 set dummy pkg-config; ac_word=$2
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147 $as_echo_n "checking for $ac_word... " >&6; }
9148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 case $PKG_CONFIG in
9152 [\\/]* | ?:[\\/]*)
9153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 for as_dir in $PATH
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165 break 2
9167 done
9168 done
9169 IFS=$as_save_IFS
9171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9173 esac
9175 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9176 if test -n "$PKG_CONFIG"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9178 $as_echo "$PKG_CONFIG" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 if test "$PKG_CONFIG" = "no" ; then
9187 HAVE_DBUS=no
9188 else
9189 PKG_CONFIG_MIN_VERSION=0.9.0
9190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9192 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9194 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9196 $as_echo "yes" >&6; }
9197 succeeded=yes
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9200 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9201 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9203 $as_echo "$DBUS_CFLAGS" >&6; }
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9206 $as_echo_n "checking DBUS_LIBS... " >&6; }
9207 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9209 $as_echo "$DBUS_LIBS" >&6; }
9210 else
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9213 DBUS_CFLAGS=""
9214 DBUS_LIBS=""
9215 ## If we have a custom action on failure, don't print errors, but
9216 ## do set a variable so people can do so.
9217 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9223 else
9224 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9225 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9229 if test $succeeded = yes; then
9230 HAVE_DBUS=yes
9231 else
9232 HAVE_DBUS=no
9235 if test "$HAVE_DBUS" = yes; then
9236 LIBS="$LIBS $DBUS_LIBS"
9238 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9240 for ac_func in dbus_watch_get_unix_fd
9241 do :
9242 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9243 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9244 cat >>confdefs.h <<_ACEOF
9245 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9246 _ACEOF
9249 done
9251 DBUS_OBJ=dbusbind.o
9256 HAVE_GCONF=no
9257 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9259 succeeded=no
9261 # Extract the first word of "pkg-config", so it can be a program name with args.
9262 set dummy pkg-config; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 case $PKG_CONFIG in
9269 [\\/]* | ?:[\\/]*)
9270 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9284 done
9285 done
9286 IFS=$as_save_IFS
9288 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9290 esac
9292 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9293 if test -n "$PKG_CONFIG"; then
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9295 $as_echo "$PKG_CONFIG" >&6; }
9296 else
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 $as_echo "no" >&6; }
9303 if test "$PKG_CONFIG" = "no" ; then
9304 HAVE_GCONF=no
9305 else
9306 PKG_CONFIG_MIN_VERSION=0.9.0
9307 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9309 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9311 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9313 $as_echo "yes" >&6; }
9314 succeeded=yes
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9317 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9318 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9320 $as_echo "$GCONF_CFLAGS" >&6; }
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9323 $as_echo_n "checking GCONF_LIBS... " >&6; }
9324 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9326 $as_echo "$GCONF_LIBS" >&6; }
9327 else
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9330 GCONF_CFLAGS=""
9331 GCONF_LIBS=""
9332 ## If we have a custom action on failure, don't print errors, but
9333 ## do set a variable so people can do so.
9334 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9340 else
9341 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9342 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9346 if test $succeeded = yes; then
9347 HAVE_GCONF=yes
9348 else
9349 HAVE_GCONF=no
9352 if test "$HAVE_GCONF" = yes; then
9354 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9359 HAVE_LIBSELINUX=no
9360 LIBSELINUX_LIBS=
9361 if test "${with_selinux}" = "yes"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9363 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9364 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 ac_check_lib_save_LIBS=$LIBS
9368 LIBS="-lselinux $LIBS"
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9375 #ifdef __cplusplus
9376 extern "C"
9377 #endif
9378 char lgetfilecon ();
9380 main ()
9382 return lgetfilecon ();
9384 return 0;
9386 _ACEOF
9387 if ac_fn_c_try_link "$LINENO"; then :
9388 ac_cv_lib_selinux_lgetfilecon=yes
9389 else
9390 ac_cv_lib_selinux_lgetfilecon=no
9392 rm -f core conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9397 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9398 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9399 HAVE_LIBSELINUX=yes
9400 else
9401 HAVE_LIBSELINUX=no
9404 if test "$HAVE_LIBSELINUX" = yes; then
9406 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9408 LIBSELINUX_LIBS=-lselinux
9413 HAVE_GNUTLS=no
9414 if test "${with_gnutls}" = "yes" ; then
9416 succeeded=no
9418 # Extract the first word of "pkg-config", so it can be a program name with args.
9419 set dummy pkg-config; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 case $PKG_CONFIG in
9426 [\\/]* | ?:[\\/]*)
9427 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9441 done
9442 done
9443 IFS=$as_save_IFS
9445 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9447 esac
9449 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9450 if test -n "$PKG_CONFIG"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9452 $as_echo "$PKG_CONFIG" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9460 if test "$PKG_CONFIG" = "no" ; then
9461 HAVE_GNUTLS=no
9462 else
9463 PKG_CONFIG_MIN_VERSION=0.9.0
9464 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9466 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9468 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470 $as_echo "yes" >&6; }
9471 succeeded=yes
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9474 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9475 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9477 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9480 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9481 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9483 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9484 else
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9487 LIBGNUTLS_CFLAGS=""
9488 LIBGNUTLS_LIBS=""
9489 ## If we have a custom action on failure, don't print errors, but
9490 ## do set a variable so people can do so.
9491 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9497 else
9498 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9499 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9503 if test $succeeded = yes; then
9504 HAVE_GNUTLS=yes
9505 else
9506 HAVE_GNUTLS=no
9509 if test "${HAVE_GNUTLS}" = "yes"; then
9510 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9517 HAVE_XAW3D=no
9518 LUCID_LIBW=
9519 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9520 if test "$with_xaw3d" != no; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9522 $as_echo_n "checking for xaw3d... " >&6; }
9523 if test "${emacs_cv_xaw3d+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9529 #include <X11/Intrinsic.h>
9530 #include <X11/Xaw3d/Simple.h>
9532 main ()
9536 return 0;
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"; then :
9540 emacs_cv_xaw3d=yes
9541 else
9542 emacs_cv_xaw3d=no
9544 rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9548 else
9549 emacs_cv_xaw3d=no
9551 if test $emacs_cv_xaw3d = yes; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9553 $as_echo "yes; using Lucid toolkit" >&6; }
9554 USE_X_TOOLKIT=LUCID
9555 HAVE_XAW3D=yes
9556 LUCID_LIBW=-lXaw3d
9558 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9560 else
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9564 $as_echo_n "checking for libXaw... " >&6; }
9565 if test "${emacs_cv_xaw+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9571 #include <X11/Intrinsic.h>
9572 #include <X11/Xaw/Simple.h>
9574 main ()
9578 return 0;
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"; then :
9582 emacs_cv_xaw=yes
9583 else
9584 emacs_cv_xaw=no
9586 rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9590 if test $emacs_cv_xaw = yes; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9592 $as_echo "yes; using Lucid toolkit" >&6; }
9593 USE_X_TOOLKIT=LUCID
9594 LUCID_LIBW=-lXaw
9595 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9596 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9599 $as_echo "no; do not use toolkit by default" >&6; }
9600 USE_X_TOOLKIT=none
9605 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9607 LIBXTR6=
9608 if test "${USE_X_TOOLKIT}" != "none"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9610 $as_echo_n "checking X11 toolkit version... " >&6; }
9611 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616 #include <X11/Intrinsic.h>
9618 main ()
9620 #if XtSpecificationRelease < 6
9621 fail;
9622 #endif
9625 return 0;
9627 _ACEOF
9628 if ac_fn_c_try_link "$LINENO"; then :
9629 emacs_cv_x11_toolkit_version_6=yes
9630 else
9631 emacs_cv_x11_toolkit_version_6=no
9633 rm -f core conftest.err conftest.$ac_objext \
9634 conftest$ac_exeext conftest.$ac_ext
9637 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9638 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9640 $as_echo "6 or newer" >&6; }
9642 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9644 LIBXTR6="-lSM -lICE"
9645 case "$opsys" in
9646 ## Use libw.a along with X11R6 Xt.
9647 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9648 esac
9649 else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9651 $as_echo "before 6" >&6; }
9654 OLDLIBS="$LIBS"
9655 if test x$HAVE_X11XTR6 = xyes; then
9656 LIBS="-lXt -lSM -lICE $LIBS"
9657 else
9658 LIBS="-lXt $LIBS"
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9661 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9662 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9663 $as_echo_n "(cached) " >&6
9664 else
9665 ac_check_lib_save_LIBS=$LIBS
9666 LIBS="-lXmu $LIBS"
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9670 /* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 char XmuConvertStandardSelection ();
9678 main ()
9680 return XmuConvertStandardSelection ();
9682 return 0;
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9687 else
9688 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9690 rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_lib_save_LIBS
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9695 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9696 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9697 cat >>confdefs.h <<_ACEOF
9698 #define HAVE_LIBXMU 1
9699 _ACEOF
9701 LIBS="-lXmu $LIBS"
9705 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9709 LIBXMU=-lXmu
9710 case "$machine" in
9711 ## These machines don't supply Xmu.
9712 hpux* | aix4-2 )
9713 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9715 esac
9718 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9719 if test "${HAVE_X11}" = "yes"; then
9720 if test "${USE_X_TOOLKIT}" != "none"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9722 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9723 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 ac_check_lib_save_LIBS=$LIBS
9727 LIBS="-lXext $LIBS"
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char XShapeQueryExtension ();
9739 main ()
9741 return XShapeQueryExtension ();
9743 return 0;
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 ac_cv_lib_Xext_XShapeQueryExtension=yes
9748 else
9749 ac_cv_lib_Xext_XShapeQueryExtension=no
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9756 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9757 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9758 cat >>confdefs.h <<_ACEOF
9759 #define HAVE_LIBXEXT 1
9760 _ACEOF
9762 LIBS="-lXext $LIBS"
9769 LIBXP=
9770 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9772 $as_echo_n "checking for Motif version 2.1... " >&6; }
9773 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 #include <Xm/Xm.h>
9780 main ()
9782 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9783 int x = 5;
9784 #else
9785 Motif version prior to 2.1.
9786 #endif
9788 return 0;
9790 _ACEOF
9791 if ac_fn_c_try_compile "$LINENO"; then :
9792 emacs_cv_motif_version_2_1=yes
9793 else
9794 emacs_cv_motif_version_2_1=no
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9799 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9800 if test $emacs_cv_motif_version_2_1 = yes; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9802 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9803 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9804 $as_echo_n "(cached) " >&6
9805 else
9806 ac_check_lib_save_LIBS=$LIBS
9807 LIBS="-lXp $LIBS"
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char XpCreateContext ();
9819 main ()
9821 return XpCreateContext ();
9823 return 0;
9825 _ACEOF
9826 if ac_fn_c_try_link "$LINENO"; then :
9827 ac_cv_lib_Xp_XpCreateContext=yes
9828 else
9829 ac_cv_lib_Xp_XpCreateContext=no
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9836 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9837 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9838 LIBXP=-lXp
9841 else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9843 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9844 if test "${emacs_cv_lesstif+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 # We put this in CFLAGS temporarily to precede other -I options
9848 # that might be in CFLAGS temporarily.
9849 # We put this in CPPFLAGS where it precedes the other -I options.
9850 OLD_CPPFLAGS=$CPPFLAGS
9851 OLD_CFLAGS=$CFLAGS
9852 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9853 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9858 main ()
9860 int x = 5;
9862 return 0;
9864 _ACEOF
9865 if ac_fn_c_try_compile "$LINENO"; then :
9866 emacs_cv_lesstif=yes
9867 else
9868 emacs_cv_lesstif=no
9870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9873 $as_echo "$emacs_cv_lesstif" >&6; }
9874 if test $emacs_cv_lesstif = yes; then
9875 # Make sure this -I option remains in CPPFLAGS after it is set
9876 # back to REAL_CPPFLAGS.
9877 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9878 # have those other -I options anyway. Ultimately, having this
9879 # directory ultimately in CPPFLAGS will be enough.
9880 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9881 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9882 else
9883 CFLAGS=$OLD_CFLAGS
9884 CPPFLAGS=$OLD_CPPFLAGS
9890 USE_TOOLKIT_SCROLL_BARS=no
9891 if test "${with_toolkit_scroll_bars}" != "no"; then
9892 if test "${USE_X_TOOLKIT}" != "none"; then
9893 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9894 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9896 HAVE_XAW3D=no
9897 USE_TOOLKIT_SCROLL_BARS=yes
9898 elif test "${HAVE_XAW3D}" = "yes"; then
9899 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9901 USE_TOOLKIT_SCROLL_BARS=yes
9903 elif test "${HAVE_GTK}" = "yes"; then
9904 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9906 USE_TOOLKIT_SCROLL_BARS=yes
9907 elif test "${HAVE_NS}" = "yes"; then
9908 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9910 USE_TOOLKIT_SCROLL_BARS=yes
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9917 #include <X11/Xlib.h>
9918 #include <X11/Xresource.h>
9920 main ()
9922 XIMProc callback;
9924 return 0;
9926 _ACEOF
9927 if ac_fn_c_try_compile "$LINENO"; then :
9928 HAVE_XIM=yes
9930 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9932 else
9933 HAVE_XIM=no
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 if test "${with_xim}" != "no"; then
9940 $as_echo "#define USE_XIM 1" >>confdefs.h
9945 if test "${HAVE_XIM}" != "no"; then
9946 late_CFLAGS=$CFLAGS
9947 if test "$GCC" = yes; then
9948 CFLAGS="$CFLAGS --pedantic-errors"
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9953 #include <X11/Xlib.h>
9954 #include <X11/Xresource.h>
9956 main ()
9958 Display *display;
9959 XrmDatabase db;
9960 char *res_name;
9961 char *res_class;
9962 XIMProc callback;
9963 XPointer *client_data;
9964 #ifndef __GNUC__
9965 /* If we're not using GCC, it's probably not XFree86, and this is
9966 probably right, but we can't use something like --pedantic-errors. */
9967 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9968 char*, XIMProc, XPointer*);
9969 #endif
9970 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9971 client_data);
9973 return 0;
9975 _ACEOF
9976 if ac_fn_c_try_compile "$LINENO"; then :
9977 emacs_cv_arg6_star=yes
9979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 if test "$emacs_cv_arg6_star" = yes; then
9981 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9983 else
9984 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9987 CFLAGS=$late_CFLAGS
9990 ### Start of font-backend (under any platform) section.
9991 # (nothing here yet -- this is a placeholder)
9992 ### End of font-backend (under any platform) section.
9994 ### Start of font-backend (under X11) section.
9995 if test "${HAVE_X11}" = "yes"; then
9997 succeeded=no
9999 # Extract the first word of "pkg-config", so it can be a program name with args.
10000 set dummy pkg-config; ac_word=$2
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 $as_echo_n "checking for $ac_word... " >&6; }
10003 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 case $PKG_CONFIG in
10007 [\\/]* | ?:[\\/]*)
10008 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 for as_dir in $PATH
10014 IFS=$as_save_IFS
10015 test -z "$as_dir" && as_dir=.
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10018 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 break 2
10022 done
10023 done
10024 IFS=$as_save_IFS
10026 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10028 esac
10030 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10031 if test -n "$PKG_CONFIG"; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10033 $as_echo "$PKG_CONFIG" >&6; }
10034 else
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 $as_echo "no" >&6; }
10041 if test "$PKG_CONFIG" = "no" ; then
10042 HAVE_FC=no
10043 else
10044 PKG_CONFIG_MIN_VERSION=0.9.0
10045 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10047 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10049 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10051 $as_echo "yes" >&6; }
10052 succeeded=yes
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10055 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10056 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10058 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10061 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10062 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10064 $as_echo "$FONTCONFIG_LIBS" >&6; }
10065 else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10068 FONTCONFIG_CFLAGS=""
10069 FONTCONFIG_LIBS=""
10070 ## If we have a custom action on failure, don't print errors, but
10071 ## do set a variable so people can do so.
10072 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10078 else
10079 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10080 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10084 if test $succeeded = yes; then
10085 HAVE_FC=yes
10086 else
10087 HAVE_FC=no
10091 ## Use -lXft if available, unless `--with-xft=no'.
10092 HAVE_XFT=maybe
10093 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10094 with_xft="no";
10096 if test "x${with_xft}" != "xno"; then
10099 succeeded=no
10101 # Extract the first word of "pkg-config", so it can be a program name with args.
10102 set dummy pkg-config; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 case $PKG_CONFIG in
10109 [\\/]* | ?:[\\/]*)
10110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10124 done
10125 done
10126 IFS=$as_save_IFS
10128 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10130 esac
10132 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10133 if test -n "$PKG_CONFIG"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10135 $as_echo "$PKG_CONFIG" >&6; }
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10143 if test "$PKG_CONFIG" = "no" ; then
10144 HAVE_XFT=no
10145 else
10146 PKG_CONFIG_MIN_VERSION=0.9.0
10147 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10149 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10151 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10153 $as_echo "yes" >&6; }
10154 succeeded=yes
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10157 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10158 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10160 $as_echo "$XFT_CFLAGS" >&6; }
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10163 $as_echo_n "checking XFT_LIBS... " >&6; }
10164 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10166 $as_echo "$XFT_LIBS" >&6; }
10167 else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10170 XFT_CFLAGS=""
10171 XFT_LIBS=""
10172 ## If we have a custom action on failure, don't print errors, but
10173 ## do set a variable so people can do so.
10174 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10180 else
10181 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10182 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10186 if test $succeeded = yes; then
10188 else
10189 HAVE_XFT=no
10192 ## Because xftfont.c uses XRenderQueryExtension, we also
10193 ## need to link to -lXrender.
10194 HAVE_XRENDER=no
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10196 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10197 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 ac_check_lib_save_LIBS=$LIBS
10201 LIBS="-lXrender $LIBS"
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char XRenderQueryExtension ();
10213 main ()
10215 return XRenderQueryExtension ();
10217 return 0;
10219 _ACEOF
10220 if ac_fn_c_try_link "$LINENO"; then :
10221 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10222 else
10223 ac_cv_lib_Xrender_XRenderQueryExtension=no
10225 rm -f core conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
10227 LIBS=$ac_check_lib_save_LIBS
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10230 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10231 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10232 HAVE_XRENDER=yes
10235 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10236 OLD_CPPFLAGS="$CPPFLAGS"
10237 OLD_CFLAGS="$CFLAGS"
10238 OLD_LIBS="$LIBS"
10239 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10240 CFLAGS="$CFLAGS $XFT_CFLAGS"
10241 XFT_LIBS="-lXrender $XFT_LIBS"
10242 LIBS="$XFT_LIBS $LIBS"
10243 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10244 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10246 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10247 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 ac_check_lib_save_LIBS=$LIBS
10251 LIBS="-lXft $XFT_LIBS $LIBS"
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10255 /* Override any GCC internal prototype to avoid an error.
10256 Use char because int might match the return type of a GCC
10257 builtin and then its argument prototype would still apply. */
10258 #ifdef __cplusplus
10259 extern "C"
10260 #endif
10261 char XftFontOpen ();
10263 main ()
10265 return XftFontOpen ();
10267 return 0;
10269 _ACEOF
10270 if ac_fn_c_try_link "$LINENO"; then :
10271 ac_cv_lib_Xft_XftFontOpen=yes
10272 else
10273 ac_cv_lib_Xft_XftFontOpen=no
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10277 LIBS=$ac_check_lib_save_LIBS
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10280 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10281 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10282 HAVE_XFT=yes
10289 if test "${HAVE_XFT}" = "yes"; then
10291 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10294 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10295 else
10296 CPPFLAGS="$OLD_CPPFLAGS"
10297 CFLAGS="$OLD_CFLAGS"
10298 LIBS="$OLD_LIBS"
10299 fi # "${HAVE_XFT}" = "yes"
10300 fi # "$HAVE_XFT" != no
10301 fi # "x${with_xft}" != "xno"
10303 if test "$HAVE_XFT" != "yes"; then
10304 HAVE_XFT=no
10308 HAVE_FREETYPE=no
10309 ## We used to allow building with FreeType and without Xft.
10310 ## However, the ftx font backend driver is not in good shape.
10311 if test "${HAVE_XFT}" = "yes"; then
10312 HAVE_FREETYPE=yes
10313 FONTCONFIG_CFLAGS=
10314 FONTCONFIG_LIBS=
10317 HAVE_LIBOTF=no
10318 if test "${HAVE_FREETYPE}" = "yes"; then
10320 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10322 if test "${with_libotf}" != "no"; then
10324 succeeded=no
10326 # Extract the first word of "pkg-config", so it can be a program name with args.
10327 set dummy pkg-config; ac_word=$2
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329 $as_echo_n "checking for $ac_word... " >&6; }
10330 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 case $PKG_CONFIG in
10334 [\\/]* | ?:[\\/]*)
10335 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339 for as_dir in $PATH
10341 IFS=$as_save_IFS
10342 test -z "$as_dir" && as_dir=.
10343 for ac_exec_ext in '' $ac_executable_extensions; do
10344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10345 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10347 break 2
10349 done
10350 done
10351 IFS=$as_save_IFS
10353 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10355 esac
10357 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10358 if test -n "$PKG_CONFIG"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10360 $as_echo "$PKG_CONFIG" >&6; }
10361 else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10368 if test "$PKG_CONFIG" = "no" ; then
10369 HAVE_LIBOTF=no
10370 else
10371 PKG_CONFIG_MIN_VERSION=0.9.0
10372 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10374 $as_echo_n "checking for libotf... " >&6; }
10376 if $PKG_CONFIG --exists "libotf" 2>&5; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10378 $as_echo "yes" >&6; }
10379 succeeded=yes
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10382 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10383 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10385 $as_echo "$LIBOTF_CFLAGS" >&6; }
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10388 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10389 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10391 $as_echo "$LIBOTF_LIBS" >&6; }
10392 else
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10395 LIBOTF_CFLAGS=""
10396 LIBOTF_LIBS=""
10397 ## If we have a custom action on failure, don't print errors, but
10398 ## do set a variable so people can do so.
10399 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10405 else
10406 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10407 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10411 if test $succeeded = yes; then
10412 HAVE_LIBOTF=yes
10413 else
10414 HAVE_LIBOTF=no
10417 if test "$HAVE_LIBOTF" = "yes"; then
10419 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10422 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10423 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 ac_check_lib_save_LIBS=$LIBS
10427 LIBS="-lotf $LIBS"
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10431 /* Override any GCC internal prototype to avoid an error.
10432 Use char because int might match the return type of a GCC
10433 builtin and then its argument prototype would still apply. */
10434 #ifdef __cplusplus
10435 extern "C"
10436 #endif
10437 char OTF_get_variation_glyphs ();
10439 main ()
10441 return OTF_get_variation_glyphs ();
10443 return 0;
10445 _ACEOF
10446 if ac_fn_c_try_link "$LINENO"; then :
10447 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10448 else
10449 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10451 rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10453 LIBS=$ac_check_lib_save_LIBS
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10456 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10457 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10458 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10459 else
10460 HAVE_OTF_GET_VARIATION_GLYPHS=no
10463 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10465 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10472 HAVE_M17N_FLT=no
10473 if test "${HAVE_LIBOTF}" = yes; then
10474 if test "${with_m17n_flt}" != "no"; then
10476 succeeded=no
10478 # Extract the first word of "pkg-config", so it can be a program name with args.
10479 set dummy pkg-config; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 case $PKG_CONFIG in
10486 [\\/]* | ?:[\\/]*)
10487 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10501 done
10502 done
10503 IFS=$as_save_IFS
10505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10507 esac
10509 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10510 if test -n "$PKG_CONFIG"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10512 $as_echo "$PKG_CONFIG" >&6; }
10513 else
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; }
10520 if test "$PKG_CONFIG" = "no" ; then
10521 HAVE_M17N_FLT=no
10522 else
10523 PKG_CONFIG_MIN_VERSION=0.9.0
10524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10526 $as_echo_n "checking for m17n-flt... " >&6; }
10528 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10530 $as_echo "yes" >&6; }
10531 succeeded=yes
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10534 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10535 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10537 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10540 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10541 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10543 $as_echo "$M17N_FLT_LIBS" >&6; }
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10547 M17N_FLT_CFLAGS=""
10548 M17N_FLT_LIBS=""
10549 ## If we have a custom action on failure, don't print errors, but
10550 ## do set a variable so people can do so.
10551 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10557 else
10558 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10559 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10563 if test $succeeded = yes; then
10564 HAVE_M17N_FLT=yes
10565 else
10566 HAVE_M17N_FLT=no
10569 if test "$HAVE_M17N_FLT" = "yes"; then
10571 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10576 else
10577 HAVE_XFT=no
10578 HAVE_FREETYPE=no
10579 HAVE_LIBOTF=no
10580 HAVE_M17N_FLT=no
10583 ### End of font-backend (under X11) section.
10594 ### Use -lXpm if available, unless `--with-xpm=no'.
10595 HAVE_XPM=no
10596 LIBXPM=
10597 if test "${HAVE_X11}" = "yes"; then
10598 if test "${with_xpm}" != "no"; then
10599 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10600 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10602 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10603 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-lXpm -lX11 $LIBS"
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10611 /* Override any GCC internal prototype to avoid an error.
10612 Use char because int might match the return type of a GCC
10613 builtin and then its argument prototype would still apply. */
10614 #ifdef __cplusplus
10615 extern "C"
10616 #endif
10617 char XpmReadFileToPixmap ();
10619 main ()
10621 return XpmReadFileToPixmap ();
10623 return 0;
10625 _ACEOF
10626 if ac_fn_c_try_link "$LINENO"; then :
10627 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10628 else
10629 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10631 rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10633 LIBS=$ac_check_lib_save_LIBS
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10636 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10637 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10638 HAVE_XPM=yes
10644 if test "${HAVE_XPM}" = "yes"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10646 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include "X11/xpm.h"
10650 #ifndef XpmReturnAllocPixels
10651 no_return_alloc_pixels
10652 #endif
10654 _ACEOF
10655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10656 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10657 HAVE_XPM=no
10658 else
10659 HAVE_XPM=yes
10661 rm -f conftest*
10664 if test "${HAVE_XPM}" = "yes"; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10666 $as_echo "yes" >&6; }
10667 else
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; }
10674 if test "${HAVE_XPM}" = "yes"; then
10676 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10678 LIBXPM=-lXpm
10683 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10684 HAVE_JPEG=no
10685 LIBJPEG=
10686 if test "${HAVE_X11}" = "yes"; then
10687 if test "${with_jpeg}" != "no"; then
10688 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10689 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10691 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10692 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 ac_check_lib_save_LIBS=$LIBS
10696 LIBS="-ljpeg $LIBS"
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 char jpeg_destroy_compress ();
10708 main ()
10710 return jpeg_destroy_compress ();
10712 return 0;
10714 _ACEOF
10715 if ac_fn_c_try_link "$LINENO"; then :
10716 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10717 else
10718 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10720 rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 LIBS=$ac_check_lib_save_LIBS
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10725 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10726 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10727 HAVE_JPEG=yes
10735 if test "${HAVE_JPEG}" = "yes"; then
10736 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <jpeglib.h>
10741 version=JPEG_LIB_VERSION
10743 _ACEOF
10744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10745 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10746 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10748 else
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10750 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10751 HAVE_JPEG=no
10753 rm -f conftest*
10756 if test "${HAVE_JPEG}" = "yes"; then
10757 LIBJPEG=-ljpeg
10762 ### Use -lpng if available, unless `--with-png=no'.
10763 HAVE_PNG=no
10764 LIBPNG=
10765 if test "${HAVE_X11}" = "yes"; then
10766 if test "${with_png}" != "no"; then
10767 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10768 # in /usr/include/libpng.
10769 for ac_header in png.h libpng/png.h
10770 do :
10771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10772 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10773 eval as_val=\$$as_ac_Header
10774 if test "x$as_val" = x""yes; then :
10775 cat >>confdefs.h <<_ACEOF
10776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10777 _ACEOF
10781 done
10783 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10785 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10786 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-lpng -lz -lm $LIBS"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 char png_get_channels ();
10802 main ()
10804 return png_get_channels ();
10806 return 0;
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 ac_cv_lib_png_png_get_channels=yes
10811 else
10812 ac_cv_lib_png_png_get_channels=no
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10819 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10820 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10821 HAVE_PNG=yes
10827 if test "${HAVE_PNG}" = "yes"; then
10829 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10831 LIBPNG="-lpng -lz -lm"
10836 ### Use -ltiff if available, unless `--with-tiff=no'.
10837 HAVE_TIFF=no
10838 LIBTIFF=
10839 if test "${HAVE_X11}" = "yes"; then
10840 if test "${with_tiff}" != "no"; then
10841 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10842 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10843 tifflibs="-lz -lm"
10844 # At least one tiff package requires the jpeg library.
10845 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10847 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10848 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 ac_check_lib_save_LIBS=$LIBS
10852 LIBS="-ltiff $tifflibs $LIBS"
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 char TIFFGetVersion ();
10864 main ()
10866 return TIFFGetVersion ();
10868 return 0;
10870 _ACEOF
10871 if ac_fn_c_try_link "$LINENO"; then :
10872 ac_cv_lib_tiff_TIFFGetVersion=yes
10873 else
10874 ac_cv_lib_tiff_TIFFGetVersion=no
10876 rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10881 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10882 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10883 HAVE_TIFF=yes
10891 if test "${HAVE_TIFF}" = "yes"; then
10893 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10895 LIBTIFF=-ltiff
10900 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10901 HAVE_GIF=no
10902 LIBGIF=
10903 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10904 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10905 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10906 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10907 # Earlier versions can crash Emacs.
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10909 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10910 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
10912 else
10913 ac_check_lib_save_LIBS=$LIBS
10914 LIBS="-lgif $LIBS"
10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10918 /* Override any GCC internal prototype to avoid an error.
10919 Use char because int might match the return type of a GCC
10920 builtin and then its argument prototype would still apply. */
10921 #ifdef __cplusplus
10922 extern "C"
10923 #endif
10924 char EGifPutExtensionLast ();
10926 main ()
10928 return EGifPutExtensionLast ();
10930 return 0;
10932 _ACEOF
10933 if ac_fn_c_try_link "$LINENO"; then :
10934 ac_cv_lib_gif_EGifPutExtensionLast=yes
10935 else
10936 ac_cv_lib_gif_EGifPutExtensionLast=no
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940 LIBS=$ac_check_lib_save_LIBS
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10943 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10944 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10945 HAVE_GIF=yes
10946 else
10947 HAVE_GIF=maybe
10954 if test "$HAVE_GIF" = yes; then
10955 LIBGIF=-lgif
10956 elif test "$HAVE_GIF" = maybe; then
10957 # If gif_lib.h but no libgif, try libungif.
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10959 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10960 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-lungif $LIBS"
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10971 #ifdef __cplusplus
10972 extern "C"
10973 #endif
10974 char EGifPutExtensionLast ();
10976 main ()
10978 return EGifPutExtensionLast ();
10980 return 0;
10982 _ACEOF
10983 if ac_fn_c_try_link "$LINENO"; then :
10984 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10985 else
10986 ac_cv_lib_ungif_EGifPutExtensionLast=no
10988 rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 LIBS=$ac_check_lib_save_LIBS
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10993 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10994 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10995 HAVE_GIF=yes
10996 else
10997 HAVE_GIF=no
11000 test "$HAVE_GIF" = yes && LIBGIF=-lungif
11003 if test "${HAVE_GIF}" = "yes"; then
11005 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11011 if test "${HAVE_X11}" = "yes"; then
11012 MISSING=""
11013 WITH_NO=""
11014 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11015 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11016 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11017 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11018 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11019 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11020 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11021 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11022 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11023 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11025 if test "X${MISSING}" != X; then
11026 as_fn_error "The following required libraries were not found:
11027 $MISSING
11028 Maybe some development libraries/packages are missing?
11029 If you don't want to link with them give
11030 $WITH_NO
11031 as options to configure" "$LINENO" 5
11035 ### Use -lgpm if available, unless `--with-gpm=no'.
11036 HAVE_GPM=no
11037 LIBGPM=
11038 MOUSE_SUPPORT=
11039 if test "${with_gpm}" != "no"; then
11040 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11041 if test "x$ac_cv_header_gpm_h" = x""yes; then :
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11043 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11044 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 ac_check_lib_save_LIBS=$LIBS
11048 LIBS="-lgpm $LIBS"
11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11052 /* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11055 #ifdef __cplusplus
11056 extern "C"
11057 #endif
11058 char Gpm_Open ();
11060 main ()
11062 return Gpm_Open ();
11064 return 0;
11066 _ACEOF
11067 if ac_fn_c_try_link "$LINENO"; then :
11068 ac_cv_lib_gpm_Gpm_Open=yes
11069 else
11070 ac_cv_lib_gpm_Gpm_Open=no
11072 rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11074 LIBS=$ac_check_lib_save_LIBS
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11077 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11078 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11079 HAVE_GPM=yes
11086 if test "${HAVE_GPM}" = "yes"; then
11088 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11090 LIBGPM=-lgpm
11091 ## May be reset below.
11092 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11097 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11098 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11100 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11106 C_SWITCH_X_SYSTEM=
11107 ### Use NeXTstep API to implement GUI.
11108 if test "${HAVE_NS}" = "yes"; then
11110 $as_echo "#define HAVE_NS 1" >>confdefs.h
11112 if test "${NS_IMPL_COCOA}" = "yes"; then
11114 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11116 GNU_OBJC_CFLAGS=
11118 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11120 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11122 # See also .m.o rule in Makefile.in */
11123 # FIXME: are all these flags really needed? Document here why. */
11124 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11125 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11127 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11129 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11132 # We also have mouse menus.
11133 HAVE_MENUS=yes
11134 OTHER_FILES=ns-app
11138 ### Use session management (-lSM -lICE) if available
11139 HAVE_X_SM=no
11140 LIBXSM=
11141 if test "${HAVE_X11}" = "yes"; then
11142 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11143 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11145 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11146 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 ac_check_lib_save_LIBS=$LIBS
11150 LIBS="-lSM -lICE $LIBS"
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 char SmcOpenConnection ();
11162 main ()
11164 return SmcOpenConnection ();
11166 return 0;
11168 _ACEOF
11169 if ac_fn_c_try_link "$LINENO"; then :
11170 ac_cv_lib_SM_SmcOpenConnection=yes
11171 else
11172 ac_cv_lib_SM_SmcOpenConnection=no
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11179 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11180 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11181 HAVE_X_SM=yes
11188 if test "${HAVE_X_SM}" = "yes"; then
11190 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11192 LIBXSM="-lSM -lICE"
11193 case "$LIBS" in
11194 *-lSM*) ;;
11195 *) LIBS="$LIBXSM $LIBS" ;;
11196 esac
11201 ### Use libxml (-lxml2) if available
11202 if test "${with_xml2}" != "no"; then
11203 ### I'm not sure what the version number should be, so I just guessed.
11205 succeeded=no
11207 # Extract the first word of "pkg-config", so it can be a program name with args.
11208 set dummy pkg-config; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 case $PKG_CONFIG in
11215 [\\/]* | ?:[\\/]*)
11216 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11222 IFS=$as_save_IFS
11223 test -z "$as_dir" && as_dir=.
11224 for ac_exec_ext in '' $ac_executable_extensions; do
11225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11226 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 break 2
11230 done
11231 done
11232 IFS=$as_save_IFS
11234 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11236 esac
11238 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11239 if test -n "$PKG_CONFIG"; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11241 $as_echo "$PKG_CONFIG" >&6; }
11242 else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244 $as_echo "no" >&6; }
11249 if test "$PKG_CONFIG" = "no" ; then
11250 HAVE_LIBXML2=no
11251 else
11252 PKG_CONFIG_MIN_VERSION=0.9.0
11253 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11255 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11257 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259 $as_echo "yes" >&6; }
11260 succeeded=yes
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11263 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11264 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11266 $as_echo "$LIBXML2_CFLAGS" >&6; }
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11269 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11270 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11272 $as_echo "$LIBXML2_LIBS" >&6; }
11273 else
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11276 LIBXML2_CFLAGS=""
11277 LIBXML2_LIBS=""
11278 ## If we have a custom action on failure, don't print errors, but
11279 ## do set a variable so people can do so.
11280 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11286 else
11287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11292 if test $succeeded = yes; then
11293 HAVE_LIBXML2=yes
11294 else
11295 HAVE_LIBXML2=no
11298 if test "${HAVE_LIBXML2}" = "yes"; then
11299 LIBS="$LIBXML2_LIBS $LIBS"
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11301 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11302 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 ac_check_lib_save_LIBS=$LIBS
11306 LIBS="-lxml2 $LIBS"
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11310 /* Override any GCC internal prototype to avoid an error.
11311 Use char because int might match the return type of a GCC
11312 builtin and then its argument prototype would still apply. */
11313 #ifdef __cplusplus
11314 extern "C"
11315 #endif
11316 char htmlReadMemory ();
11318 main ()
11320 return htmlReadMemory ();
11322 return 0;
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326 ac_cv_lib_xml2_htmlReadMemory=yes
11327 else
11328 ac_cv_lib_xml2_htmlReadMemory=no
11330 rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11332 LIBS=$ac_check_lib_save_LIBS
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11335 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11336 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11337 HAVE_LIBXML2=yes
11338 else
11339 HAVE_LIBXML2=no
11342 if test "${HAVE_LIBXML2}" = "yes"; then
11344 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11346 else
11347 LIBXML2_LIBS=""
11348 LIBXML2_CFLAGS=""
11355 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11357 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11358 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11363 #include <netdb.h>
11365 main ()
11367 return h_errno;
11369 return 0;
11371 _ACEOF
11372 if ac_fn_c_try_link "$LINENO"; then :
11373 emacs_cv_netdb_declares_h_errno=yes
11374 else
11375 emacs_cv_netdb_declares_h_errno=no
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11381 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11382 if test $emacs_cv_netdb_declares_h_errno = yes; then
11384 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11389 # for constant arguments. Useless!
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11391 $as_echo_n "checking for working alloca.h... " >&6; }
11392 if test "${ac_cv_working_alloca_h+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 #include <alloca.h>
11399 main ()
11401 char *p = (char *) alloca (2 * sizeof (int));
11402 if (p) return 0;
11404 return 0;
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408 ac_cv_working_alloca_h=yes
11409 else
11410 ac_cv_working_alloca_h=no
11412 rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11416 $as_echo "$ac_cv_working_alloca_h" >&6; }
11417 if test $ac_cv_working_alloca_h = yes; then
11419 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11424 $as_echo_n "checking for alloca... " >&6; }
11425 if test "${ac_cv_func_alloca_works+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11430 #ifdef __GNUC__
11431 # define alloca __builtin_alloca
11432 #else
11433 # ifdef _MSC_VER
11434 # include <malloc.h>
11435 # define alloca _alloca
11436 # else
11437 # ifdef HAVE_ALLOCA_H
11438 # include <alloca.h>
11439 # else
11440 # ifdef _AIX
11441 #pragma alloca
11442 # else
11443 # ifndef alloca /* predefined by HP cc +Olibcalls */
11444 char *alloca ();
11445 # endif
11446 # endif
11447 # endif
11448 # endif
11449 #endif
11452 main ()
11454 char *p = (char *) alloca (1);
11455 if (p) return 0;
11457 return 0;
11459 _ACEOF
11460 if ac_fn_c_try_link "$LINENO"; then :
11461 ac_cv_func_alloca_works=yes
11462 else
11463 ac_cv_func_alloca_works=no
11465 rm -f core conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11469 $as_echo "$ac_cv_func_alloca_works" >&6; }
11471 if test $ac_cv_func_alloca_works = yes; then
11473 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11475 else
11476 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11477 # that cause trouble. Some versions do not even contain alloca or
11478 # contain a buggy version. If you still want to use their alloca,
11479 # use ar to extract alloca.o from them instead of compiling alloca.c.
11481 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11483 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11487 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11488 if test "${ac_cv_os_cray+set}" = set; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11493 #if defined CRAY && ! defined CRAY2
11494 webecray
11495 #else
11496 wenotbecray
11497 #endif
11499 _ACEOF
11500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11501 $EGREP "webecray" >/dev/null 2>&1; then :
11502 ac_cv_os_cray=yes
11503 else
11504 ac_cv_os_cray=no
11506 rm -f conftest*
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11510 $as_echo "$ac_cv_os_cray" >&6; }
11511 if test $ac_cv_os_cray = yes; then
11512 for ac_func in _getb67 GETB67 getb67; do
11513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11515 eval as_val=\$$as_ac_var
11516 if test "x$as_val" = x""yes; then :
11518 cat >>confdefs.h <<_ACEOF
11519 #define CRAY_STACKSEG_END $ac_func
11520 _ACEOF
11522 break
11525 done
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11529 $as_echo_n "checking stack direction for C alloca... " >&6; }
11530 if test "${ac_cv_c_stack_direction+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 if test "$cross_compiling" = yes; then :
11534 ac_cv_c_stack_direction=0
11535 else
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11538 $ac_includes_default
11540 find_stack_direction ()
11542 static char *addr = 0;
11543 auto char dummy;
11544 if (addr == 0)
11546 addr = &dummy;
11547 return find_stack_direction ();
11549 else
11550 return (&dummy > addr) ? 1 : -1;
11554 main ()
11556 return find_stack_direction () < 0;
11558 _ACEOF
11559 if ac_fn_c_try_run "$LINENO"; then :
11560 ac_cv_c_stack_direction=1
11561 else
11562 ac_cv_c_stack_direction=-1
11564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11565 conftest.$ac_objext conftest.beam conftest.$ac_ext
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11570 $as_echo "$ac_cv_c_stack_direction" >&6; }
11571 cat >>confdefs.h <<_ACEOF
11572 #define STACK_DIRECTION $ac_cv_c_stack_direction
11573 _ACEOF
11579 if test x"$ac_cv_func_alloca_works" != xyes; then
11580 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
11583 # fmod, logb, and frexp are found in -lm on most systems.
11584 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11586 $as_echo_n "checking for sqrt in -lm... " >&6; }
11587 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-lm $LIBS"
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 char sqrt ();
11603 main ()
11605 return sqrt ();
11607 return 0;
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611 ac_cv_lib_m_sqrt=yes
11612 else
11613 ac_cv_lib_m_sqrt=no
11615 rm -f core conftest.err conftest.$ac_objext \
11616 conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11620 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11621 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11622 cat >>confdefs.h <<_ACEOF
11623 #define HAVE_LIBM 1
11624 _ACEOF
11626 LIBS="-lm $LIBS"
11631 # Check for mail-locking functions in a "mail" library. Probably this should
11632 # have the same check as for liblockfile below.
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11634 $as_echo_n "checking for maillock in -lmail... " >&6; }
11635 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-lmail $LIBS"
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 char maillock ();
11651 main ()
11653 return maillock ();
11655 return 0;
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"; then :
11659 ac_cv_lib_mail_maillock=yes
11660 else
11661 ac_cv_lib_mail_maillock=no
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11668 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11669 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11670 have_mail=yes
11671 else
11672 have_mail=no
11675 if test $have_mail = yes; then
11676 LIBS_MAIL=-lmail
11677 LIBS="$LIBS_MAIL $LIBS"
11679 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11681 else
11682 LIBS_MAIL=
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11685 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11686 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 ac_check_lib_save_LIBS=$LIBS
11690 LIBS="-llockfile $LIBS"
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11694 /* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11697 #ifdef __cplusplus
11698 extern "C"
11699 #endif
11700 char maillock ();
11702 main ()
11704 return maillock ();
11706 return 0;
11708 _ACEOF
11709 if ac_fn_c_try_link "$LINENO"; then :
11710 ac_cv_lib_lockfile_maillock=yes
11711 else
11712 ac_cv_lib_lockfile_maillock=no
11714 rm -f core conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11716 LIBS=$ac_check_lib_save_LIBS
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11719 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11720 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11721 have_lockfile=yes
11722 else
11723 have_lockfile=no
11726 if test $have_lockfile = yes; then
11727 LIBS_MAIL=-llockfile
11728 LIBS="$LIBS_MAIL $LIBS"
11730 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11732 else
11733 # If we have the shared liblockfile, assume we must use it for mail
11734 # locking (e.g. Debian). If we couldn't link against liblockfile
11735 # (no liblockfile.a installed), ensure that we don't need to.
11736 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11737 set dummy liblockfile.so; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test -n "$liblockfile"; then
11744 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11745 else
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11748 for as_dir in $as_dummy
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754 ac_cv_prog_liblockfile="yes"
11755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 break 2
11758 done
11759 done
11760 IFS=$as_save_IFS
11762 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11765 liblockfile=$ac_cv_prog_liblockfile
11766 if test -n "$liblockfile"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11768 $as_echo "$liblockfile" >&6; }
11769 else
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11775 if test $ac_cv_prog_liblockfile = yes; then
11776 as_fn_error "Shared liblockfile found but can't link against it.
11777 This probably means that movemail could lose mail.
11778 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11781 for ac_func in touchlock
11782 do :
11783 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11784 if test "x$ac_cv_func_touchlock" = x""yes; then :
11785 cat >>confdefs.h <<_ACEOF
11786 #define HAVE_TOUCHLOCK 1
11787 _ACEOF
11790 done
11792 for ac_header in maillock.h
11793 do :
11794 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11795 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11796 cat >>confdefs.h <<_ACEOF
11797 #define HAVE_MAILLOCK_H 1
11798 _ACEOF
11802 done
11806 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11807 ## interlock access to the mail spool. The alternative is a lock file named
11808 ## /usr/spool/mail/$USER.lock.
11809 mail_lock=no
11810 case "$opsys" in
11811 aix4-2) mail_lock="lockf" ;;
11813 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11815 ## On GNU/Linux systems, both methods are used by various mail programs.
11816 ## I assume most people are using newer mailers that have heard of flock.
11817 ## Change this if you need to.
11818 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11819 ## configure gets the right answers, and that means *NOT* using flock.
11820 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11821 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11822 ## Debian maintainer hasn't provided a clean fix for Emacs.
11823 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11824 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11825 ## correct logic. -- fx
11826 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11827 ## liblockfile is a Free Software replacement for libmail, used on
11828 ## Debian systems and elsewhere. -rfr.
11829 gnu-*)
11830 mail_lock="flock"
11831 if test $have_mail = yes || test $have_lockfile = yes; then
11832 test $ac_cv_header_maillock_h = yes && mail_lock=no
11835 esac
11837 BLESSMAIL_TARGET=
11838 case "$mail_lock" in
11839 flock)
11840 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11843 lockf)
11844 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11847 *) BLESSMAIL_TARGET="need-blessmail" ;;
11848 esac
11852 for ac_func in gethostname getdomainname dup2 \
11853 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11854 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11855 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11856 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11857 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11858 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11859 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11860 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11861 cfmakeraw cfsetspeed isnan copysign __executable_start
11862 do :
11863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11865 eval as_val=\$$as_ac_var
11866 if test "x$as_val" = x""yes; then :
11867 cat >>confdefs.h <<_ACEOF
11868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11869 _ACEOF
11872 done
11875 for ac_header in sys/un.h
11876 do :
11877 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11878 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11879 cat >>confdefs.h <<_ACEOF
11880 #define HAVE_SYS_UN_H 1
11881 _ACEOF
11885 done
11893 for ac_func in $ac_func_list
11894 do :
11895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11897 eval as_val=\$$as_ac_var
11898 if test "x$as_val" = x""yes; then :
11899 cat >>confdefs.h <<_ACEOF
11900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11901 _ACEOF
11904 done
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11911 $as_echo_n "checking for working mktime... " >&6; }
11912 if test "${ac_cv_func_working_mktime+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 if test "$cross_compiling" = yes; then :
11916 ac_cv_func_working_mktime=no
11917 else
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11920 /* Test program from Paul Eggert and Tony Leneis. */
11921 #ifdef TIME_WITH_SYS_TIME
11922 # include <sys/time.h>
11923 # include <time.h>
11924 #else
11925 # ifdef HAVE_SYS_TIME_H
11926 # include <sys/time.h>
11927 # else
11928 # include <time.h>
11929 # endif
11930 #endif
11932 #include <limits.h>
11933 #include <stdlib.h>
11935 #ifdef HAVE_UNISTD_H
11936 # include <unistd.h>
11937 #endif
11939 #ifndef HAVE_ALARM
11940 # define alarm(X) /* empty */
11941 #endif
11943 /* Work around redefinition to rpl_putenv by other config tests. */
11944 #undef putenv
11946 static time_t time_t_max;
11947 static time_t time_t_min;
11949 /* Values we'll use to set the TZ environment variable. */
11950 static char *tz_strings[] = {
11951 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11952 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11954 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11956 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11957 Based on a problem report from Andreas Jaeger. */
11958 static int
11959 spring_forward_gap ()
11961 /* glibc (up to about 1998-10-07) failed this test. */
11962 struct tm tm;
11964 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11965 instead of "TZ=America/Vancouver" in order to detect the bug even
11966 on systems that don't support the Olson extension, or don't have the
11967 full zoneinfo tables installed. */
11968 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11970 tm.tm_year = 98;
11971 tm.tm_mon = 3;
11972 tm.tm_mday = 5;
11973 tm.tm_hour = 2;
11974 tm.tm_min = 0;
11975 tm.tm_sec = 0;
11976 tm.tm_isdst = -1;
11977 return mktime (&tm) != (time_t) -1;
11980 static int
11981 mktime_test1 (now)
11982 time_t now;
11984 struct tm *lt;
11985 return ! (lt = localtime (&now)) || mktime (lt) == now;
11988 static int
11989 mktime_test (now)
11990 time_t now;
11992 return (mktime_test1 (now)
11993 && mktime_test1 ((time_t) (time_t_max - now))
11994 && mktime_test1 ((time_t) (time_t_min + now)));
11997 static int
11998 irix_6_4_bug ()
12000 /* Based on code from Ariel Faigon. */
12001 struct tm tm;
12002 tm.tm_year = 96;
12003 tm.tm_mon = 3;
12004 tm.tm_mday = 0;
12005 tm.tm_hour = 0;
12006 tm.tm_min = 0;
12007 tm.tm_sec = 0;
12008 tm.tm_isdst = -1;
12009 mktime (&tm);
12010 return tm.tm_mon == 2 && tm.tm_mday == 31;
12013 static int
12014 bigtime_test (j)
12015 int j;
12017 struct tm tm;
12018 time_t now;
12019 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12020 now = mktime (&tm);
12021 if (now != (time_t) -1)
12023 struct tm *lt = localtime (&now);
12024 if (! (lt
12025 && lt->tm_year == tm.tm_year
12026 && lt->tm_mon == tm.tm_mon
12027 && lt->tm_mday == tm.tm_mday
12028 && lt->tm_hour == tm.tm_hour
12029 && lt->tm_min == tm.tm_min
12030 && lt->tm_sec == tm.tm_sec
12031 && lt->tm_yday == tm.tm_yday
12032 && lt->tm_wday == tm.tm_wday
12033 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12034 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12035 return 0;
12037 return 1;
12040 static int
12041 year_2050_test ()
12043 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12044 ignoring leap seconds. */
12045 unsigned long int answer = 2527315200UL;
12047 struct tm tm;
12048 time_t t;
12049 tm.tm_year = 2050 - 1900;
12050 tm.tm_mon = 2 - 1;
12051 tm.tm_mday = 1;
12052 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12053 tm.tm_isdst = -1;
12055 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12056 instead of "TZ=America/Vancouver" in order to detect the bug even
12057 on systems that don't support the Olson extension, or don't have the
12058 full zoneinfo tables installed. */
12059 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12061 t = mktime (&tm);
12063 /* Check that the result is either a failure, or close enough
12064 to the correct answer that we can assume the discrepancy is
12065 due to leap seconds. */
12066 return (t == (time_t) -1
12067 || (0 < t && answer - 120 <= t && t <= answer + 120));
12071 main ()
12073 time_t t, delta;
12074 int i, j;
12076 /* This test makes some buggy mktime implementations loop.
12077 Give up after 60 seconds; a mktime slower than that
12078 isn't worth using anyway. */
12079 alarm (60);
12081 for (;;)
12083 t = (time_t_max << 1) + 1;
12084 if (t <= time_t_max)
12085 break;
12086 time_t_max = t;
12088 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12090 delta = time_t_max / 997; /* a suitable prime number */
12091 for (i = 0; i < N_STRINGS; i++)
12093 if (tz_strings[i])
12094 putenv (tz_strings[i]);
12096 for (t = 0; t <= time_t_max - delta; t += delta)
12097 if (! mktime_test (t))
12098 return 1;
12099 if (! (mktime_test ((time_t) 1)
12100 && mktime_test ((time_t) (60 * 60))
12101 && mktime_test ((time_t) (60 * 60 * 24))))
12102 return 1;
12104 for (j = 1; ; j <<= 1)
12105 if (! bigtime_test (j))
12106 return 1;
12107 else if (INT_MAX / 2 < j)
12108 break;
12109 if (! bigtime_test (INT_MAX))
12110 return 1;
12112 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12114 _ACEOF
12115 if ac_fn_c_try_run "$LINENO"; then :
12116 ac_cv_func_working_mktime=yes
12117 else
12118 ac_cv_func_working_mktime=no
12120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12121 conftest.$ac_objext conftest.beam conftest.$ac_ext
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12126 $as_echo "$ac_cv_func_working_mktime" >&6; }
12127 if test $ac_cv_func_working_mktime = no; then
12128 case " $LIBOBJS " in
12129 *" mktime.$ac_objext "* ) ;;
12130 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12132 esac
12136 if test "$ac_cv_func_working_mktime" = no; then
12138 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12142 ac_have_func=no # yes means we've found a way to get the load average.
12144 # Make sure getloadavg.c is where it belongs, at configure-time.
12145 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12146 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12148 ac_save_LIBS=$LIBS
12150 # Check for getloadavg, but be sure not to touch the cache variable.
12151 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12152 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12153 exit 0
12154 else
12155 exit 1
12157 ) && ac_have_func=yes
12159 # On HPUX9, an unprivileged user can get load averages through this function.
12160 for ac_func in pstat_getdynamic
12161 do :
12162 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12163 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12164 cat >>confdefs.h <<_ACEOF
12165 #define HAVE_PSTAT_GETDYNAMIC 1
12166 _ACEOF
12169 done
12172 # Solaris has libkstat which does not require root.
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12174 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12175 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 ac_check_lib_save_LIBS=$LIBS
12179 LIBS="-lkstat $LIBS"
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12183 /* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
12186 #ifdef __cplusplus
12187 extern "C"
12188 #endif
12189 char kstat_open ();
12191 main ()
12193 return kstat_open ();
12195 return 0;
12197 _ACEOF
12198 if ac_fn_c_try_link "$LINENO"; then :
12199 ac_cv_lib_kstat_kstat_open=yes
12200 else
12201 ac_cv_lib_kstat_kstat_open=no
12203 rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12208 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12209 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12210 cat >>confdefs.h <<_ACEOF
12211 #define HAVE_LIBKSTAT 1
12212 _ACEOF
12214 LIBS="-lkstat $LIBS"
12218 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12220 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12221 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12222 # to get the right answer into the cache.
12223 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12224 if test $ac_have_func = no; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12226 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12227 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 ac_check_lib_save_LIBS=$LIBS
12231 LIBS="-lelf $LIBS"
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12238 #ifdef __cplusplus
12239 extern "C"
12240 #endif
12241 char elf_begin ();
12243 main ()
12245 return elf_begin ();
12247 return 0;
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"; then :
12251 ac_cv_lib_elf_elf_begin=yes
12252 else
12253 ac_cv_lib_elf_elf_begin=no
12255 rm -f core conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12257 LIBS=$ac_check_lib_save_LIBS
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12260 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12261 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12262 LIBS="-lelf $LIBS"
12266 if test $ac_have_func = no; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12268 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12269 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lkvm $LIBS"
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 char kvm_open ();
12285 main ()
12287 return kvm_open ();
12289 return 0;
12291 _ACEOF
12292 if ac_fn_c_try_link "$LINENO"; then :
12293 ac_cv_lib_kvm_kvm_open=yes
12294 else
12295 ac_cv_lib_kvm_kvm_open=no
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12302 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12303 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12304 LIBS="-lkvm $LIBS"
12307 # Check for the 4.4BSD definition of getloadavg.
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12309 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12310 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 ac_check_lib_save_LIBS=$LIBS
12314 LIBS="-lutil $LIBS"
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12318 /* Override any GCC internal prototype to avoid an error.
12319 Use char because int might match the return type of a GCC
12320 builtin and then its argument prototype would still apply. */
12321 #ifdef __cplusplus
12322 extern "C"
12323 #endif
12324 char getloadavg ();
12326 main ()
12328 return getloadavg ();
12330 return 0;
12332 _ACEOF
12333 if ac_fn_c_try_link "$LINENO"; then :
12334 ac_cv_lib_util_getloadavg=yes
12335 else
12336 ac_cv_lib_util_getloadavg=no
12338 rm -f core conftest.err conftest.$ac_objext \
12339 conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12343 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12344 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12345 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12350 if test $ac_have_func = no; then
12351 # There is a commonly available library for RS/6000 AIX.
12352 # Since it is not a standard part of AIX, it might be installed locally.
12353 ac_getloadavg_LIBS=$LIBS
12354 LIBS="-L/usr/local/lib $LIBS"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12356 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12357 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-lgetloadavg $LIBS"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12365 /* Override any GCC internal prototype to avoid an error.
12366 Use char because int might match the return type of a GCC
12367 builtin and then its argument prototype would still apply. */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 char getloadavg ();
12373 main ()
12375 return getloadavg ();
12377 return 0;
12379 _ACEOF
12380 if ac_fn_c_try_link "$LINENO"; then :
12381 ac_cv_lib_getloadavg_getloadavg=yes
12382 else
12383 ac_cv_lib_getloadavg_getloadavg=no
12385 rm -f core conftest.err conftest.$ac_objext \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12390 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12391 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12392 LIBS="-lgetloadavg $LIBS"
12393 else
12394 LIBS=$ac_getloadavg_LIBS
12399 # Make sure it is really in the library, if we think we found it,
12400 # otherwise set up the replacement function.
12401 for ac_func in getloadavg
12402 do :
12403 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12404 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12405 cat >>confdefs.h <<_ACEOF
12406 #define HAVE_GETLOADAVG 1
12407 _ACEOF
12409 else
12410 case " $LIBOBJS " in
12411 *" getloadavg.$ac_objext "* ) ;;
12412 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12414 esac
12417 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12419 # Figure out what our getloadavg.c needs.
12420 ac_have_func=no
12421 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12422 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12423 ac_have_func=yes
12425 $as_echo "#define DGUX 1" >>confdefs.h
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12428 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12429 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 ac_check_lib_save_LIBS=$LIBS
12433 LIBS="-ldgc $LIBS"
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12440 #ifdef __cplusplus
12441 extern "C"
12442 #endif
12443 char dg_sys_info ();
12445 main ()
12447 return dg_sys_info ();
12449 return 0;
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"; then :
12453 ac_cv_lib_dgc_dg_sys_info=yes
12454 else
12455 ac_cv_lib_dgc_dg_sys_info=no
12457 rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459 LIBS=$ac_check_lib_save_LIBS
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12462 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12463 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12464 cat >>confdefs.h <<_ACEOF
12465 #define HAVE_LIBDGC 1
12466 _ACEOF
12468 LIBS="-ldgc $LIBS"
12476 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12477 if test "x$ac_cv_header_locale_h" = x""yes; then :
12482 for ac_func in setlocale
12483 do :
12484 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12485 if test "x$ac_cv_func_setlocale" = x""yes; then :
12486 cat >>confdefs.h <<_ACEOF
12487 #define HAVE_SETLOCALE 1
12488 _ACEOF
12491 done
12494 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12495 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12496 # Irix 4.0.5F has the header but not the library.
12497 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12498 ac_have_func=yes
12500 $as_echo "#define SVR4 1" >>confdefs.h
12504 if test $ac_have_func = no; then
12505 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12506 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12507 ac_have_func=yes
12509 $as_echo "#define UMAX 1" >>confdefs.h
12512 $as_echo "#define UMAX4_3 1" >>confdefs.h
12519 if test $ac_have_func = no; then
12520 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12521 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12522 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12529 if test $ac_have_func = no; then
12530 for ac_header in mach/mach.h
12531 do :
12532 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12533 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12534 cat >>confdefs.h <<_ACEOF
12535 #define HAVE_MACH_MACH_H 1
12536 _ACEOF
12540 done
12544 for ac_header in nlist.h
12545 do :
12546 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12547 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12548 cat >>confdefs.h <<_ACEOF
12549 #define HAVE_NLIST_H 1
12550 _ACEOF
12551 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12553 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12555 cat >>confdefs.h <<_ACEOF
12556 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12557 _ACEOF
12560 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12567 done
12570 done
12573 # Some definitions of getloadavg require that the program be installed setgid.
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12575 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12576 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12582 #ifdef LDAV_PRIVILEGED
12583 Yowza Am I SETGID yet
12584 #endif
12585 _ACEOF
12586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12587 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12588 ac_cv_func_getloadavg_setgid=yes
12589 else
12590 ac_cv_func_getloadavg_setgid=no
12592 rm -f conftest*
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12596 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12597 if test $ac_cv_func_getloadavg_setgid = yes; then
12598 NEED_SETGID=true
12600 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12602 else
12603 NEED_SETGID=false
12606 if test $ac_cv_func_getloadavg_setgid = yes; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12608 $as_echo_n "checking group of /dev/kmem... " >&6; }
12609 if test "${ac_cv_group_kmem+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12613 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12614 # If we got an error (system does not support symlinks), try without -L.
12615 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12616 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12617 | sed -ne 's/[ ][ ]*/ /g;
12618 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12619 / /s/.* //;p;'`
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12623 $as_echo "$ac_cv_group_kmem" >&6; }
12624 KMEM_GROUP=$ac_cv_group_kmem
12626 if test "x$ac_save_LIBS" = x; then
12627 GETLOADAVG_LIBS=$LIBS
12628 else
12629 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12631 LIBS=$ac_save_LIBS
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12636 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12637 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 while :; do
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #include <sys/types.h> /* for off_t */
12644 #include <stdio.h>
12646 main ()
12648 int (*fp) (FILE *, off_t, int) = fseeko;
12649 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12651 return 0;
12653 _ACEOF
12654 if ac_fn_c_try_link "$LINENO"; then :
12655 ac_cv_sys_largefile_source=no; break
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 #define _LARGEFILE_SOURCE 1
12662 #include <sys/types.h> /* for off_t */
12663 #include <stdio.h>
12665 main ()
12667 int (*fp) (FILE *, off_t, int) = fseeko;
12668 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12670 return 0;
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674 ac_cv_sys_largefile_source=1; break
12676 rm -f core conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12678 ac_cv_sys_largefile_source=unknown
12679 break
12680 done
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12683 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12684 case $ac_cv_sys_largefile_source in #(
12685 no | unknown) ;;
12687 cat >>confdefs.h <<_ACEOF
12688 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12689 _ACEOF
12691 esac
12692 rm -rf conftest*
12694 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12695 # in glibc 2.1.3, but that breaks too many other things.
12696 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12697 if test $ac_cv_sys_largefile_source != unknown; then
12699 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12704 # Configure getopt.
12705 # getopt.m4 serial 10
12707 # The getopt module assume you want GNU getopt, with getopt_long etc,
12708 # rather than vanilla POSIX getopt. This means your your code should
12709 # always include <getopt.h> for the getopt prototypes.
12721 # Prerequisites of lib/getopt*.
12726 GETOPT_H=
12727 for ac_header in getopt.h
12728 do :
12729 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12730 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12731 cat >>confdefs.h <<_ACEOF
12732 #define HAVE_GETOPT_H 1
12733 _ACEOF
12735 else
12736 GETOPT_H=getopt.h
12739 done
12741 if test -z "$GETOPT_H"; then
12742 for ac_func in getopt_long_only
12743 do :
12744 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12745 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12746 cat >>confdefs.h <<_ACEOF
12747 #define HAVE_GETOPT_LONG_ONLY 1
12748 _ACEOF
12750 else
12751 GETOPT_H=getopt.h
12753 done
12757 if test -z "$GETOPT_H"; then
12758 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12760 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12761 GETOPT_H=getopt.h
12766 if test -z "$GETOPT_H"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12768 $as_echo_n "checking for working GNU getopt function... " >&6; }
12769 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 if test "$cross_compiling" = yes; then :
12773 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12775 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12776 gl_cv_func_gnu_getopt=no
12777 else
12778 gl_cv_func_gnu_getopt=yes
12781 else
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #include <getopt.h>
12786 main ()
12789 char *myargv[3];
12790 myargv[0] = "conftest";
12791 myargv[1] = "-+";
12792 myargv[2] = 0;
12793 return getopt (2, myargv, "+a") != '?';
12796 return 0;
12798 _ACEOF
12799 if ac_fn_c_try_run "$LINENO"; then :
12800 gl_cv_func_gnu_getopt=yes
12801 else
12802 gl_cv_func_gnu_getopt=no
12804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12805 conftest.$ac_objext conftest.beam conftest.$ac_ext
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12810 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12811 if test "$gl_cv_func_gnu_getopt" = "no"; then
12812 GETOPT_H=getopt.h
12818 if test -n "$GETOPT_H"; then :
12821 GETOPT_H=getopt.h
12823 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12828 GETOPTOBJS='getopt.o getopt1.o'
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12835 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12836 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 # Use it with a single arg.
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842 $ac_includes_default
12844 main ()
12846 getpgrp (0);
12848 return 0;
12850 _ACEOF
12851 if ac_fn_c_try_compile "$LINENO"; then :
12852 ac_cv_func_getpgrp_void=no
12853 else
12854 ac_cv_func_getpgrp_void=yes
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12860 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12861 if test $ac_cv_func_getpgrp_void = yes; then
12863 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12868 for ac_func in strftime
12869 do :
12870 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12871 if test "x$ac_cv_func_strftime" = x""yes; then :
12872 cat >>confdefs.h <<_ACEOF
12873 #define HAVE_STRFTIME 1
12874 _ACEOF
12876 else
12877 # strftime is in -lintl on SCO UNIX.
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12879 $as_echo_n "checking for strftime in -lintl... " >&6; }
12880 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 ac_check_lib_save_LIBS=$LIBS
12884 LIBS="-lintl $LIBS"
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12891 #ifdef __cplusplus
12892 extern "C"
12893 #endif
12894 char strftime ();
12896 main ()
12898 return strftime ();
12900 return 0;
12902 _ACEOF
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 ac_cv_lib_intl_strftime=yes
12905 else
12906 ac_cv_lib_intl_strftime=no
12908 rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 LIBS=$ac_check_lib_save_LIBS
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12913 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12914 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12915 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12917 LIBS="-lintl $LIBS"
12921 done
12924 # UNIX98 PTYs.
12925 for ac_func in grantpt
12926 do :
12927 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12928 if test "x$ac_cv_func_grantpt" = x""yes; then :
12929 cat >>confdefs.h <<_ACEOF
12930 #define HAVE_GRANTPT 1
12931 _ACEOF
12934 done
12937 # PTY-related GNU extensions.
12938 for ac_func in getpt
12939 do :
12940 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12941 if test "x$ac_cv_func_getpt" = x""yes; then :
12942 cat >>confdefs.h <<_ACEOF
12943 #define HAVE_GETPT 1
12944 _ACEOF
12947 done
12950 # Check this now, so that we will NOT find the above functions in ncurses.
12951 # That is because we have not set up to link ncurses in lib-src.
12952 # It's better to believe a function is not available
12953 # than to expect to find it in ncurses.
12954 # Also we need tputs and friends to be able to build at all.
12955 have_tputs_et_al=true
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12957 $as_echo_n "checking for library containing tputs... " >&6; }
12958 if test "${ac_cv_search_tputs+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 ac_func_search_save_LIBS=$LIBS
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968 #ifdef __cplusplus
12969 extern "C"
12970 #endif
12971 char tputs ();
12973 main ()
12975 return tputs ();
12977 return 0;
12979 _ACEOF
12980 for ac_lib in '' ncurses terminfo termcap; do
12981 if test -z "$ac_lib"; then
12982 ac_res="none required"
12983 else
12984 ac_res=-l$ac_lib
12985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12987 if ac_fn_c_try_link "$LINENO"; then :
12988 ac_cv_search_tputs=$ac_res
12990 rm -f core conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext
12992 if test "${ac_cv_search_tputs+set}" = set; then :
12993 break
12995 done
12996 if test "${ac_cv_search_tputs+set}" = set; then :
12998 else
12999 ac_cv_search_tputs=no
13001 rm conftest.$ac_ext
13002 LIBS=$ac_func_search_save_LIBS
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13005 $as_echo "$ac_cv_search_tputs" >&6; }
13006 ac_res=$ac_cv_search_tputs
13007 if test "$ac_res" != no; then :
13008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13010 else
13011 have_tputs_et_al=false
13014 if test "$have_tputs_et_al" != true; then
13015 as_fn_error "I couldn't find termcap functions (tputs and friends).
13016 Maybe some development libraries/packages are missing? Try installing
13017 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13019 # Must define this when any termcap library is found.
13021 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13023 ## FIXME This was the cpp logic, but I am not sure it is right.
13024 ## The above test has not necessarily found libncurses.
13025 HAVE_LIBNCURSES=yes
13027 ## Use terminfo instead of termcap?
13028 ## Note only system files NOT using terminfo are:
13029 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13030 ## darwin|gnu without ncurses.
13031 TERMINFO=no
13032 LIBS_TERMCAP=
13033 case "$opsys" in
13034 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13035 ## hpux10-20: Use the system provided termcap(3) library.
13036 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13037 ## is necessary. Otherwise Emacs dumps core when run -nw.
13038 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13040 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13041 ## The ncurses library has been moved out of the System framework in
13042 ## Mac OS X 10.2. So if configure detects it, set the command-line
13043 ## option to use it.
13044 darwin|gnu*)
13045 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13046 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13047 TERMINFO=yes
13048 LIBS_TERMCAP="-lncurses"
13052 freebsd)
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13054 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13055 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 #include <osreldate.h>
13062 main ()
13064 #if __FreeBSD_version < 400000
13065 fail;
13066 #endif
13069 return 0;
13071 _ACEOF
13072 if ac_fn_c_try_link "$LINENO"; then :
13073 emacs_cv_freebsd_terminfo=yes
13074 else
13075 emacs_cv_freebsd_terminfo=no
13077 rm -f core conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13083 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13085 if test $emacs_cv_freebsd_terminfo = yes; then
13086 TERMINFO=yes
13087 LIBS_TERMCAP="-lncurses"
13088 else
13089 LIBS_TERMCAP="-ltermcap"
13093 netbsd)
13094 if test $ac_cv_search_tputs = -lterminfo; then
13095 TERMINFO=yes
13096 LIBS_TERMCAP="-lterminfo"
13097 else
13098 LIBS_TERMCAP="-ltermcap"
13102 esac
13104 case "$opsys" in
13105 ## hpux: Make sure we get select from libc rather than from libcurses
13106 ## because libcurses on HPUX 10.10 has a broken version of select.
13107 ## We used to use -lc -lcurses, but this may be cleaner.
13108 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13110 openbsd) LIBS_TERMCAP="-lncurses" ;;
13112 ## Must use system termcap, if we use any termcap. It does special things.
13113 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13114 esac
13116 TERMCAP_OBJ=tparam.o
13117 if test $TERMINFO = yes; then
13119 $as_echo "#define TERMINFO 1" >>confdefs.h
13122 ## Default used to be -ltermcap. Add a case above if need something else.
13123 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13125 TERMCAP_OBJ=terminfo.o
13131 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13132 resolv=no
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 #include <netinet/in.h>
13136 #include <arpa/nameser.h>
13137 #include <resolv.h>
13139 main ()
13141 return res_init();
13143 return 0;
13145 _ACEOF
13146 if ac_fn_c_try_link "$LINENO"; then :
13147 have_res_init=yes
13148 else
13149 have_res_init=no
13151 rm -f core conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13153 if test "$have_res_init" = no; then
13154 OLIBS="$LIBS"
13155 LIBS="$LIBS -lresolv"
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13157 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13160 #include <netinet/in.h>
13161 #include <arpa/nameser.h>
13162 #include <resolv.h>
13164 main ()
13166 return res_init();
13168 return 0;
13170 _ACEOF
13171 if ac_fn_c_try_link "$LINENO"; then :
13172 have_res_init=yes
13173 else
13174 have_res_init=no
13176 rm -f core conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13179 $as_echo "$have_res_init" >&6; }
13180 if test "$have_res_init" = yes ; then
13181 resolv=yes
13183 LIBS="$OLIBS"
13186 if test "$have_res_init" = yes; then
13188 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13192 # Do we need the Hesiod library to provide the support routines?
13193 LIBHESIOD=
13194 if test "$with_hesiod" != no ; then
13195 # Don't set $LIBS here -- see comments above. FIXME which comments?
13196 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13197 if test "x$ac_cv_func_res_send" = x""yes; then :
13199 else
13200 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13201 if test "x$ac_cv_func___res_send" = x""yes; then :
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13205 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13206 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-lresolv $LIBS"
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13214 /* Override any GCC internal prototype to avoid an error.
13215 Use char because int might match the return type of a GCC
13216 builtin and then its argument prototype would still apply. */
13217 #ifdef __cplusplus
13218 extern "C"
13219 #endif
13220 char res_send ();
13222 main ()
13224 return res_send ();
13226 return 0;
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"; then :
13230 ac_cv_lib_resolv_res_send=yes
13231 else
13232 ac_cv_lib_resolv_res_send=no
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13236 LIBS=$ac_check_lib_save_LIBS
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13239 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13240 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13241 resolv=yes
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13244 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13245 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 ac_check_lib_save_LIBS=$LIBS
13249 LIBS="-lresolv $LIBS"
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13253 /* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13256 #ifdef __cplusplus
13257 extern "C"
13258 #endif
13259 char __res_send ();
13261 main ()
13263 return __res_send ();
13265 return 0;
13267 _ACEOF
13268 if ac_fn_c_try_link "$LINENO"; then :
13269 ac_cv_lib_resolv___res_send=yes
13270 else
13271 ac_cv_lib_resolv___res_send=no
13273 rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13275 LIBS=$ac_check_lib_save_LIBS
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13278 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13279 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13280 resolv=yes
13289 if test "$resolv" = yes ; then
13290 RESOLVLIB=-lresolv
13291 else
13292 RESOLVLIB=
13294 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13295 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13297 else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13299 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13300 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 ac_check_lib_save_LIBS=$LIBS
13304 LIBS="-lhesiod $RESOLVLIB $LIBS"
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13311 #ifdef __cplusplus
13312 extern "C"
13313 #endif
13314 char hes_getmailhost ();
13316 main ()
13318 return hes_getmailhost ();
13320 return 0;
13322 _ACEOF
13323 if ac_fn_c_try_link "$LINENO"; then :
13324 ac_cv_lib_hesiod_hes_getmailhost=yes
13325 else
13326 ac_cv_lib_hesiod_hes_getmailhost=no
13328 rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13333 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13334 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13335 hesiod=yes
13336 else
13343 if test x"$hesiod" = xyes; then
13345 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13347 LIBHESIOD=-lhesiod
13352 # Do we need libresolv (due to res_init or Hesiod)?
13353 if test "$resolv" = yes ; then
13355 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13357 LIBRESOLV=-lresolv
13358 else
13359 LIBRESOLV=
13363 # These tell us which Kerberos-related libraries to use.
13364 COM_ERRLIB=
13365 CRYPTOLIB=
13366 KRB5LIB=
13367 DESLIB=
13368 KRB4LIB=
13370 if test "${with_kerberos}" != no; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13372 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13373 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13375 else
13376 ac_check_lib_save_LIBS=$LIBS
13377 LIBS="-lcom_err $LIBS"
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13381 /* Override any GCC internal prototype to avoid an error.
13382 Use char because int might match the return type of a GCC
13383 builtin and then its argument prototype would still apply. */
13384 #ifdef __cplusplus
13385 extern "C"
13386 #endif
13387 char com_err ();
13389 main ()
13391 return com_err ();
13393 return 0;
13395 _ACEOF
13396 if ac_fn_c_try_link "$LINENO"; then :
13397 ac_cv_lib_com_err_com_err=yes
13398 else
13399 ac_cv_lib_com_err_com_err=no
13401 rm -f core conftest.err conftest.$ac_objext \
13402 conftest$ac_exeext conftest.$ac_ext
13403 LIBS=$ac_check_lib_save_LIBS
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13406 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13407 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13408 have_com_err=yes
13409 else
13410 have_com_err=no
13413 if test $have_com_err = yes; then
13414 COM_ERRLIB=-lcom_err
13415 LIBS="$COM_ERRLIB $LIBS"
13417 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13421 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13422 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-lcrypto $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char mit_des_cbc_encrypt ();
13438 main ()
13440 return mit_des_cbc_encrypt ();
13442 return 0;
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13447 else
13448 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13455 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13456 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13457 have_crypto=yes
13458 else
13459 have_crypto=no
13462 if test $have_crypto = yes; then
13463 CRYPTOLIB=-lcrypto
13464 LIBS="$CRYPTOLIB $LIBS"
13466 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13470 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13471 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 ac_check_lib_save_LIBS=$LIBS
13475 LIBS="-lk5crypto $LIBS"
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13479 /* Override any GCC internal prototype to avoid an error.
13480 Use char because int might match the return type of a GCC
13481 builtin and then its argument prototype would still apply. */
13482 #ifdef __cplusplus
13483 extern "C"
13484 #endif
13485 char mit_des_cbc_encrypt ();
13487 main ()
13489 return mit_des_cbc_encrypt ();
13491 return 0;
13493 _ACEOF
13494 if ac_fn_c_try_link "$LINENO"; then :
13495 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13496 else
13497 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13499 rm -f core conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext conftest.$ac_ext
13501 LIBS=$ac_check_lib_save_LIBS
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13504 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13505 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13506 have_k5crypto=yes
13507 else
13508 have_k5crypto=no
13511 if test $have_k5crypto = yes; then
13512 CRYPTOLIB=-lk5crypto
13513 LIBS="$CRYPTOLIB $LIBS"
13515 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13519 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13520 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 ac_check_lib_save_LIBS=$LIBS
13524 LIBS="-lkrb5 $LIBS"
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13528 /* Override any GCC internal prototype to avoid an error.
13529 Use char because int might match the return type of a GCC
13530 builtin and then its argument prototype would still apply. */
13531 #ifdef __cplusplus
13532 extern "C"
13533 #endif
13534 char krb5_init_context ();
13536 main ()
13538 return krb5_init_context ();
13540 return 0;
13542 _ACEOF
13543 if ac_fn_c_try_link "$LINENO"; then :
13544 ac_cv_lib_krb5_krb5_init_context=yes
13545 else
13546 ac_cv_lib_krb5_krb5_init_context=no
13548 rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550 LIBS=$ac_check_lib_save_LIBS
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13553 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13554 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13555 have_krb5=yes
13556 else
13557 have_krb5=no
13560 if test $have_krb5=yes; then
13561 KRB5LIB=-lkrb5
13562 LIBS="$KRB5LIB $LIBS"
13564 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13567 if test "${with_kerberos5}" = no; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13569 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13570 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 ac_check_lib_save_LIBS=$LIBS
13574 LIBS="-ldes425 $LIBS"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 char des_cbc_encrypt ();
13586 main ()
13588 return des_cbc_encrypt ();
13590 return 0;
13592 _ACEOF
13593 if ac_fn_c_try_link "$LINENO"; then :
13594 ac_cv_lib_des425_des_cbc_encrypt=yes
13595 else
13596 ac_cv_lib_des425_des_cbc_encrypt=no
13598 rm -f core conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13603 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13604 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13605 have_des425=yes
13606 else
13607 have_des425=no
13610 if test $have_des425 = yes; then
13611 DESLIB=-ldes425
13612 LIBS="$DESLIB $LIBS"
13614 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13618 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13619 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
13621 else
13622 ac_check_lib_save_LIBS=$LIBS
13623 LIBS="-ldes $LIBS"
13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13627 /* Override any GCC internal prototype to avoid an error.
13628 Use char because int might match the return type of a GCC
13629 builtin and then its argument prototype would still apply. */
13630 #ifdef __cplusplus
13631 extern "C"
13632 #endif
13633 char des_cbc_encrypt ();
13635 main ()
13637 return des_cbc_encrypt ();
13639 return 0;
13641 _ACEOF
13642 if ac_fn_c_try_link "$LINENO"; then :
13643 ac_cv_lib_des_des_cbc_encrypt=yes
13644 else
13645 ac_cv_lib_des_des_cbc_encrypt=no
13647 rm -f core conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
13649 LIBS=$ac_check_lib_save_LIBS
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13652 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13653 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13654 have_des=yes
13655 else
13656 have_des=no
13659 if test $have_des = yes; then
13660 DESLIB=-ldes
13661 LIBS="$DESLIB $LIBS"
13663 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13668 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13669 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 ac_check_lib_save_LIBS=$LIBS
13673 LIBS="-lkrb4 $LIBS"
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13677 /* Override any GCC internal prototype to avoid an error.
13678 Use char because int might match the return type of a GCC
13679 builtin and then its argument prototype would still apply. */
13680 #ifdef __cplusplus
13681 extern "C"
13682 #endif
13683 char krb_get_cred ();
13685 main ()
13687 return krb_get_cred ();
13689 return 0;
13691 _ACEOF
13692 if ac_fn_c_try_link "$LINENO"; then :
13693 ac_cv_lib_krb4_krb_get_cred=yes
13694 else
13695 ac_cv_lib_krb4_krb_get_cred=no
13697 rm -f core conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
13699 LIBS=$ac_check_lib_save_LIBS
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13702 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13703 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13704 have_krb4=yes
13705 else
13706 have_krb4=no
13709 if test $have_krb4 = yes; then
13710 KRB4LIB=-lkrb4
13711 LIBS="$KRB4LIB $LIBS"
13713 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13715 else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13717 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13718 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 ac_check_lib_save_LIBS=$LIBS
13722 LIBS="-lkrb $LIBS"
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13726 /* Override any GCC internal prototype to avoid an error.
13727 Use char because int might match the return type of a GCC
13728 builtin and then its argument prototype would still apply. */
13729 #ifdef __cplusplus
13730 extern "C"
13731 #endif
13732 char krb_get_cred ();
13734 main ()
13736 return krb_get_cred ();
13738 return 0;
13740 _ACEOF
13741 if ac_fn_c_try_link "$LINENO"; then :
13742 ac_cv_lib_krb_krb_get_cred=yes
13743 else
13744 ac_cv_lib_krb_krb_get_cred=no
13746 rm -f core conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13748 LIBS=$ac_check_lib_save_LIBS
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13751 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13752 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13753 have_krb=yes
13754 else
13755 have_krb=no
13758 if test $have_krb = yes; then
13759 KRB4LIB=-lkrb
13760 LIBS="$KRB4LIB $LIBS"
13762 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13768 if test "${with_kerberos5}" != no; then
13769 for ac_header in krb5.h
13770 do :
13771 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13772 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_KRB5_H 1
13775 _ACEOF
13776 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13778 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13780 cat >>confdefs.h <<_ACEOF
13781 #define HAVE_KRB5_ERROR_TEXT 1
13782 _ACEOF
13786 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13788 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13790 cat >>confdefs.h <<_ACEOF
13791 #define HAVE_KRB5_ERROR_E_TEXT 1
13792 _ACEOF
13799 done
13801 else
13802 for ac_header in des.h
13803 do :
13804 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13805 if test "x$ac_cv_header_des_h" = x""yes; then :
13806 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_DES_H 1
13808 _ACEOF
13810 else
13811 for ac_header in kerberosIV/des.h
13812 do :
13813 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13814 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13815 cat >>confdefs.h <<_ACEOF
13816 #define HAVE_KERBEROSIV_DES_H 1
13817 _ACEOF
13819 else
13820 for ac_header in kerberos/des.h
13821 do :
13822 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13823 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13824 cat >>confdefs.h <<_ACEOF
13825 #define HAVE_KERBEROS_DES_H 1
13826 _ACEOF
13830 done
13834 done
13838 done
13840 for ac_header in krb.h
13841 do :
13842 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13843 if test "x$ac_cv_header_krb_h" = x""yes; then :
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_KRB_H 1
13846 _ACEOF
13848 else
13849 for ac_header in kerberosIV/krb.h
13850 do :
13851 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13852 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_KERBEROSIV_KRB_H 1
13855 _ACEOF
13857 else
13858 for ac_header in kerberos/krb.h
13859 do :
13860 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13861 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13862 cat >>confdefs.h <<_ACEOF
13863 #define HAVE_KERBEROS_KRB_H 1
13864 _ACEOF
13868 done
13872 done
13876 done
13879 for ac_header in com_err.h
13880 do :
13881 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13882 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13883 cat >>confdefs.h <<_ACEOF
13884 #define HAVE_COM_ERR_H 1
13885 _ACEOF
13889 done
13899 # Solaris requires -lintl if you want strerror (which calls dgettext)
13900 # to return localized messages.
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13902 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13903 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13904 $as_echo_n "(cached) " >&6
13905 else
13906 ac_check_lib_save_LIBS=$LIBS
13907 LIBS="-lintl $LIBS"
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13911 /* Override any GCC internal prototype to avoid an error.
13912 Use char because int might match the return type of a GCC
13913 builtin and then its argument prototype would still apply. */
13914 #ifdef __cplusplus
13915 extern "C"
13916 #endif
13917 char dgettext ();
13919 main ()
13921 return dgettext ();
13923 return 0;
13925 _ACEOF
13926 if ac_fn_c_try_link "$LINENO"; then :
13927 ac_cv_lib_intl_dgettext=yes
13928 else
13929 ac_cv_lib_intl_dgettext=no
13931 rm -f core conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933 LIBS=$ac_check_lib_save_LIBS
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13936 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13937 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_LIBINTL 1
13940 _ACEOF
13942 LIBS="-lintl $LIBS"
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13948 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13949 if test "${emacs_cv_localtime_cache+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 if test x$ac_cv_func_tzset = xyes; then
13953 if test "$cross_compiling" = yes; then :
13954 # If we have tzset, assume the worst when cross-compiling.
13955 emacs_cv_localtime_cache=yes
13956 else
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 #include <time.h>
13960 extern char **environ;
13961 unset_TZ ()
13963 char **from, **to;
13964 for (to = from = environ; (*to = *from); from++)
13965 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13966 to++;
13968 char TZ_GMT0[] = "TZ=GMT0";
13969 char TZ_PST8[] = "TZ=PST8";
13970 main()
13972 time_t now = time ((time_t *) 0);
13973 int hour_GMT0, hour_unset;
13974 if (putenv (TZ_GMT0) != 0)
13975 exit (1);
13976 hour_GMT0 = localtime (&now)->tm_hour;
13977 unset_TZ ();
13978 hour_unset = localtime (&now)->tm_hour;
13979 if (putenv (TZ_PST8) != 0)
13980 exit (1);
13981 if (localtime (&now)->tm_hour == hour_GMT0)
13982 exit (1);
13983 unset_TZ ();
13984 if (localtime (&now)->tm_hour != hour_unset)
13985 exit (1);
13986 exit (0);
13988 _ACEOF
13989 if ac_fn_c_try_run "$LINENO"; then :
13990 emacs_cv_localtime_cache=no
13991 else
13992 emacs_cv_localtime_cache=yes
13994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13995 conftest.$ac_objext conftest.beam conftest.$ac_ext
13998 else
13999 # If we lack tzset, report that localtime does not cache TZ,
14000 # since we can't invalidate the cache if we don't have tzset.
14001 emacs_cv_localtime_cache=no
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14005 $as_echo "$emacs_cv_localtime_cache" >&6; }
14006 if test $emacs_cv_localtime_cache = yes; then
14008 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14012 if test "x$HAVE_TIMEVAL" = xyes; then
14013 for ac_func in gettimeofday
14014 do :
14015 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14016 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_GETTIMEOFDAY 1
14019 _ACEOF
14022 done
14024 if test $ac_cv_func_gettimeofday = yes; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14026 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14027 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14033 #ifdef TIME_WITH_SYS_TIME
14034 #include <sys/time.h>
14035 #include <time.h>
14036 #else
14037 #ifdef HAVE_SYS_TIME_H
14038 #include <sys/time.h>
14039 #else
14040 #include <time.h>
14041 #endif
14042 #endif
14044 main ()
14046 struct timeval time;
14047 gettimeofday (&time, 0);
14049 return 0;
14051 _ACEOF
14052 if ac_fn_c_try_compile "$LINENO"; then :
14053 emacs_cv_gettimeofday_two_arguments=yes
14054 else
14055 emacs_cv_gettimeofday_two_arguments=no
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14060 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14061 if test $emacs_cv_gettimeofday_two_arguments = no; then
14063 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14069 ok_so_far=yes
14070 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14071 if test "x$ac_cv_func_socket" = x""yes; then :
14073 else
14074 ok_so_far=no
14077 if test $ok_so_far = yes; then
14078 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14079 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14081 else
14082 ok_so_far=no
14087 if test $ok_so_far = yes; then
14088 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14089 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14091 else
14092 ok_so_far=no
14097 if test $ok_so_far = yes; then
14099 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14103 for ac_header in sys/ioctl.h
14104 do :
14105 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14106 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
14107 cat >>confdefs.h <<_ACEOF
14108 #define HAVE_SYS_IOCTL_H 1
14109 _ACEOF
14113 done
14116 if test -f /usr/lpp/X11/bin/smt.exp; then
14118 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14123 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14124 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14126 $as_echo "yes" >&6; }
14128 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14135 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14136 if test "x$ac_cv_type_pid_t" = x""yes; then :
14138 else
14140 cat >>confdefs.h <<_ACEOF
14141 #define pid_t int
14142 _ACEOF
14146 for ac_header in vfork.h
14147 do :
14148 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14149 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14150 cat >>confdefs.h <<_ACEOF
14151 #define HAVE_VFORK_H 1
14152 _ACEOF
14156 done
14158 for ac_func in fork vfork
14159 do :
14160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14162 eval as_val=\$$as_ac_var
14163 if test "x$as_val" = x""yes; then :
14164 cat >>confdefs.h <<_ACEOF
14165 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14166 _ACEOF
14169 done
14171 if test "x$ac_cv_func_fork" = xyes; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14173 $as_echo_n "checking for working fork... " >&6; }
14174 if test "${ac_cv_func_fork_works+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 if test "$cross_compiling" = yes; then :
14178 ac_cv_func_fork_works=cross
14179 else
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 $ac_includes_default
14184 main ()
14187 /* By Ruediger Kuhlmann. */
14188 return fork () < 0;
14191 return 0;
14193 _ACEOF
14194 if ac_fn_c_try_run "$LINENO"; then :
14195 ac_cv_func_fork_works=yes
14196 else
14197 ac_cv_func_fork_works=no
14199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14200 conftest.$ac_objext conftest.beam conftest.$ac_ext
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14205 $as_echo "$ac_cv_func_fork_works" >&6; }
14207 else
14208 ac_cv_func_fork_works=$ac_cv_func_fork
14210 if test "x$ac_cv_func_fork_works" = xcross; then
14211 case $host in
14212 *-*-amigaos* | *-*-msdosdjgpp*)
14213 # Override, as these systems have only a dummy fork() stub
14214 ac_cv_func_fork_works=no
14217 ac_cv_func_fork_works=yes
14219 esac
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14221 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14223 ac_cv_func_vfork_works=$ac_cv_func_vfork
14224 if test "x$ac_cv_func_vfork" = xyes; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14226 $as_echo_n "checking for working vfork... " >&6; }
14227 if test "${ac_cv_func_vfork_works+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 if test "$cross_compiling" = yes; then :
14231 ac_cv_func_vfork_works=cross
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 /* Thanks to Paul Eggert for this test. */
14236 $ac_includes_default
14237 #include <sys/wait.h>
14238 #ifdef HAVE_VFORK_H
14239 # include <vfork.h>
14240 #endif
14241 /* On some sparc systems, changes by the child to local and incoming
14242 argument registers are propagated back to the parent. The compiler
14243 is told about this with #include <vfork.h>, but some compilers
14244 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14245 static variable whose address is put into a register that is
14246 clobbered by the vfork. */
14247 static void
14248 #ifdef __cplusplus
14249 sparc_address_test (int arg)
14250 # else
14251 sparc_address_test (arg) int arg;
14252 #endif
14254 static pid_t child;
14255 if (!child) {
14256 child = vfork ();
14257 if (child < 0) {
14258 perror ("vfork");
14259 _exit(2);
14261 if (!child) {
14262 arg = getpid();
14263 write(-1, "", 0);
14264 _exit (arg);
14270 main ()
14272 pid_t parent = getpid ();
14273 pid_t child;
14275 sparc_address_test (0);
14277 child = vfork ();
14279 if (child == 0) {
14280 /* Here is another test for sparc vfork register problems. This
14281 test uses lots of local variables, at least as many local
14282 variables as main has allocated so far including compiler
14283 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14284 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14285 reuse the register of parent for one of the local variables,
14286 since it will think that parent can't possibly be used any more
14287 in this routine. Assigning to the local variable will thus
14288 munge parent in the parent process. */
14289 pid_t
14290 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14291 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14292 /* Convince the compiler that p..p7 are live; otherwise, it might
14293 use the same hardware register for all 8 local variables. */
14294 if (p != p1 || p != p2 || p != p3 || p != p4
14295 || p != p5 || p != p6 || p != p7)
14296 _exit(1);
14298 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14299 from child file descriptors. If the child closes a descriptor
14300 before it execs or exits, this munges the parent's descriptor
14301 as well. Test for this by closing stdout in the child. */
14302 _exit(close(fileno(stdout)) != 0);
14303 } else {
14304 int status;
14305 struct stat st;
14307 while (wait(&status) != child)
14309 return (
14310 /* Was there some problem with vforking? */
14311 child < 0
14313 /* Did the child fail? (This shouldn't happen.) */
14314 || status
14316 /* Did the vfork/compiler bug occur? */
14317 || parent != getpid()
14319 /* Did the file descriptor bug occur? */
14320 || fstat(fileno(stdout), &st) != 0
14324 _ACEOF
14325 if ac_fn_c_try_run "$LINENO"; then :
14326 ac_cv_func_vfork_works=yes
14327 else
14328 ac_cv_func_vfork_works=no
14330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14331 conftest.$ac_objext conftest.beam conftest.$ac_ext
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14336 $as_echo "$ac_cv_func_vfork_works" >&6; }
14339 if test "x$ac_cv_func_fork_works" = xcross; then
14340 ac_cv_func_vfork_works=$ac_cv_func_vfork
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14342 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14345 if test "x$ac_cv_func_vfork_works" = xyes; then
14347 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14349 else
14351 $as_echo "#define vfork fork" >>confdefs.h
14354 if test "x$ac_cv_func_fork_works" = xyes; then
14356 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14362 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14363 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368 #include <langinfo.h>
14370 main ()
14372 char* cs = nl_langinfo(CODESET);
14374 return 0;
14376 _ACEOF
14377 if ac_fn_c_try_link "$LINENO"; then :
14378 emacs_cv_langinfo_codeset=yes
14379 else
14380 emacs_cv_langinfo_codeset=no
14382 rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext conftest.$ac_ext
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14387 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14388 if test $emacs_cv_langinfo_codeset = yes; then
14390 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14394 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14395 if test "x$ac_cv_type_size_t" = x""yes; then :
14397 cat >>confdefs.h <<_ACEOF
14398 #define HAVE_SIZE_T 1
14399 _ACEOF
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14406 $as_echo_n "checking for mbstate_t... " >&6; }
14407 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 $ac_includes_default
14413 # include <wchar.h>
14415 main ()
14417 mbstate_t x; return sizeof x;
14419 return 0;
14421 _ACEOF
14422 if ac_fn_c_try_compile "$LINENO"; then :
14423 ac_cv_type_mbstate_t=yes
14424 else
14425 ac_cv_type_mbstate_t=no
14427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14430 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14431 if test $ac_cv_type_mbstate_t = yes; then
14433 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14435 else
14437 $as_echo "#define mbstate_t int" >>confdefs.h
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14442 $as_echo_n "checking for C restrict keyword... " >&6; }
14443 if test "${emacs_cv_c_restrict+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14448 void fred (int *restrict x);
14450 main ()
14454 return 0;
14456 _ACEOF
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458 emacs_cv_c_restrict=yes
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=__restrict
14473 else
14474 emacs_cv_c_restrict=no
14476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14481 $as_echo "$emacs_cv_c_restrict" >&6; }
14482 case "$emacs_cv_c_restrict" in
14483 yes) emacs_restrict=restrict;;
14484 no) emacs_restrict="";;
14485 *) emacs_restrict="$emacs_cv_c_restrict";;
14486 esac
14487 if test "$emacs_restrict" != __restrict; then
14489 cat >>confdefs.h <<_ACEOF
14490 #define __restrict $emacs_restrict
14491 _ACEOF
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14496 $as_echo_n "checking for C restricted array declarations... " >&6; }
14497 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 void fred (int x[__restrict]);
14504 main ()
14508 return 0;
14510 _ACEOF
14511 if ac_fn_c_try_compile "$LINENO"; then :
14512 emacs_cv_c_restrict_arr=yes
14513 else
14514 emacs_cv_c_restrict_arr=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14519 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14520 if test "$emacs_cv_c_restrict_arr" = yes; then
14522 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14528 # Set up the CFLAGS for real compilation, so we can substitute it.
14529 CFLAGS="$REAL_CFLAGS"
14530 CPPFLAGS="$REAL_CPPFLAGS"
14532 ## Hack to detect a buggy GCC version.
14533 if test "x$GCC" = xyes \
14534 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14535 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14536 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14537 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14540 #### Find out which version of Emacs this is.
14541 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14542 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14543 if test x"${version}" = x; then
14544 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14546 if test x"${version}" != x"$PACKAGE_VERSION"; then
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14548 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14551 ### Specify what sort of things we'll be editing into Makefile and config.h.
14552 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14555 ## Unused?
14576 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14577 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14578 ## end of LIBX_BASE, but nothing ever set it.
14583 ## Used in lwlib/Makefile.in.
14596 cat >>confdefs.h <<_ACEOF
14597 #define EMACS_CONFIGURATION "${canonical}"
14598 _ACEOF
14601 cat >>confdefs.h <<_ACEOF
14602 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14603 _ACEOF
14606 cat >>confdefs.h <<_ACEOF
14607 #define config_machfile "${machfile}"
14608 _ACEOF
14611 cat >>confdefs.h <<_ACEOF
14612 #define config_opsysfile "${opsysfile}"
14613 _ACEOF
14616 XMENU_OBJ=
14617 XOBJ=
14618 FONT_OBJ=
14619 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14621 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14623 XMENU_OBJ=xmenu.o
14624 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14625 FONT_OBJ=xfont.o
14626 if test "$HAVE_XFT" = "yes"; then
14627 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14628 elif test "$HAVE_FREETYPE" = "yes"; then
14629 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14637 WIDGET_OBJ=
14638 MOTIF_LIBW=
14639 if test "${USE_X_TOOLKIT}" != "none" ; then
14640 WIDGET_OBJ=widget.o
14642 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14644 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14646 $as_echo "#define USE_LUCID 1" >>confdefs.h
14648 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14650 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14652 MOTIF_LIBW=-lXm
14653 case "$opsys" in
14654 gnu-linux)
14655 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14656 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14659 unixware)
14660 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14661 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14662 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14665 aix4-2)
14666 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14667 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14669 esac
14670 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14675 TOOLKIT_LIBW=
14676 case "$USE_X_TOOLKIT" in
14677 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14678 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14679 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14680 esac
14683 if test "$USE_X_TOOLKIT" = "none"; then
14684 LIBXT_OTHER="\$(LIBXSM)"
14685 OLDXMENU_TARGET="really-oldXMenu"
14686 else
14687 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14688 OLDXMENU_TARGET="really-lwlib"
14692 ## The X Menu stuff is present in the X10 distribution, but missing
14693 ## from X11. If we have X10, just use the installed library;
14694 ## otherwise, use our own copy.
14695 if test "${HAVE_X11}" = "yes" ; then
14697 $as_echo "#define HAVE_X11 1" >>confdefs.h
14700 if test "$USE_X_TOOLKIT" = "none"; then
14701 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14702 else
14703 OLDXMENU="\${lwlibdir}liblw.a"
14705 LIBXMENU="\$(OLDXMENU)"
14706 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14707 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14708 else
14709 ## For a syntactically valid Makefile; not actually used for anything.
14710 ## See comments in src/Makefile.in.
14711 OLDXMENU=nothing
14712 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14713 if test "${HAVE_X_WINDOWS}" = "yes"; then
14714 LIBXMENU="-lXMenu"
14715 else
14716 LIBXMENU=
14718 LIBX_OTHER=
14719 OLDXMENU_DEPS=
14722 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14723 OLDXMENU_TARGET=
14724 OLDXMENU=nothing
14725 LIBXMENU=
14726 OLDXMENU_DEPS=
14735 if test "${HAVE_MENUS}" = "yes" ; then
14737 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14741 if test "${GNU_MALLOC}" = "yes" ; then
14743 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14747 RALLOC_OBJ=
14748 if test "${REL_ALLOC}" = "yes" ; then
14750 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14753 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14757 if test "$opsys" = "cygwin"; then
14758 CYGWIN_OBJ="sheap.o"
14759 ## Cygwin differs because of its unexec().
14760 PRE_ALLOC_OBJ=
14761 POST_ALLOC_OBJ=lastfile.o
14762 else
14763 CYGWIN_OBJ=
14764 PRE_ALLOC_OBJ=lastfile.o
14765 POST_ALLOC_OBJ=
14772 case "$opsys" in
14773 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14775 darwin)
14776 ## The -headerpad option tells ld (see man page) to leave room at the
14777 ## end of the header for adding load commands. Needed for dumping.
14778 ## 0x690 is the total size of 30 segment load commands (at 56
14779 ## each); under Cocoa 31 commands are required.
14780 if test "$HAVE_NS" = "yes"; then
14781 libs_nsgui="-framework AppKit"
14782 headerpad_extra=6C8
14783 else
14784 libs_nsgui=
14785 headerpad_extra=690
14787 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14789 ## This is here because src/Makefile.in did some extra fiddling around
14790 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14791 ## #ifndef LD_SWITCH_SYSTEM
14792 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14793 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14794 ## not using gcc, darwin system not on an alpha (ie darwin, since
14795 ## darwin + alpha does not occur).
14796 ## Because this was done in src/Makefile.in, the resulting part of
14797 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14798 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14799 ## rather than LD_SWITCH_SYSTEM.
14800 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14801 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14804 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14805 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14806 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14807 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14808 ## had different values in configure (in ac_link) and src/Makefile.in.
14809 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14810 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14812 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14813 esac
14815 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14816 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14822 LD_FIRSTFLAG=
14823 ORDINARY_LINK=
14824 case "$opsys" in
14825 ## gnu: GNU needs its own crt0.
14826 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14828 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14829 ## library search parth, i.e. it won't search /usr/lib for libc and
14830 ## friends. Using -nostartfiles instead avoids this problem, and
14831 ## will also work on earlier NetBSD releases.
14832 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14834 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14835 ## MkLinux/LinuxPPC needs this.
14836 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14837 gnu-*)
14838 case "$machine" in
14839 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14840 esac
14842 esac
14845 if test "x$ORDINARY_LINK" = "xyes"; then
14847 LD_FIRSTFLAG=""
14849 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14852 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14853 ## freebsd, gnu-* not on macppc|ibms390x.
14854 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14856 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14857 ## places that are difficult to figure out at make time. Fortunately,
14858 ## these same versions allow you to pass arbitrary flags on to the
14859 ## linker, so there is no reason not to use it as a linker.
14861 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14862 ## searching for libraries in its internal directories, so we have to
14863 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14864 LD_FIRSTFLAG="-nostdlib"
14867 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14868 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14873 ## FIXME? The logic here is not precisely the same as that above.
14874 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14875 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14876 LIB_GCC=
14877 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14879 case "$opsys" in
14880 freebsd|netbsd|openbsd) LIB_GCC= ;;
14882 gnu-*)
14883 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14884 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14885 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14886 if test "$machine" = "arm"; then
14887 LIB_GCC="-lgcc_s"
14888 else
14889 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14890 ## immediately undefine it again and redefine it to empty.
14891 ## Was the C_SWITCH_X_SITE part really necessary?
14892 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14893 LIB_GCC=
14897 ## Ask GCC where to find libgcc.a.
14898 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14899 esac
14903 TOOLTIP_SUPPORT=
14904 WINDOW_SUPPORT=
14905 ## If we're using X11/GNUstep, define some consequences.
14906 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14908 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14911 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14913 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14914 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14916 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14917 test "$HAVE_X_WINDOWS" = "yes" && \
14918 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14928 #### Report on what we decided to do.
14929 #### Report GTK as a toolkit, even if it doesn't use Xt.
14930 #### It makes printing result more understandable as using GTK sets
14931 #### toolkit_scroll_bars to yes by default.
14932 if test "${HAVE_GTK}" = "yes"; then
14933 USE_X_TOOLKIT=GTK
14936 echo "
14937 Configured for \`${canonical}'.
14939 Where should the build process find the source code? ${srcdir}
14940 What operating system and machine description files should Emacs use?
14941 \`${opsysfile}' and \`${machfile}'
14942 What compiler should emacs be built with? ${CC} ${CFLAGS}
14943 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14944 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14945 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14946 What window system should Emacs use? ${window_system}
14947 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14949 if test -n "${x_includes}"; then
14950 echo " Where do we find X Windows header files? ${x_includes}"
14951 else
14952 echo " Where do we find X Windows header files? Standard dirs"
14954 if test -n "${x_libraries}"; then
14955 echo " Where do we find X Windows libraries? ${x_libraries}"
14956 else
14957 echo " Where do we find X Windows libraries? Standard dirs"
14960 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14961 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14962 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14963 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14964 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14965 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14966 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14967 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14969 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14970 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14971 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14972 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14973 echo " Does Emacs use -lgnutls (BROKEN)? ${HAVE_GNUTLS}"
14974 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14976 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14977 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14978 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14979 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14981 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14982 echo
14984 if test $USE_XASSERTS = yes; then
14985 echo " Compiling with asserts turned on."
14986 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14989 echo
14991 if test "$HAVE_NS" = "yes"; then
14992 echo
14993 echo "You must run \"make install\" in order to test the built application.
14994 The installed application will go to nextstep/Emacs.app and can be
14995 run or moved from there."
14996 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14997 echo "The application will be fully self-contained."
14998 else
14999 echo "The lisp resources for the application will be installed under ${prefix}.
15000 You may need to run \"make install\" with sudo. The application will fail
15001 to run if these resources are not installed."
15003 echo
15006 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
15007 echo "D-Bus integration has been tested for GNU/Linux only."
15008 echo
15012 # Remove any trailing slashes in these variables.
15013 test "${prefix}" != NONE &&
15014 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15015 test "${exec_prefix}" != NONE &&
15016 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15018 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"
15020 ac_config_commands="$ac_config_commands default"
15022 cat >confcache <<\_ACEOF
15023 # This file is a shell script that caches the results of configure
15024 # tests run on this system so they can be shared between configure
15025 # scripts and configure runs, see configure's option --config-cache.
15026 # It is not useful on other systems. If it contains results you don't
15027 # want to keep, you may remove or edit it.
15029 # config.status only pays attention to the cache file if you give it
15030 # the --recheck option to rerun configure.
15032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15034 # following values.
15036 _ACEOF
15038 # The following way of writing the cache mishandles newlines in values,
15039 # but we know of no workaround that is simple, portable, and efficient.
15040 # So, we kill variables containing newlines.
15041 # Ultrix sh set writes to stderr and can't be redirected directly,
15042 # and sets the high bit in the cache file unless we assign to the vars.
15044 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15045 eval ac_val=\$$ac_var
15046 case $ac_val in #(
15047 *${as_nl}*)
15048 case $ac_var in #(
15049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15050 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15051 esac
15052 case $ac_var in #(
15053 _ | IFS | as_nl) ;; #(
15054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15055 *) { eval $ac_var=; unset $ac_var;} ;;
15056 esac ;;
15057 esac
15058 done
15060 (set) 2>&1 |
15061 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15062 *${as_nl}ac_space=\ *)
15063 # `set' does not quote correctly, so add quotes: double-quote
15064 # substitution turns \\\\ into \\, and sed turns \\ into \.
15065 sed -n \
15066 "s/'/'\\\\''/g;
15067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15068 ;; #(
15070 # `set' quotes correctly as required by POSIX, so do not add quotes.
15071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15073 esac |
15074 sort
15076 sed '
15077 /^ac_cv_env_/b end
15078 t clear
15079 :clear
15080 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15081 t end
15082 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15083 :end' >>confcache
15084 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15085 if test -w "$cache_file"; then
15086 test "x$cache_file" != "x/dev/null" &&
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15088 $as_echo "$as_me: updating cache $cache_file" >&6;}
15089 cat confcache >$cache_file
15090 else
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15092 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15095 rm -f confcache
15097 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15098 # Let make expand exec_prefix.
15099 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15101 DEFS=-DHAVE_CONFIG_H
15103 ac_libobjs=
15104 ac_ltlibobjs=
15105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15106 # 1. Remove the extension, and $U if already installed.
15107 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15108 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15109 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15110 # will be set to the directory where LIBOBJS objects are built.
15111 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15112 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15113 done
15114 LIBOBJS=$ac_libobjs
15116 LTLIBOBJS=$ac_ltlibobjs
15121 : ${CONFIG_STATUS=./config.status}
15122 ac_write_fail=0
15123 ac_clean_files_save=$ac_clean_files
15124 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15126 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15127 as_write_fail=0
15128 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15129 #! $SHELL
15130 # Generated by $as_me.
15131 # Run this file to recreate the current configuration.
15132 # Compiler output produced by configure, useful for debugging
15133 # configure, is in config.log if it exists.
15135 debug=false
15136 ac_cs_recheck=false
15137 ac_cs_silent=false
15139 SHELL=\${CONFIG_SHELL-$SHELL}
15140 export SHELL
15141 _ASEOF
15142 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15143 ## -------------------- ##
15144 ## M4sh Initialization. ##
15145 ## -------------------- ##
15147 # Be more Bourne compatible
15148 DUALCASE=1; export DUALCASE # for MKS sh
15149 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15150 emulate sh
15151 NULLCMD=:
15152 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15153 # is contrary to our usage. Disable this feature.
15154 alias -g '${1+"$@"}'='"$@"'
15155 setopt NO_GLOB_SUBST
15156 else
15157 case `(set -o) 2>/dev/null` in #(
15158 *posix*) :
15159 set -o posix ;; #(
15160 *) :
15162 esac
15166 as_nl='
15168 export as_nl
15169 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15170 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15173 # Prefer a ksh shell builtin over an external printf program on Solaris,
15174 # but without wasting forks for bash or zsh.
15175 if test -z "$BASH_VERSION$ZSH_VERSION" \
15176 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15177 as_echo='print -r --'
15178 as_echo_n='print -rn --'
15179 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15180 as_echo='printf %s\n'
15181 as_echo_n='printf %s'
15182 else
15183 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15184 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15185 as_echo_n='/usr/ucb/echo -n'
15186 else
15187 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15188 as_echo_n_body='eval
15189 arg=$1;
15190 case $arg in #(
15191 *"$as_nl"*)
15192 expr "X$arg" : "X\\(.*\\)$as_nl";
15193 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15194 esac;
15195 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15197 export as_echo_n_body
15198 as_echo_n='sh -c $as_echo_n_body as_echo'
15200 export as_echo_body
15201 as_echo='sh -c $as_echo_body as_echo'
15204 # The user is always right.
15205 if test "${PATH_SEPARATOR+set}" != set; then
15206 PATH_SEPARATOR=:
15207 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15208 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15209 PATH_SEPARATOR=';'
15214 # IFS
15215 # We need space, tab and new line, in precisely that order. Quoting is
15216 # there to prevent editors from complaining about space-tab.
15217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15218 # splitting by setting IFS to empty value.)
15219 IFS=" "" $as_nl"
15221 # Find who we are. Look in the path if we contain no directory separator.
15222 case $0 in #((
15223 *[\\/]* ) as_myself=$0 ;;
15224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15225 for as_dir in $PATH
15227 IFS=$as_save_IFS
15228 test -z "$as_dir" && as_dir=.
15229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15230 done
15231 IFS=$as_save_IFS
15234 esac
15235 # We did not find ourselves, most probably we were run as `sh COMMAND'
15236 # in which case we are not to be found in the path.
15237 if test "x$as_myself" = x; then
15238 as_myself=$0
15240 if test ! -f "$as_myself"; then
15241 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15242 exit 1
15245 # Unset variables that we do not need and which cause bugs (e.g. in
15246 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15247 # suppresses any "Segmentation fault" message there. '((' could
15248 # trigger a bug in pdksh 5.2.14.
15249 for as_var in BASH_ENV ENV MAIL MAILPATH
15250 do eval test x\${$as_var+set} = xset \
15251 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15252 done
15253 PS1='$ '
15254 PS2='> '
15255 PS4='+ '
15257 # NLS nuisances.
15258 LC_ALL=C
15259 export LC_ALL
15260 LANGUAGE=C
15261 export LANGUAGE
15263 # CDPATH.
15264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15267 # as_fn_error ERROR [LINENO LOG_FD]
15268 # ---------------------------------
15269 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15270 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15271 # script with status $?, using 1 if that was 0.
15272 as_fn_error ()
15274 as_status=$?; test $as_status -eq 0 && as_status=1
15275 if test "$3"; then
15276 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15277 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15279 $as_echo "$as_me: error: $1" >&2
15280 as_fn_exit $as_status
15281 } # as_fn_error
15284 # as_fn_set_status STATUS
15285 # -----------------------
15286 # Set $? to STATUS, without forking.
15287 as_fn_set_status ()
15289 return $1
15290 } # as_fn_set_status
15292 # as_fn_exit STATUS
15293 # -----------------
15294 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15295 as_fn_exit ()
15297 set +e
15298 as_fn_set_status $1
15299 exit $1
15300 } # as_fn_exit
15302 # as_fn_unset VAR
15303 # ---------------
15304 # Portably unset VAR.
15305 as_fn_unset ()
15307 { eval $1=; unset $1;}
15309 as_unset=as_fn_unset
15310 # as_fn_append VAR VALUE
15311 # ----------------------
15312 # Append the text in VALUE to the end of the definition contained in VAR. Take
15313 # advantage of any shell optimizations that allow amortized linear growth over
15314 # repeated appends, instead of the typical quadratic growth present in naive
15315 # implementations.
15316 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15317 eval 'as_fn_append ()
15319 eval $1+=\$2
15321 else
15322 as_fn_append ()
15324 eval $1=\$$1\$2
15326 fi # as_fn_append
15328 # as_fn_arith ARG...
15329 # ------------------
15330 # Perform arithmetic evaluation on the ARGs, and store the result in the
15331 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15332 # must be portable across $(()) and expr.
15333 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15334 eval 'as_fn_arith ()
15336 as_val=$(( $* ))
15338 else
15339 as_fn_arith ()
15341 as_val=`expr "$@" || test $? -eq 1`
15343 fi # as_fn_arith
15346 if expr a : '\(a\)' >/dev/null 2>&1 &&
15347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15348 as_expr=expr
15349 else
15350 as_expr=false
15353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15354 as_basename=basename
15355 else
15356 as_basename=false
15359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15360 as_dirname=dirname
15361 else
15362 as_dirname=false
15365 as_me=`$as_basename -- "$0" ||
15366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15367 X"$0" : 'X\(//\)$' \| \
15368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15369 $as_echo X/"$0" |
15370 sed '/^.*\/\([^/][^/]*\)\/*$/{
15371 s//\1/
15374 /^X\/\(\/\/\)$/{
15375 s//\1/
15378 /^X\/\(\/\).*/{
15379 s//\1/
15382 s/.*/./; q'`
15384 # Avoid depending upon Character Ranges.
15385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15388 as_cr_digits='0123456789'
15389 as_cr_alnum=$as_cr_Letters$as_cr_digits
15391 ECHO_C= ECHO_N= ECHO_T=
15392 case `echo -n x` in #(((((
15393 -n*)
15394 case `echo 'xy\c'` in
15395 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15396 xy) ECHO_C='\c';;
15397 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15398 ECHO_T=' ';;
15399 esac;;
15401 ECHO_N='-n';;
15402 esac
15404 rm -f conf$$ conf$$.exe conf$$.file
15405 if test -d conf$$.dir; then
15406 rm -f conf$$.dir/conf$$.file
15407 else
15408 rm -f conf$$.dir
15409 mkdir conf$$.dir 2>/dev/null
15411 if (echo >conf$$.file) 2>/dev/null; then
15412 if ln -s conf$$.file conf$$ 2>/dev/null; then
15413 as_ln_s='ln -s'
15414 # ... but there are two gotchas:
15415 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15416 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15417 # In both cases, we have to default to `cp -p'.
15418 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15419 as_ln_s='cp -p'
15420 elif ln conf$$.file conf$$ 2>/dev/null; then
15421 as_ln_s=ln
15422 else
15423 as_ln_s='cp -p'
15425 else
15426 as_ln_s='cp -p'
15428 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15429 rmdir conf$$.dir 2>/dev/null
15432 # as_fn_mkdir_p
15433 # -------------
15434 # Create "$as_dir" as a directory, including parents if necessary.
15435 as_fn_mkdir_p ()
15438 case $as_dir in #(
15439 -*) as_dir=./$as_dir;;
15440 esac
15441 test -d "$as_dir" || eval $as_mkdir_p || {
15442 as_dirs=
15443 while :; do
15444 case $as_dir in #(
15445 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15446 *) as_qdir=$as_dir;;
15447 esac
15448 as_dirs="'$as_qdir' $as_dirs"
15449 as_dir=`$as_dirname -- "$as_dir" ||
15450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15451 X"$as_dir" : 'X\(//\)[^/]' \| \
15452 X"$as_dir" : 'X\(//\)$' \| \
15453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15454 $as_echo X"$as_dir" |
15455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15456 s//\1/
15459 /^X\(\/\/\)[^/].*/{
15460 s//\1/
15463 /^X\(\/\/\)$/{
15464 s//\1/
15467 /^X\(\/\).*/{
15468 s//\1/
15471 s/.*/./; q'`
15472 test -d "$as_dir" && break
15473 done
15474 test -z "$as_dirs" || eval "mkdir $as_dirs"
15475 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15478 } # as_fn_mkdir_p
15479 if mkdir -p . 2>/dev/null; then
15480 as_mkdir_p='mkdir -p "$as_dir"'
15481 else
15482 test -d ./-p && rmdir ./-p
15483 as_mkdir_p=false
15486 if test -x / >/dev/null 2>&1; then
15487 as_test_x='test -x'
15488 else
15489 if ls -dL / >/dev/null 2>&1; then
15490 as_ls_L_option=L
15491 else
15492 as_ls_L_option=
15494 as_test_x='
15495 eval sh -c '\''
15496 if test -d "$1"; then
15497 test -d "$1/.";
15498 else
15499 case $1 in #(
15500 -*)set "./$1";;
15501 esac;
15502 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15503 ???[sx]*):;;*)false;;esac;fi
15504 '\'' sh
15507 as_executable_p=$as_test_x
15509 # Sed expression to map a string onto a valid CPP name.
15510 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15512 # Sed expression to map a string onto a valid variable name.
15513 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15516 exec 6>&1
15517 ## ----------------------------------- ##
15518 ## Main body of $CONFIG_STATUS script. ##
15519 ## ----------------------------------- ##
15520 _ASEOF
15521 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15524 # Save the log message, to keep $0 and so on meaningful, and to
15525 # report actual input values of CONFIG_FILES etc. instead of their
15526 # values after options handling.
15527 ac_log="
15528 This file was extended by emacs $as_me 24.0.50, which was
15529 generated by GNU Autoconf 2.65. Invocation command line was
15531 CONFIG_FILES = $CONFIG_FILES
15532 CONFIG_HEADERS = $CONFIG_HEADERS
15533 CONFIG_LINKS = $CONFIG_LINKS
15534 CONFIG_COMMANDS = $CONFIG_COMMANDS
15535 $ $0 $@
15537 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15540 _ACEOF
15542 case $ac_config_files in *"
15543 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15544 esac
15546 case $ac_config_headers in *"
15547 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15548 esac
15551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15552 # Files that config.status was made for.
15553 config_files="$ac_config_files"
15554 config_headers="$ac_config_headers"
15555 config_commands="$ac_config_commands"
15557 _ACEOF
15559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560 ac_cs_usage="\
15561 \`$as_me' instantiates files and other configuration actions
15562 from templates according to the current configuration. Unless the files
15563 and actions are specified as TAGs, all are instantiated by default.
15565 Usage: $0 [OPTION]... [TAG]...
15567 -h, --help print this help, then exit
15568 -V, --version print version number and configuration settings, then exit
15569 --config print configuration, then exit
15570 -q, --quiet, --silent
15571 do not print progress messages
15572 -d, --debug don't remove temporary files
15573 --recheck update $as_me by reconfiguring in the same conditions
15574 --file=FILE[:TEMPLATE]
15575 instantiate the configuration file FILE
15576 --header=FILE[:TEMPLATE]
15577 instantiate the configuration header FILE
15579 Configuration files:
15580 $config_files
15582 Configuration headers:
15583 $config_headers
15585 Configuration commands:
15586 $config_commands
15588 Report bugs to the package provider."
15590 _ACEOF
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15593 ac_cs_version="\\
15594 emacs config.status 24.0.50
15595 configured by $0, generated by GNU Autoconf 2.65,
15596 with options \\"\$ac_cs_config\\"
15598 Copyright (C) 2009 Free Software Foundation, Inc.
15599 This config.status script is free software; the Free Software Foundation
15600 gives unlimited permission to copy, distribute and modify it."
15602 ac_pwd='$ac_pwd'
15603 srcdir='$srcdir'
15604 INSTALL='$INSTALL'
15605 test -n "\$AWK" || AWK=awk
15606 _ACEOF
15608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15609 # The default lists apply if the user does not specify any file.
15610 ac_need_defaults=:
15611 while test $# != 0
15613 case $1 in
15614 --*=*)
15615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15616 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15617 ac_shift=:
15620 ac_option=$1
15621 ac_optarg=$2
15622 ac_shift=shift
15624 esac
15626 case $ac_option in
15627 # Handling of the options.
15628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15629 ac_cs_recheck=: ;;
15630 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15631 $as_echo "$ac_cs_version"; exit ;;
15632 --config | --confi | --conf | --con | --co | --c )
15633 $as_echo "$ac_cs_config"; exit ;;
15634 --debug | --debu | --deb | --de | --d | -d )
15635 debug=: ;;
15636 --file | --fil | --fi | --f )
15637 $ac_shift
15638 case $ac_optarg in
15639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15640 esac
15641 as_fn_append CONFIG_FILES " '$ac_optarg'"
15642 ac_need_defaults=false;;
15643 --header | --heade | --head | --hea )
15644 $ac_shift
15645 case $ac_optarg in
15646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15647 esac
15648 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15649 ac_need_defaults=false;;
15650 --he | --h)
15651 # Conflict between --help and --header
15652 as_fn_error "ambiguous option: \`$1'
15653 Try \`$0 --help' for more information.";;
15654 --help | --hel | -h )
15655 $as_echo "$ac_cs_usage"; exit ;;
15656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15658 ac_cs_silent=: ;;
15660 # This is an error.
15661 -*) as_fn_error "unrecognized option: \`$1'
15662 Try \`$0 --help' for more information." ;;
15664 *) as_fn_append ac_config_targets " $1"
15665 ac_need_defaults=false ;;
15667 esac
15668 shift
15669 done
15671 ac_configure_extra_args=
15673 if $ac_cs_silent; then
15674 exec 6>/dev/null
15675 ac_configure_extra_args="$ac_configure_extra_args --silent"
15678 _ACEOF
15679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15680 if \$ac_cs_recheck; then
15681 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15682 shift
15683 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15684 CONFIG_SHELL='$SHELL'
15685 export CONFIG_SHELL
15686 exec "\$@"
15689 _ACEOF
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691 exec 5>>config.log
15693 echo
15694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15695 ## Running $as_me. ##
15696 _ASBOX
15697 $as_echo "$ac_log"
15698 } >&5
15700 _ACEOF
15701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 # INIT-COMMANDS
15705 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15707 _ACEOF
15709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15711 # Handling of arguments.
15712 for ac_config_target in $ac_config_targets
15714 case $ac_config_target in
15715 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15717 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15718 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15719 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15720 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15721 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15722 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15723 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15724 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15725 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15726 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15727 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15729 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15730 esac
15731 done
15734 # If the user did not use the arguments to specify the items to instantiate,
15735 # then the envvar interface is used. Set only those that are not.
15736 # We use the long form for the default assignment because of an extremely
15737 # bizarre bug on SunOS 4.1.3.
15738 if $ac_need_defaults; then
15739 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15740 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15744 # Have a temporary directory for convenience. Make it in the build tree
15745 # simply because there is no reason against having it here, and in addition,
15746 # creating and moving files from /tmp can sometimes cause problems.
15747 # Hook for its removal unless debugging.
15748 # Note that there is a small window in which the directory will not be cleaned:
15749 # after its creation but before its name has been assigned to `$tmp'.
15750 $debug ||
15752 tmp=
15753 trap 'exit_status=$?
15754 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15756 trap 'as_fn_exit 1' 1 2 13 15
15758 # Create a (secure) tmp directory for tmp files.
15761 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15762 test -n "$tmp" && test -d "$tmp"
15763 } ||
15765 tmp=./conf$$-$RANDOM
15766 (umask 077 && mkdir "$tmp")
15767 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15769 # Set up the scripts for CONFIG_FILES section.
15770 # No need to generate them if there are no CONFIG_FILES.
15771 # This happens for instance with `./config.status config.h'.
15772 if test -n "$CONFIG_FILES"; then
15774 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15775 ac_cs_awk_getline=:
15776 ac_cs_awk_pipe_init=
15777 ac_cs_awk_read_file='
15778 while ((getline aline < (F[key])) > 0)
15779 print(aline)
15780 close(F[key])'
15781 ac_cs_awk_pipe_fini=
15782 else
15783 ac_cs_awk_getline=false
15784 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15785 ac_cs_awk_read_file='
15786 print "|#_!!_#|"
15787 print "cat " F[key] " &&"
15788 '$ac_cs_awk_pipe_init
15789 # The final `:' finishes the AND list.
15790 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15792 ac_cr=`echo X | tr X '\015'`
15793 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15794 # But we know of no other shell where ac_cr would be empty at this
15795 # point, so we can use a bashism as a fallback.
15796 if test "x$ac_cr" = x; then
15797 eval ac_cr=\$\'\\r\'
15799 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15801 ac_cs_awk_cr='\r'
15802 else
15803 ac_cs_awk_cr=$ac_cr
15806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15807 _ACEOF
15809 # Create commands to substitute file output variables.
15811 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15812 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15813 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15814 echo "_ACAWK" &&
15815 echo "_ACEOF"
15816 } >conf$$files.sh &&
15817 . ./conf$$files.sh ||
15818 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15819 rm -f conf$$files.sh
15822 echo "cat >conf$$subs.awk <<_ACEOF" &&
15823 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15824 echo "_ACEOF"
15825 } >conf$$subs.sh ||
15826 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15827 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15828 ac_delim='%!_!# '
15829 for ac_last_try in false false false false false :; do
15830 . ./conf$$subs.sh ||
15831 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15833 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15834 if test $ac_delim_n = $ac_delim_num; then
15835 break
15836 elif $ac_last_try; then
15837 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15838 else
15839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15841 done
15842 rm -f conf$$subs.sh
15844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15845 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15846 _ACEOF
15847 sed -n '
15849 s/^/S["/; s/!.*/"]=/
15852 s/^[^!]*!//
15853 :repl
15854 t repl
15855 s/'"$ac_delim"'$//
15856 t delim
15859 s/\(.\{148\}\)..*/\1/
15860 t more1
15861 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15864 b repl
15865 :more1
15866 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15869 s/.\{148\}//
15870 t nl
15871 :delim
15873 s/\(.\{148\}\)..*/\1/
15874 t more2
15875 s/["\\]/\\&/g; s/^/"/; s/$/"/
15878 :more2
15879 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15882 s/.\{148\}//
15883 t delim
15884 ' <conf$$subs.awk | sed '
15885 /^[^""]/{
15887 s/\n//
15889 ' >>$CONFIG_STATUS || ac_write_fail=1
15890 rm -f conf$$subs.awk
15891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15892 _ACAWK
15893 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15894 for (key in S) S_is_set[key] = 1
15895 FS = "\a"
15896 \$ac_cs_awk_pipe_init
15899 line = $ 0
15900 nfields = split(line, field, "@")
15901 substed = 0
15902 len = length(field[1])
15903 for (i = 2; i < nfields; i++) {
15904 key = field[i]
15905 keylen = length(key)
15906 if (S_is_set[key]) {
15907 value = S[key]
15908 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15909 len += length(value) + length(field[++i])
15910 substed = 1
15911 } else
15912 len += 1 + keylen
15914 if (nfields == 3 && !substed) {
15915 key = field[2]
15916 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15917 \$ac_cs_awk_read_file
15918 next
15921 print line
15923 \$ac_cs_awk_pipe_fini
15924 _ACAWK
15925 _ACEOF
15926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15927 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15928 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15929 else
15931 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15932 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15933 _ACEOF
15935 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15936 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15937 # trailing colons and then remove the whole line if VPATH becomes empty
15938 # (actually we leave an empty line to preserve line numbers).
15939 if test "x$srcdir" = x.; then
15940 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15941 s/:*\$(srcdir):*/:/
15942 s/:*\${srcdir}:*/:/
15943 s/:*@srcdir@:*/:/
15944 s/^\([^=]*=[ ]*\):*/\1/
15945 s/:*$//
15946 s/^[^=]*=[ ]*$//
15950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15951 fi # test -n "$CONFIG_FILES"
15953 # Set up the scripts for CONFIG_HEADERS section.
15954 # No need to generate them if there are no CONFIG_HEADERS.
15955 # This happens for instance with `./config.status Makefile'.
15956 if test -n "$CONFIG_HEADERS"; then
15957 cat >"$tmp/defines.awk" <<\_ACAWK ||
15958 BEGIN {
15959 _ACEOF
15961 # Transform confdefs.h into an awk script `defines.awk', embedded as
15962 # here-document in config.status, that substitutes the proper values into
15963 # config.h.in to produce config.h.
15965 # Create a delimiter string that does not exist in confdefs.h, to ease
15966 # handling of long lines.
15967 ac_delim='%!_!# '
15968 for ac_last_try in false false :; do
15969 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15970 if test -z "$ac_t"; then
15971 break
15972 elif $ac_last_try; then
15973 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15974 else
15975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15977 done
15979 # For the awk script, D is an array of macro values keyed by name,
15980 # likewise P contains macro parameters if any. Preserve backslash
15981 # newline sequences.
15983 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15984 sed -n '
15985 s/.\{148\}/&'"$ac_delim"'/g
15986 t rset
15987 :rset
15988 s/^[ ]*#[ ]*define[ ][ ]*/ /
15989 t def
15991 :def
15992 s/\\$//
15993 t bsnl
15994 s/["\\]/\\&/g
15995 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15996 D["\1"]=" \3"/p
15997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15999 :bsnl
16000 s/["\\]/\\&/g
16001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16002 D["\1"]=" \3\\\\\\n"\\/p
16003 t cont
16004 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16005 t cont
16007 :cont
16009 s/.\{148\}/&'"$ac_delim"'/g
16010 t clear
16011 :clear
16012 s/\\$//
16013 t bsnlc
16014 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16016 :bsnlc
16017 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16018 b cont
16019 ' <confdefs.h | sed '
16020 s/'"$ac_delim"'/"\\\
16021 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 for (key in D) D_is_set[key] = 1
16025 FS = "\a"
16027 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16028 line = \$ 0
16029 split(line, arg, " ")
16030 if (arg[1] == "#") {
16031 defundef = arg[2]
16032 mac1 = arg[3]
16033 } else {
16034 defundef = substr(arg[1], 2)
16035 mac1 = arg[2]
16037 split(mac1, mac2, "(") #)
16038 macro = mac2[1]
16039 prefix = substr(line, 1, index(line, defundef) - 1)
16040 if (D_is_set[macro]) {
16041 # Preserve the white space surrounding the "#".
16042 print prefix "define", macro P[macro] D[macro]
16043 next
16044 } else {
16045 # Replace #undef with comments. This is necessary, for example,
16046 # in the case of _POSIX_SOURCE, which is predefined and required
16047 # on some systems where configure will not decide to define it.
16048 if (defundef == "undef") {
16049 print "/*", prefix defundef, macro, "*/"
16050 next
16054 { print }
16055 _ACAWK
16056 _ACEOF
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16058 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16059 fi # test -n "$CONFIG_HEADERS"
16062 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16063 shift
16064 for ac_tag
16066 case $ac_tag in
16067 :[FHLC]) ac_mode=$ac_tag; continue;;
16068 esac
16069 case $ac_mode$ac_tag in
16070 :[FHL]*:*);;
16071 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16072 :[FH]-) ac_tag=-:-;;
16073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16074 esac
16075 ac_save_IFS=$IFS
16076 IFS=:
16077 set x $ac_tag
16078 IFS=$ac_save_IFS
16079 shift
16080 ac_file=$1
16081 shift
16083 case $ac_mode in
16084 :L) ac_source=$1;;
16085 :[FH])
16086 ac_file_inputs=
16087 for ac_f
16089 case $ac_f in
16090 -) ac_f="$tmp/stdin";;
16091 *) # Look for the file first in the build tree, then in the source tree
16092 # (if the path is not absolute). The absolute path cannot be DOS-style,
16093 # because $ac_f cannot contain `:'.
16094 test -f "$ac_f" ||
16095 case $ac_f in
16096 [\\/$]*) false;;
16097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16098 esac ||
16099 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16100 esac
16101 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16102 as_fn_append ac_file_inputs " '$ac_f'"
16103 done
16105 # Let's still pretend it is `configure' which instantiates (i.e., don't
16106 # use $as_me), people would be surprised to read:
16107 # /* config.h. Generated by config.status. */
16108 configure_input='Generated from '`
16109 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16110 `' by configure.'
16111 if test x"$ac_file" != x-; then
16112 configure_input="$ac_file. $configure_input"
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16114 $as_echo "$as_me: creating $ac_file" >&6;}
16116 # Neutralize special characters interpreted by sed in replacement strings.
16117 case $configure_input in #(
16118 *\&* | *\|* | *\\* )
16119 ac_sed_conf_input=`$as_echo "$configure_input" |
16120 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16121 *) ac_sed_conf_input=$configure_input;;
16122 esac
16124 case $ac_tag in
16125 *:-:* | *:-) cat >"$tmp/stdin" \
16126 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16127 esac
16129 esac
16131 ac_dir=`$as_dirname -- "$ac_file" ||
16132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16133 X"$ac_file" : 'X\(//\)[^/]' \| \
16134 X"$ac_file" : 'X\(//\)$' \| \
16135 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16136 $as_echo X"$ac_file" |
16137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16138 s//\1/
16141 /^X\(\/\/\)[^/].*/{
16142 s//\1/
16145 /^X\(\/\/\)$/{
16146 s//\1/
16149 /^X\(\/\).*/{
16150 s//\1/
16153 s/.*/./; q'`
16154 as_dir="$ac_dir"; as_fn_mkdir_p
16155 ac_builddir=.
16157 case "$ac_dir" in
16158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16160 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16161 # A ".." for each directory in $ac_dir_suffix.
16162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16163 case $ac_top_builddir_sub in
16164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16166 esac ;;
16167 esac
16168 ac_abs_top_builddir=$ac_pwd
16169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16170 # for backward compatibility:
16171 ac_top_builddir=$ac_top_build_prefix
16173 case $srcdir in
16174 .) # We are building in place.
16175 ac_srcdir=.
16176 ac_top_srcdir=$ac_top_builddir_sub
16177 ac_abs_top_srcdir=$ac_pwd ;;
16178 [\\/]* | ?:[\\/]* ) # Absolute name.
16179 ac_srcdir=$srcdir$ac_dir_suffix;
16180 ac_top_srcdir=$srcdir
16181 ac_abs_top_srcdir=$srcdir ;;
16182 *) # Relative name.
16183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16184 ac_top_srcdir=$ac_top_build_prefix$srcdir
16185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16186 esac
16187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16190 case $ac_mode in
16193 # CONFIG_FILE
16196 case $INSTALL in
16197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16198 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16199 esac
16200 _ACEOF
16202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16203 # If the template does not know about datarootdir, expand it.
16204 # FIXME: This hack should be removed a few years after 2.60.
16205 ac_datarootdir_hack=; ac_datarootdir_seen=
16206 ac_sed_dataroot='
16207 /datarootdir/ {
16211 /@datadir@/p
16212 /@docdir@/p
16213 /@infodir@/p
16214 /@localedir@/p
16215 /@mandir@/p'
16216 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16217 *datarootdir*) ac_datarootdir_seen=yes;;
16218 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16220 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16221 _ACEOF
16222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16223 ac_datarootdir_hack='
16224 s&@datadir@&$datadir&g
16225 s&@docdir@&$docdir&g
16226 s&@infodir@&$infodir&g
16227 s&@localedir@&$localedir&g
16228 s&@mandir@&$mandir&g
16229 s&\\\${datarootdir}&$datarootdir&g' ;;
16230 esac
16231 _ACEOF
16233 # Neutralize VPATH when `$srcdir' = `.'.
16234 # Shell code in configure.ac might set extrasub.
16235 # FIXME: do we really want to maintain this feature?
16236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16237 ac_sed_extra="$ac_vpsub
16238 $extrasub
16239 _ACEOF
16240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16243 s|@configure_input@|$ac_sed_conf_input|;t t
16244 s&@top_builddir@&$ac_top_builddir_sub&;t t
16245 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16246 s&@srcdir@&$ac_srcdir&;t t
16247 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16248 s&@top_srcdir@&$ac_top_srcdir&;t t
16249 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16250 s&@builddir@&$ac_builddir&;t t
16251 s&@abs_builddir@&$ac_abs_builddir&;t t
16252 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16253 s&@INSTALL@&$ac_INSTALL&;t t
16254 $ac_datarootdir_hack
16256 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16257 if $ac_cs_awk_getline; then
16258 $AWK -f "$tmp/subs.awk"
16259 else
16260 $AWK -f "$tmp/subs.awk" | $SHELL
16261 fi >$tmp/out \
16262 || as_fn_error "could not create $ac_file" "$LINENO" 5
16264 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16265 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16266 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16268 which seems to be undefined. Please make sure it is defined." >&5
16269 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16270 which seems to be undefined. Please make sure it is defined." >&2;}
16272 rm -f "$tmp/stdin"
16273 case $ac_file in
16274 -) cat "$tmp/out" && rm -f "$tmp/out";;
16275 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16276 esac \
16277 || as_fn_error "could not create $ac_file" "$LINENO" 5
16281 # CONFIG_HEADER
16283 if test x"$ac_file" != x-; then
16285 $as_echo "/* $configure_input */" \
16286 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16287 } >"$tmp/config.h" \
16288 || as_fn_error "could not create $ac_file" "$LINENO" 5
16289 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16291 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16292 else
16293 rm -f "$ac_file"
16294 mv "$tmp/config.h" "$ac_file" \
16295 || as_fn_error "could not create $ac_file" "$LINENO" 5
16297 else
16298 $as_echo "/* $configure_input */" \
16299 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16300 || as_fn_error "could not create -" "$LINENO" 5
16304 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16305 $as_echo "$as_me: executing $ac_file commands" >&6;}
16307 esac
16310 case $ac_file$ac_mode in
16311 "default":C)
16313 ### Make the necessary directories, if they don't exist.
16314 for dir in etc lisp ; do
16315 test -d ${dir} || mkdir ${dir}
16316 done
16318 echo creating src/epaths.h
16319 ${MAKE-make} epaths-force
16321 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16322 echo creating src/.gdbinit
16323 echo source $srcdir/src/.gdbinit > src/.gdbinit
16328 esac
16329 done # for ac_tag
16332 as_fn_exit 0
16333 _ACEOF
16334 ac_clean_files=$ac_clean_files_save
16336 test $ac_write_fail = 0 ||
16337 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16340 # configure is writing to config.log, and then calls config.status.
16341 # config.status does its own redirection, appending to config.log.
16342 # Unfortunately, on DOS this fails, as config.log is still kept open
16343 # by configure, so config.status won't be able to write to it; its
16344 # output is simply discarded. So we exec the FD to /dev/null,
16345 # effectively closing config.log, so it can be properly (re)opened and
16346 # appended to by config.status. When coming back to configure, we
16347 # need to make the FD available again.
16348 if test "$no_create" != yes; then
16349 ac_cs_success=:
16350 ac_config_status_args=
16351 test "$silent" = yes &&
16352 ac_config_status_args="$ac_config_status_args --quiet"
16353 exec 5>/dev/null
16354 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16355 exec 5>>config.log
16356 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16357 # would make configure fail if this is the last instruction.
16358 $ac_cs_success || as_fn_exit $?
16360 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16362 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}